Change To: header for issue followups - SMTP library

moshe weitzman - April 29, 2008 - 21:02
Project:Drupal.org infrastructure
Component:Mail
Category:feature request
Priority:normal
Assigned:Unassigned
Status:patch (code needs review)
Description

The attached file implements a small SMTP library function for drupal.org. It sends all email as today except for issue followups. Issue followups get sent via a shell command so that we can address them to the Issue Queue list and not to the recipient. In this way, the mails resemble Mailman mail. This has the big benefit that Gmail's built in Mute command and email list features will work properly. I have tested this on shell.drupal.org and it works. I also plan to use this on groups.drupal.org for group notification mail.

INSTALL
* Drop the attached file into the drupalorg module directory.
* You can test it by running the file directly at the php command line. You can replace my email with yours in the $to variable.
* Once satisfied, set the 'smtp library' variable to this file: 'sites/drupalorg/modules/drupalorg.mail.inc'. that will make this code live.

AttachmentSize
drupalorg.mail_.inc_.txt1.66 KB

#1

Narayan Newton - April 30, 2008 - 04:57

I looked over the patch and have no real issues with it, however, do you know how gmail handles repeated To headers? It seems like you might still be able to use the php mail function and insert another To header.

#2

moshe weitzman - April 30, 2008 - 11:02

In that case Gmail showed both recipients as To:. Alas, that won't work.

 
 

Drupal is a registered trademark of Dries Buytaert.