
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi
I have several mailing lists on a Mailman server which are synchronized with a database via a cronjob.
Now my question: is it possible to not only synchronize the e-mail adresses but also the names?
BR Marco

On 03/26/2015 03:11 AM, Marco Stoecker wrote:
I have several mailing lists on a Mailman server which are synchronized with a database via a cronjob.
Now my question: is it possible to not only synchronize the e-mail adresses but also the names?
Just provide the name along with the email address in the list you're syncing with. E.g.,
John Doe j.doe@example.com
See http://wiki.list.org/x/4030562 for other acceptable formats. Note that this will add new members along with their real names, but real names for existing members will not be changed even if the existing real name is empty.

On 03/26/2015 03:27 PM, Mark Sapiro wrote:
Just provide the name along with the email address in the list you're syncing with. E.g.,
John Doe j.doe@example.com
Hi Mark, Thx for the answer. I just found the time to give it a try, but it seems that sync_members does only understand standard ascii. As I'm from Germany and the names, provided to the list members e-mail addresses, containing German "Umlaute" like ö or ü, the script seems to fail. Is there a solution for that?
BR Marco

On 04/16/2015 03:15 PM, Marco Stoecker wrote:
... it seems that sync_members does only understand standard ascii. As I'm from Germany and the names, provided to the list members e-mail addresses, containing German "Umlaute" like ö or ü, the script seems to fail. Is there a solution for that?
How does it fail? Does it throw an exception? If so, please provide a traceback. If not, what does it do?
What is the list's preferred_language?

On 04/17/2015 04:57 PM, Mark Sapiro wrote:
How does it fail? Does it throw an exception? If so, please provide a traceback. If not, what does it do?
What is the list's preferred_language?
Hi Mark
late answer, my laptop crashed.
the default language for this list is German: preferred_language = 'de'
indeed it throws an exception:
user@machine:~# ./mailinglist_sync.sh Traceback (most recent call last): File "/usr/sbin/sync_members", line 288, in <module> main() File "/usr/sbin/sync_members", line 259, in main s = email.Utils.formataddr((name, addr)).encode(enc, 'replace') UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position 8: ordinal not in range(128)
any glue?
BR Marco

On 04/21/2015 06:59 AM, Marco Stoecker wrote:
indeed it throws an exception:
user@machine:~# ./mailinglist_sync.sh Traceback (most recent call last): File "/usr/sbin/sync_members", line 288, in <module> main() File "/usr/sbin/sync_members", line 259, in main s = email.Utils.formataddr((name, addr)).encode(enc, 'replace') UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position 8: ordinal not in range(128)
This looks like https://bugs.launchpad.net/mailman/+bug/1243343 which was initially addressed in Mailman 2.1.17 and further fixed in 2.1.18. Your's appears to be a pre 2.1.17 version. A patch is attached.

On 04/21/2015 07:03 PM, Mark Sapiro wrote:
This looks like https://bugs.launchpad.net/mailman/+bug/1243343 which was initially addressed in Mailman 2.1.17 and further fixed in 2.1.18. Your's appears to be a pre 2.1.17 version. A patch is attached.
Hi Mark, in fact I use Debian wheezy which provided Mailman 2.1.15. I'll try your patch and I'll let you know ;-) BR Marco

On 04/21/2015 07:03 PM, Mark Sapiro wrote:
This looks like https://bugs.launchpad.net/mailman/+bug/1243343 which was initially addressed in Mailman 2.1.17 and further fixed in 2.1.18. Your's appears to be a pre 2.1.17 version. A patch is attached.
Thx Mark, works perfect now :-D BR Marco
participants (2)
-
Marco Stoecker
-
Mark Sapiro