[Tickets #6732] Sending mail to contact lists doesn't work
bugs at horde.org
bugs at horde.org
Wed May 21 09:35:33 UTC 2008
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/6732
-----------------------------------------------------------------------
Ticket | 6732
Created By | janne.peltonen at helsinki.fi
Summary | Sending mail to contact lists doesn't work
Queue | IMP
Version | 4.2-RC4
Type | Bug
State | Unconfirmed
Priority | 3. High
Milestone |
Patch |
Owners |
-----------------------------------------------------------------------
janne.peltonen at helsinki.fi (2008-05-21 05:35) wrote:
If I create a contact list in Turba and add the list as the recipient in
IMP compose window, what ends up in the To: header is something like
"listname: address1 at foo.tld, address2 at bar.tld, address3 at baz.tld;" - if I
add another list from address book, it goes to the end of the previous one,
separated by a comma (so there'll be a semicolon and a comma in the
middle). If I try to send the message, it fails - SMTP server complains
about missing RCPT (5.0.0). I looked for the bug in Compose.php -
apparently, the recipientList function receives the string as-is in
$hdr['to'], and the $arr = array_filter(array_map('trim',
MIME::rfc822Explode($hdr[$key], ','))); ends up having as array items the
"listname: address1 at foo.tld, address2 at bar.tld, address3 at baz.tld;" parts
(first item would be "listname: address1 at foo.tld, address2 at bar.tld,
address3 at baz.tld;"
and second item would be "listname2: address4 at foo.tld, address5 at bar.tld,
address6 at baz.tld;" if the original to header would've been "listname:
address1 at foo.tld, address2 at bar.tld, address3 at baz.tld;, "listname2:
address4 at foo.tld, address5 at bar.tld, address6 at baz.tld;". These items then
get fed to IMP::parseAddressList(), which results in an object with the
empty string in $ob->mailbox and the default sender domain in $ob->host...
So each contact list ends up as "@<default domain>". I wonder which part in
the control chain should parse the "listname: address1 at foo.tld,
address2 at bar.tld, address3 at baz.tld;" parts..
More information about the bugs
mailing list