While trying the Listhandler module I discovered the shared host I'm using appends an "Precedence: junk" mail header to the mail send by the user_mail() function. This makes the mailing list manager (EZMLM) I use to ignore the mail send by listhandler. Adding a header "Precedence: list" to the user_mail() call in listhandler.module:283 may fix it. See the attached patch.

I guess I'm not the only one with this problem so may be this should be an configurable option? Even better it would be to add a text area to the listhandler settings to enter optional mail headers. What do you think?

CommentFileSizeAuthor
listhandler.precedence-header.patch808 bytesfuerst

Comments

philipnet’s picture

Version: 4.7.x-1.x-dev » 5.x-1.x-dev
Assigned: Unassigned » philipnet
Status: Active » Needs review
hutch’s picture

FYI I added

    $mid['Precedence'] = "list";

to my test version of listhandler, which includes the patches for using $mid as an array and tested it, the message was sent from drupal forum module to the list I'm testing this with. 'Precedence: list' however does not appear in the mail sent to users but 'Precedence: Bulk' does as usual.

By way of a test I changed "list" to "junk" and sure enough the mail was *not* delivered to the users, heehee

delivery 20: success: Precedence:_junk_-_message_ignored/did_0+0+1/

So my conclusion is that adding "list" does not interfere with delivery, at least as far as ezmlm is concerned.

fuerst, does adding the above (or the string equivalent as in your patch) allow your mail through?

philipnet’s picture

Version: 5.x-1.x-dev » 5.x-1.0-beta1

Apologies,

This didn't make it into beta1 (I forgot to put it in!) but is now in my local copy and will make it into the next release.

P.

philipnet’s picture

Status: Needs review » Fixed

This has made it into beta2.

Regards.

P.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.