I import posts into a dedicated forum from a dedicated mailbox which gets messages from a Yahoo Group. The forum is at fjet.org but it's private.

Mailhandler seems too work perfectly except that posts made by it to the forum seem to randomly display "this topic has been moved" and link to forum/0 which gives a page not found error. When I load the post from the admin content list, and resubmit it, the message goes away and all is normal. The forum is set to receive anon posts, so that any message from the Yahoo group appears there whether they are site members or not. If they are site members, the authorship is set correctly. All seems well except for this mysterious error. I can't find any connection between the posts that display the message. In one retrieval (on cron), some will display it, others not, regardless of the author. Suggestions? I know there must be a tid or nid setting going haywire, but where to look for that?

Mailhandler setting for incoming messages are
type: forum
taxonomy: [Yahoo Group]
comment: 2
status: 1

CommentFileSizeAuthor
#4 mailhandler_forum_issue.JPG47.55 KBwolfraem

Comments

moshe weitzman’s picture

Status: Active » Fixed

forum module is doing that for some reason. this is really out of scope for mailhandler.

wolfraem’s picture

Component: Miscellaneous » Code
Status: Fixed » Postponed (maintainer needs more info)

Having issues here as well, and something makes me think there's a problem with how mailhandler is posting the nodes to the forum. When "receiving" emails, I'll get a warning that the node being created is missing the second variable forum.module wants, and that seems to be something mailhandler should be providing. I'll add a screenshot when I get a few emails to sync again.

Meogee, are you poping the emails from your yahoo group or imaping them? Curious as I'm poping mine and wondering if there's an issue with that as a culprit.

Moshe, If you have a minute, can you explain briefly what mailhandler's process for collecting the message, creating the node and dropping it to the forum is? When does mailhandler had the work over to the forum module?

wolfraem’s picture

Also, the mailhandler-dropped forum nodes have the comments set to disabled at default, though everywhere possible I've told it to enable read/write.

wolfraem’s picture

Version: 5.x-1.2 » 5.x-1.3
StatusFileSize
new47.55 KB

I'm attaching a jpg of the error that's thrown when an email comes in and has an issue. Hoping this might help.

Also, updating the module version to 5.x-1.3, as the issue seems to have continued to the current stable release.

wolfraem’s picture

So, I grabbed the statement in question

// $Id: forum.module,v 1.375.2.7 2008/04/05 02:18:59 drumm Exp $

...

/**
 * Implementation of hook_submit().
 *
 * Check in particular that only a "leaf" term in the associated taxonomy
 * vocabulary is selected, not a "container" term.
 */
function forum_submit(&$node) {
  // Make sure all fields are set properly:
  $node->icon = !empty($node->icon) ? $node->icon : '';

  if ($node->taxonomy) {
    // Get the forum terms from the (cached) tree
    $tree = taxonomy_get_tree(_forum_get_vid());
    if ($tree) {
      foreach ($tree as $term) {
        $forum_terms[] = $term->tid;
      }
    }
    foreach ($node->taxonomy as $term) {
      if (in_array($term, $forum_terms)) {                                                     //< this is line 335
        $node->tid = $term;
     }
    }
    $old_tid = db_result(db_query_range("SELECT tid FROM {forum} WHERE nid = %d ORDER BY vid DESC", $node->nid, 0,1));
    if ($old_tid) {
      if (($node->tid != $old_tid) && $node->shadow) {
        // A shadow copy needs to be created. Retain new term and add old term.
        $node->taxonomy[] = $old_tid;
      }
    }
  }
}

Is the error and this together suggesting the taxo term sent to the node isn't being received properly, or isn't being sent properly?

ilo’s picture

Version: 5.x-1.3 » 6.x-1.x-dev
Category: support » bug
Status: Postponed (maintainer needs more info) » Needs work

From my understanding, this is something about taxonomy and must be reviewed regardless the date of the issue.

sun.core’s picture

Issue tags: +Needs tests
danepowell’s picture

Component: Code » Mailhandler
Status: Needs work » Closed (won't fix)

Sorry, Mailhandler 6.x-1.x / 7.x-1.x are no longer supported. Please upgrade to 6.x-2.x / 7.x-2.x and re-open if still an issue. Thanks!