Leave RFC822 comments in mail address untouched

Use this forum to suggest new features, language support, documentation, etc. for OpenEMM's roadmap

Moderator: moderator

hzujmccescsl
Posts: 30
Joined: Thu Feb 07, 2013 11:15 pm

Leave RFC822 comments in mail address untouched

Post by hzujmccescsl »

RFC822 e-mail address formats allow for two versions which can include either a "full name" or "comments" to be included with an RFC822 e-mail address. These two forms are:

1) "full name" e-mail_address

2) <e-mail_address> (comments)

It IS possible to add "comments" to an OpenEMM recipient e-mail address, though it gets included in larger "< ... >" block, but its contents get converted to all lower case. It would be preferrable that any "(...)" contents of the e-mail address be left "as is". This would provide a convenient way to provide a "normal appearing", mixed case, comment which might be a brief description of the mailing or a brief description of a mailing list (or mailing list name).
hzujmccescsl
Posts: 30
Joined: Thu Feb 07, 2013 11:15 pm

Re: Leave RFC822 comments in mail address untouched

Post by hzujmccescsl »

One way to be able to change the RFC822 e-mail address in the recipient ("To:") field is to use the Sendmail Perl 'milter' process to dynamically modify the text in this field as the e-mail is being processed by the SMTP function in the process of being sent out. Using a builtin array or an external "mapping" file, one can easily redefine the "To:" field value to whatever is desired (and acceptable) which may not be possible with the simple OpenEMM recipient e-mail address field.
Post Reply