Autoresponders for rejected inbound emails
dkruglyak - June 13, 2007 - 08:14
| Project: | Organic groups list manager |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
Right now emails that do not get accepted as nodes or comments go into blackhole. This is unacceptable under minimum usability standard.
The solution is to add a user_mail calls to og2list_process_mail, in two places right after "no user found, discard message" condition. My specific code is not applicable due to major mods to our email processing - but this is basically how we did it...
Note, that when email is sent to wrong list address, this fix (http://drupal.org/node/151409) must be implemented first, since otherwise that inbound email would never even get to the processing step!

#1
I would mark it as code needs review and drop in a snippet:
user_mail("$mail->from_name <$mail->from_address>", "Mailing List Cannot Accept Your Message", "Email group rejected your message, because of one of the possible reasons:
- You are not a member of the group
- You sent your message to an email address that does not match a valid group
- You sent email from address that does not match primary email of your account's email
To verify your group memberships or update your email address please log into your account.
", NULL);
A more thorough approach would be to make the code actually determine which of the above condition fits, but I just did not have time...