Problem with mailing list replies showing with no content in forum

bstanfield - May 11, 2009 - 21:21
Project:Listhandler
Version:6.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:bstanfield
Status:closed
Description

I hope this is something easy to fix and something I've just overlooked. Here's what currently works:

  1. If you send an email message to the list, it creates a forum topic on the drupal site.
  2. If you create a forum topic on the site, it emails that to the list.
  3. If you reply to a thread on the website, it sends a reply to the mailing list.

Here's what doesn't work:

    • If you send a reply on the mailing list, it creates a comment on the website with just "2" in the content field.
  • The threading seems to work correctly, and everything else seems ok, but the entire message is gone and we just get "2."

    Any ideas?

    #1

    bstanfield - May 12, 2009 - 02:07
    Assigned to:Anonymous» bstanfield
    Status:active» closed

    My apologies. This turned out to be a mailhandler issue, and not a listhandler issue.

    It looks like it's been identified by some others, and the fix involves editing mailhandler.retrieve.inc

    Specifically changing this line (currently around line 396 in the file):

    if (!$node->comment) $node->comment = $node->body;

    to read

    // When submitting comments, 'comment' means actualy the comment's body, and not the comments status for a node.
    // We need to reset the comment's bosy, so it doesn't colide with a default 'comment' command.
    $node->comment = $node->body;

    Hope this helps someone else!

     
     

    Drupal is a registered trademark of Dries Buytaert.