2009/1/7 Thomas Bruederli roundcube@gmail.com
There were several discussions about this feature and what would be the best approach:
- Make a global pref per user to enable it (bloats the contacts list)
- Enable it when composing a message (could be missed)
- Always save them but in a separate "group" and count the number of
mails sent to one recipient in order to find out which are "supposed to appear in the address book"
All of these approaches have their advantages and disadvantages. Unfortunately we didn't come to a conclusion yet but you guys could star voting for one of them now.
My vote would definitely be for number 1. IMHO it doesn't overly matter if the contacts list becomes bloated, users can always trim it later.
I had a brief look over the code last night and it looks like the functionality could be added in rcmail_send_mdn or rcmail_deliver_message using $a_recipients.
The contacts object doesn't look to be easily available at that time so I will likely add a method to the main rcmail class to loop through an array (or comma seperated) and add each of the addresses if they're not already present.
Does this all sound reasonable?
Cheers
Steve
List info: http://lists.roundcube.net/dev/