Hi all,
I'm using mm 2.1.26 on a lamp install from a hosting company... But have downloaded the code to look through locally.
I'm trying to automatically subscribe/unsubscribe members to an already restricted access list. This is because I have a separate webform that's used to select people already in our non-mm database.
I've found some info including on the list history (one from back in 2001 though the link provided on that no longer exists). I think I'm most of the way there, I'm now getting a "bad/invalid email address" error from the following (obscured) url, reporting on the Firstname Lastname:
http://domain/mailman/admin/list_domain/members/add?subscribe_or_invite=0&send_welcome_msg_to_this_batch=0& notification_to_list_owner=0&subscribees=Firstname%20Lastname%20<email@otherdomain>&adminpw=the password
I've tried without quotes and with single or double quotes around the name and the name/address combo, all without success. It looks like I'm getting a failure due to email.Utils.parseaddr as called from admin.py (I think line 1465), which supposedly accepts double quotes around the name portion.
Could I please ask for guidance on the format needed to make this work?
TIA!
On 08/04/2018 06:49 AM, Jason Wandel wrote:
I've found some info including on the list history (one from back in 2001 though the link provided on that no longer exists). I think I'm most of the way there, I'm now getting a "bad/invalid email address" error from the following (obscured) url, reporting on the Firstname Lastname:
http://domain/mailman/admin/list_domain/members/add?subscribe_or_invite=0&send_welcome_msg_to_this_batch=0& notification_to_list_owner=0&subscribees=Firstname%20Lastname%20<email@otherdomain>&adminpw=the password
I've tried without quotes and with single or double quotes around the name and the name/address combo, all without success.
The fact that you show the list name as list_domain indicates this is cPanel, so the code you are looking at is not the actual code you are dealing with.
However, in standard Mailman, and I don't *think* cPanel is different in this respect, what you show above should work if Firstname and Lastname don't contain special characters such as '.'. If they do, you need to quote it as
%22Firstname%20Lastname%22%20<email@otherdomain>
and the %22 quotes won't hurt even if they aren't needed
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi Mark,
Thanks for the response.
Yes, it's on cPanel... But I would've thought it would still be a standard mm install in the back end???
Anyway, url encoding the quotes made no difference I'm afraid... But it did point me in the right direction. Replacing the < and > chars around the address with the url encodes %3C and %3E made it work.
So fixed. Thanks!
On 5 Aug. 2018 2:28 am, "Mark Sapiro" <mark@msapiro.net> wrote:
On 08/04/2018 06:49 AM, Jason Wandel wrote:
I've found some info including on the list history (one from back in 2001 though the link provided on that no longer exists). I think I'm most of
the
way there, I'm now getting a "bad/invalid email address" error from the following (obscured) url, reporting on the Firstname Lastname:
notification_to_list_owner=0&subscribees=Firstname%20Lastname%20<email@otherdomain
&adminpw=the password
I've tried without quotes and with single or double quotes around the name and the name/address combo, all without success.
The fact that you show the list name as list_domain indicates this is cPanel, so the code you are looking at is not the actual code you are dealing with.
However, in standard Mailman, and I don't *think* cPanel is different in this respect, what you show above should work if Firstname and Lastname don't contain special characters such as '.'. If they do, you need to quote it as
%22Firstname%20Lastname%22%20<email@otherdomain>
and the %22 quotes won't hurt even if they aren't needed
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/greenbutterfly42%40gma...
On 08/05/2018 01:54 AM, Jason Wandel wrote:
Yes, it's on cPanel... But I would've thought it would still be a standard mm install in the back end???
cPanel modifies Mailman, mostly to support their appending of '_domain' to list names to avoid name collisions between different domains. The last patch set I have is from 2.1.13 and has 343 lines of patches affecting 12 modules, so no, it's not a lot different from a 'standard' MM install, but it is different.
Replacing the < and > chars around the address with the url encodes %3C and %3E made it work.
When I tested, I didn't need to do that, but maybe my browser did it for me.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Jason Wandel
-
Mark Sapiro