6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#6732] Sending mail to contact lists doesn't work
*
Your Email Address
*
Spam protection
Enter the letters below:
. ,. ,.___..__ .__ \./ \./ _/ [__)| \ | | ./__.[__)|__/
Comment
> ...to be more exact, the real problem appeared to be that in > Compose.php method recipientList it is assumed that the > IMP::parseAddressList($email) in line 1149 (or thereabouts) would > return the recipient addresses in flat format (that is, it would > return an array of objects which would each have the properties > mailbox and host, as assumed in line 1155 and later on). However, my > apache error_log ended up with error messages such as "PHP Notice: > Undefined property: stdClass::$mailbox in > /var/www/html/horde/imp/lib/Compose.php on line 1155". This would > mean that for each contact list, we'd end up with addresses with an > empty mailbox part and the default domain as the host part. And the > reason appeared to be that the IMP::parseAddressList would return > contact list type addresses in the nested form, that is, the returned > objects in the array would have properties such as groupname and > addresses, the latter of which would contain an array of the kind of > objects that the recipientList method was expecting. Looking at > IMP.php line 435 in method parseAddressList, you can see that > $parser->parseAddressList was called with null as the third argument. > Now, the third argument should be a boolean telling whether we want > the group (contact list) addresses in flat format or in the nested > format. And null is not a false value in php. When I changed that > null to false (as in the patch I submitted previously), > parser->parseAddressList started giving contact list parses in the > flat format, and everything started to work.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers