Hello, There is a previous ticket (#1487096) indirectly dealing with the issue of squirrelmail contacts with multiple email addresses in squirrelmail_usercopy. As background, squirrelmail allows a contact to have a comma-separated list of addresses as its address field. #1487096 addressed the issue of imports failing for email fields longer than 128 characters (which occurs virtually only when there are multiple addresses). This was resolved by simply having squirrelmail_usercopy import only the first address and drop the rest silently.
This is certainly not an ideal solution and is not at all satisfactory in our usage, where many users use multiple-address squirrelmail contacts to easily mail class/project lists and will be very frustrated if these lists disappear in the upcoming migration to roundcube.
I have prepared a modification that will detect contacts having multiple email addresses and instead import them as multiple contacts (one per address) and then automatically place them in a roundcube group. This is the functionality that our users have requested and is, I think, useful to all roundcube users. As such I am sending a patch to you.
As you can see, it will check if the email field from squirrelmail contains a semicolon or comma (there seems to be some slight inconsistency on which character is used, so it is best, I think, to just work on both), and if there is it creates a group by the name of the squirrelmail contact, and then inserts a contact for each individual address (with only email address, no name info), and adds that contact to the group created before.
Thanks,
W dniu 2011-04-02 00:30, Jesse Crawford pisze:
I have prepared a modification that will detect contacts having multiple email addresses and instead import them as multiple contacts (one per address) and then automatically place them in a roundcube group. This is the functionality that our users have requested and is, I think, useful to all roundcube users. As such I am sending a patch to you.
As you can see, it will check if the email field from squirrelmail contains a semicolon or comma (there seems to be some slight inconsistency on which character is used, so it is best, I think, to just work on both), and if there is it creates a group by the name of the squirrelmail contact, and then inserts a contact for each individual address (with only email address, no name info), and adds that contact to the group created before.
I don't like this behaviour. Svn-trunk version supports many email addresses per contact. So, it should be fixed this way.
I don't like this behaviour. Svn-trunk version supports many email addresses per contact. So, it should be fixed this way.
As a counterpoint. In our experience, squirrelmail users use the multiple contacts feature of SM more like RC groups. Not multiple addresses for 1 contact, but multiple contacts under 1 entry that all need to be emailed when composing a mail.
Cor
List info: http://lists.roundcube.net/dev/ BT/aba52c80
On 04/02/2011 12:04 AM, Cor Bosman wrote:
I don't like this behaviour. Svn-trunk version supports many email addresses per contact. So, it should be fixed this way.
As a counterpoint. In our experience, squirrelmail users use the multiple contacts feature of SM more like RC groups. Not multiple addresses for 1 contact, but multiple contacts under 1 entry that all need to be emailed when composing a mail.
Cor
List info: http://lists.roundcube.net/dev/ BT/1f416673
Yes, this is why I made the modification. Multiple email addresses per contact in squirrelmail are intended for emailing multiple people at once, not for multiple addresses for one person (who you only email once). When you click on a contact with multiple addresses configured in squirrelmail, it will add every address to the To: line, rather than just one selected address. A significant number of faculty members here use Squirrelmail contacts to track their class lists.
If these contacts are imported in to Roundcube as multiple emails for one person, this functionality would be broken - roundcube and squirrelmail handle contacts with multiple addresses very differently, and importing one multi-contact to one contact (as is currently in SVN) does not make sense for users.
W dniu 2011-04-03 00:49, Jesse Crawford pisze:
Yes, this is why I made the modification. Multiple email addresses per contact in squirrelmail are intended for emailing multiple people at once, not for multiple addresses for one person (who you only email once).
I understand now. Open a ticket in trac and attach your patch there.