[Mailman-Users] Errors with new version

2020-05-13 Thread Sebastian Hagedorn
Hi,

we seem to have new entries in the error log. I believe they have only started 
to appear with the recent updates, but I cannot swear to that:

admin(7095): [- Mailman Version: 2.1.33 -]
admin(7095): [- Traceback --]
admin(7095): Traceback (most recent call last):
admin(7095):   File "/usr/lib/mailman/scripts/driver", line 117, in run_main
admin(7095): main()
admin(7095):   File "/usr/lib/mailman/Mailman/Cgi/subscribe.py", line 113, in 
main
admin(7095): process_form(mlist, doc, cgidata, language)
admin(7095):   File "/usr/lib/mailman/Mailman/Cgi/subscribe.py", line 258, in 
process_form
admin(7095): mlist.AddMember(userdesc, remote)
admin(7095):   File "/usr/lib/mailman/Mailman/MailList.py", line 941, in 
AddMember
admin(7095): if self.CheckPending(email):
admin(7095):   File "/usr/lib/mailman/Mailman/MailList.py", line 849, in 
CheckPending
admin(7095): op, data = v
admin(7095): ValueError: too many values to unpack

I have no idea what causes that, and I have not been able to reproduce it. It 
only seems to happen with a minority of subscribe attempts.

Any ideas? Does anybody else see something like that?
-- 
   .:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
.:.Regionales Rechenzentrum (RRZK).:.
  .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: Errors with new version

2020-05-13 Thread Mark Sapiro
On 5/13/20 4:48 AM, Sebastian Hagedorn wrote:
> Hi,
> 
> we seem to have new entries in the error log. I believe they have only 
> started to appear with the recent updates, but I cannot swear to that:
> 
> admin(7095): [- Mailman Version: 2.1.33 -]
> admin(7095): [- Traceback --]
> admin(7095): Traceback (most recent call last):
> admin(7095):   File "/usr/lib/mailman/scripts/driver", line 117, in run_main
> admin(7095): main()
> admin(7095):   File "/usr/lib/mailman/Mailman/Cgi/subscribe.py", line 113, in 
> main
> admin(7095): process_form(mlist, doc, cgidata, language)
> admin(7095):   File "/usr/lib/mailman/Mailman/Cgi/subscribe.py", line 258, in 
> process_form
> admin(7095): mlist.AddMember(userdesc, remote)
> admin(7095):   File "/usr/lib/mailman/Mailman/MailList.py", line 941, in 
> AddMember
> admin(7095): if self.CheckPending(email):
> admin(7095):   File "/usr/lib/mailman/Mailman/MailList.py", line 849, in 
> CheckPending
> admin(7095): op, data = v
> admin(7095): ValueError: too many values to unpack
> 
> I have no idea what causes that, and I have not been able to reproduce it. It 
> only seems to happen with a minority of subscribe attempts.

This comes from the new in 2.1.30 feature:

There is a new REFUSE_SECOND_PENDING mm_cfg.py setting that will cause a
second request to subscribe to a list when there is already a pending
confirmation for that user.  This can be set to Yes to prevent
mailbombing of a third party by repeatedly posting the subscribe form.
(LP: #1859104)

There is a bug in the code in that it assumes every entry in the
pending.pck data is a 2-tuple which isn't correct. You can avoid this by
not setting REFUSE_SECOND_PENDING = Yes in mm_cfg.py, or this patch will
fix it

=== modified file 'Mailman/MailList.py'
--- Mailman/MailList.py 2020-01-10 01:00:40 +
+++ Mailman/MailList.py 2020-05-13 17:32:00 +
@@ -846,9 +846,8 @@
 for k, v in pends.items():
 if k in ('evictions', 'version'):
 continue
-op, data = v
-if (op == Pending.SUBSCRIPTION and
-data.address.lower() == email.lower()):
+if (v[0] == Pending.SUBSCRIPTION and
+v[1].address.lower() == email.lower()):
 return True
 return False



-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] MAILMAN Sender name

2020-05-13 Thread justinhumphres--- via Mailman-Users
My question is how can I in the settings for when I email out the mass email 
that it says from: bbcn...@bellviewbaptistpaducah.com instead of being from my 
work email of: jus...@bellviewbaptistpaducah.com? I know it’s probably very 
simple, but any help would be great thanks!
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: MAILMAN Sender name

2020-05-13 Thread Mark Sapiro
On 5/13/20 9:55 AM, justinhumphres--- via Mailman-Users wrote:
> My question is how can I in the settings for when I email out the mass email 
> that it says from: bbcn...@bellviewbaptistpaducah.com instead of being from 
> my work email of: jus...@bellviewbaptistpaducah.com? I know it’s probably 
> very simple, but any help would be great thanks!


It's actually not that simple. If you can arrange for your mail program
to send the message

From: bbcn...@bellviewbaptistpaducah.com

perhaps by creating a new account or alternate identity within your mail
program, that would be the first step.

Then you need to get the list to accept the message. That depends on the
current list settings and how you currently post to the list. If you
currently post using an

Approved: 

header or pseudo-header, you can continue to do that and it will work.

Otherwise, you may need to add bbcn...@bellviewbaptistpaducah.com to the
list's accept_these_nonmembers. Do not add
bbcn...@bellviewbaptistpaducah.com as a member of the list - that can
cause mail loops.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: MAILMAN Sender name

2020-05-13 Thread Christian F Buser via Mailman-Users
Hello Mark Sapiro. On Wed, 13 May 2020 13:35:41 -0700, you wrote:

> Otherwise, you may need to add bbcn...@bellviewbaptistpaducah.com to the
> list's accept_these_nonmembers. Do not add
> bbcn...@bellviewbaptistpaducah.com as a member of the list - that can
> cause mail loops.

I usually do this in a slightly different way. 

I subscribe a possible sender to the list and sett this address to "no 
message", so the address can be used for sending mails to the list but does not 
get list messages - neither from the own address nor from other users. 

Maybe it is important to tell that I use Mailman in a cPanel installation? 

Best wishes, Christian 

-- 
Christian F. Buser, Hohle Gasse 6, CH-5507 Mellingen (Switzerland)  
Hilfe fuer Strassenkinder in Ghana: https://www.chance-for-children.org
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/