This is a support request as much as a bug report since I've just used this module for the first time.

When I send a mail to the list from an email that corresponds to a Drupal user, it creates a new forum topic and puts it in the right forum. The only problem is that the status of that node is 0, so it doesn't appear anywhere. This patch explicitely sets status = 1 in the listhandler_mailhandler() function and the problem disappears. Is this the correct approach?

CommentFileSizeAuthor
listhandler_0.patch524 bytesrobertdouglass

Comments

arturoramos’s picture

The published status of the node need not be hardcoded into the module. You can simply add a line that assigns the correct publish status in the respective mailhandler mailbox entry. For example, I have my mailboxes set up like this:

type: forum
tid: 41
status: 1
promote: 1
comment: 2

killes@www.drop.org’s picture

Status: Needs review » Closed (won't fix)

listhandler will let mailhandler do the node_save call. That call wil use the defined defaults.

bwiseley’s picture

Category: bug » support

I pasted the commands into my mailhandler mailbox and changed the tid to match the forum I want published. I must be missing something because it will handle the mail, but posts the new content unpublished. Is there a leading character identifing those entries as commands?

whyameye’s picture

yes the same is true for me: pasted the commands into my mailhandler mailbox and changed the tid to match the forum I want published. New topics are published but new comments remain unpublished. What are we missing?

whyameye’s picture

It appears that comments with status: 0 are published and status: 1 are unpublished, yet with forum topics the opposite is true.

philipnet’s picture

Status: Closed (won't fix) » Postponed (maintainer needs more info)

Does the "authenticated user" have permission to "post comments without approval" ?

Listhandler finds out if the role that the user belongs too has the right to "post comments without approval", and acts accordingly when creating the node/comment.

P.S. If you want to re-open a closed issue, please update the "Status" box as appropriate.

Regards.

P.

whyameye’s picture

the authenticated user has permission to post comments without approval --- checked that already.

whyameye’s picture

it turns out that if I leave out
status: 1
in the default commands section of mailhandler, then both forum topics and their replies get published. That solves my problem, but is this the expected behavior? If so, the documentation should be changed so that "status: 1" is either further explained or eliminated.

michellezeedru’s picture

Thank you for finding this - I see the same results as well (removing the "status = 1" command results in all submissions getting published).

philipnet’s picture

Component: Code » Documentation
Assigned: Unassigned » philipnet
Status: Postponed (maintainer needs more info) » Needs work
cor3huis’s picture

Component: Documentation » Code
Status: Needs work » Closed (duplicate)

Two issues in one ticket...

  1. User added the "status = 1" command without understanding it's effects
  2. Comments not always posted when expected in certain scenarios, this is a duplicate of defect #716768: Comments remain unpublished