Re: [Mailman-Users] Subscribing by Email Command AND Including Name

2012-03-26 Thread Mark Sapiro
On 3/26/2012 12:52 AM, Bob Bowers wrote:
> Am I missing something? Is it possible to send a subscription request
> to a mail list WITH the name of the subscriber? This is possible in
> “Mass Subscription” but I do not see a place to include a name in a
> command string by email. I would like to have my list open for
> subscription, however I want the names of subscribers in the list.


It depends. If the user sends email to the list-join or list-subscribe
address or to list-request with a plain subscribe command, the user's
name will be taken from the From: header of the email.

I.e., an email

From: My Name 
To: list.j...@example.net

is a request to subscribe m...@example.com with name 'My Name'.

On the other hand, if you send a subscribe command with the address=
option to the list-request address in order to subscribe an address
other than the From: header address, there is no way to specify a user
name with that command. You can send, e.g., the command

subscribe mypasswd digest

without the address= option to specify a password and/or (no)digest, and
as long as it doesn't have address=, both name (if any) and address will
be taken form the From: header.

-- 
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
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] subscribing by email

2009-02-17 Thread Alan Rubin
Mark,

Nope, I didn't realise that a restart was required.  I just restarted it
and it seems to work fine now. Thanks for the help, once again.

Regards,

Alan Rubin   
Technician Unix
DCS Midrange Services
Phone: +61 (08) 8999 5111
Fax:  +61 (08) 8999 7493
e-Mail: alan.ru...@nt.gov.au

-Original Message-
From: Mark Sapiro [mailto:m...@msapiro.net] 
Sent: Wednesday, 18 February 2009 1:28 AM
To: Alan Rubin; Mailman User List
Subject: RE: [Mailman-Users] subscribing by email

Alan Rubin wrote:
>
>I applied the patch, used the request address, and my message still
gets
>shunted.


Did you restart Mailman after applying the patch?


>
>Feb 17 14:59:32 2009 (1046) Uncaught runner exception: 'NoneType'
object
>has no attribute 'lower'
>Feb 17 14:59:32 2009 (1046) Traceback (most recent call last):
>  File "/export/home/mailman/Mailman/Queue/Runner.py", line 114, in
>_oneloop
>self._onefile(msg, msgdata)
>  File "/export/home/mailman/Mailman/Queue/Runner.py", line 185, in
>_onefile
>keepqueued =3D self._dispose(mlist, msg, msgdata)
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 239,
>in _dispose
>res.process()
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 112,
>in process
>stop =3D self.do_command(cmd, args)
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 139,
>in do_command
>return handler.process(self, args)
>  File "/export/home/mailman/Mailman/Commands/cmd_subscribe.py", line
>74, in process
>if (digest is None
>AttributeError: 'NoneType' object has no attribute 'lower'
>
>Feb 17 14:59:32 2009 (1046) SHUNTING:
>1234848571.543715+462ea839ccdd63f659aab843129562980c886d3c
>
>
>Diff on the cmd_subscribe.py new and old:
>
># diff Mailman/Commands/cmd_subscribe.py Mailman/Commands/cmd_sub>
>74,75c74
>< if (digest is None
>< and password and password.lower() in ('digest',
>'nodigest')):
>---
>> if digest is None and password.lower() in ('digest', 'nodigest'):


I think the only possible explanation for the above is you didn't
restart Mailman.

Also, even without the patch, if you sent a

  subscribe nodigest address=...@example.com

command to the list-request address, it shouldn't trigger that error
unless you also had, e.g., a bare 'subscribe' in the subject. In mails
to -request, both Subject: and body are scanned for commands so if you
mail to -request with "Subject: subscribe" and body

subscribe nodigest address=...@example.com

that's two subscribe commands and the plain "subscribe" will trigger
the bug.


>The web form that you pointed me at should work regardless of this
error
>with the cmd_subscribe.py utility?


That's correct.

-- 
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
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] subscribing by email

2009-02-17 Thread Mark Sapiro
Alan Rubin wrote:
>
>I applied the patch, used the request address, and my message still gets
>shunted.


Did you restart Mailman after applying the patch?


>
>Feb 17 14:59:32 2009 (1046) Uncaught runner exception: 'NoneType' object
>has no attribute 'lower'
>Feb 17 14:59:32 2009 (1046) Traceback (most recent call last):
>  File "/export/home/mailman/Mailman/Queue/Runner.py", line 114, in
>_oneloop
>self._onefile(msg, msgdata)
>  File "/export/home/mailman/Mailman/Queue/Runner.py", line 185, in
>_onefile
>keepqueued =3D self._dispose(mlist, msg, msgdata)
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 239,
>in _dispose
>res.process()
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 112,
>in process
>stop =3D self.do_command(cmd, args)
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 139,
>in do_command
>return handler.process(self, args)
>  File "/export/home/mailman/Mailman/Commands/cmd_subscribe.py", line
>74, in process
>if (digest is None
>AttributeError: 'NoneType' object has no attribute 'lower'
>
>Feb 17 14:59:32 2009 (1046) SHUNTING:
>1234848571.543715+462ea839ccdd63f659aab843129562980c886d3c
>
>
>Diff on the cmd_subscribe.py new and old:
>
># diff Mailman/Commands/cmd_subscribe.py Mailman/Commands/cmd_sub>
>74,75c74
>< if (digest is None
>< and password and password.lower() in ('digest',
>'nodigest')):
>---
>> if digest is None and password.lower() in ('digest', 'nodigest'):


I think the only possible explanation for the above is you didn't
restart Mailman.

Also, even without the patch, if you sent a

  subscribe nodigest address=...@example.com

command to the list-request address, it shouldn't trigger that error
unless you also had, e.g., a bare 'subscribe' in the subject. In mails
to -request, both Subject: and body are scanned for commands so if you
mail to -request with "Subject: subscribe" and body

subscribe nodigest address=...@example.com

that's two subscribe commands and the plain "subscribe" will trigger
the bug.


>The web form that you pointed me at should work regardless of this error
>with the cmd_subscribe.py utility?


That's correct.

-- 
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
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] subscribing by email

2009-02-16 Thread Alan Rubin
Mark,

I applied the patch, used the request address, and my message still gets
shunted.

Feb 17 14:59:32 2009 (1046) Uncaught runner exception: 'NoneType' object
has no attribute 'lower'
Feb 17 14:59:32 2009 (1046) Traceback (most recent call last):
  File "/export/home/mailman/Mailman/Queue/Runner.py", line 114, in
_oneloop
self._onefile(msg, msgdata)
  File "/export/home/mailman/Mailman/Queue/Runner.py", line 185, in
_onefile
keepqueued = self._dispose(mlist, msg, msgdata)
  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 239,
in _dispose
res.process()
  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 112,
in process
stop = self.do_command(cmd, args)
  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 139,
in do_command
return handler.process(self, args)
  File "/export/home/mailman/Mailman/Commands/cmd_subscribe.py", line
74, in process
if (digest is None
AttributeError: 'NoneType' object has no attribute 'lower'

Feb 17 14:59:32 2009 (1046) SHUNTING:
1234848571.543715+462ea839ccdd63f659aab843129562980c886d3c


Diff on the cmd_subscribe.py new and old:

# diff Mailman/Commands/cmd_subscribe.py Mailman/Commands/cmd_sub>
74,75c74
< if (digest is None
< and password and password.lower() in ('digest',
'nodigest')):
---
> if digest is None and password.lower() in ('digest', 'nodigest'):


The web form that you pointed me at should work regardless of this error
with the cmd_subscribe.py utility?

Regards,

Alan Rubin   
Technician Unix
DCS Midrange Services
Phone: +61 (08) 8999 5111
Fax:  +61 (08) 8999 7493
e-Mail: alan.ru...@nt.gov.au

-----Original Message-----
From: Mark Sapiro [mailto:m...@msapiro.net] 
Sent: Tuesday, 17 February 2009 2:22 PM
To: Alan Rubin; Mailman User List
Subject: Re: [Mailman-Users] subscribing by email

Alan Rubin wrote:
>
>We have a customer who would like to use a form on a website to
>subscribe people to a mailing list.  In theory, the form would email
the
>details the list-join address of the list.


Unduly complicated. See the FAQ at <http://wiki.list.org/x/hIA9>.

But, since you ask, read on...


>I have tried following the
>instructions from the members' manual:
>
>subscribe [] [digest-nodigest] [address=]
>Subscribe to this mailing list. Your password must be given to
>unsubscribe or change your options, but
>if you omit the password, one will be generated for you. You may be
>periodically reminded of your
>password.
>The next argument may be either: 'nodigest' or 'digest' (no quotes!).
If
>you wish to subscribe an address
>other than the address you sent this request from, you may specify
>'address=' (no brackets
>around the email address, and no quotes!)
>
>I am testing this process with a test list using the following email:
>
>-Original Message-
>From: Alan Rubin 
>Sent: Tuesday, 17 February 2009 1:46 PM
>To: 'test-j...@lists.nt.gov.au'
>Subject: 
>
>subscribe nodigest address=adam.sm...@nt.gov.au


You can't send a generic subscribe command to to the -join or
-subscribe address. The subject/body of mail to those addresses are
ignored and they just request subscription of the From: address with
generated password and default digest/nodigest.

If you want to send a subscribe command as above in the subject or body
of the mail, you have to send it to the -request address.

But that isn't the reason for the following.


>but my attempts keep getting shunted (tried twice, first without a
>digest option):
>
>
>Feb 17 13:46:20 2009 (1046) Traceback (most recent call last):
>  File "/export/home/mailman/Mailman/Queue/Runner.py", line 114, in
>_oneloop
>self._onefile(msg, msgdata)
>  File "/export/home/mailman/Mailman/Queue/Runner.py", line 185, in
>_onefile
>keepqueued = self._dispose(mlist, msg, msgdata)
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 241,
>in _dispose
>res.do_command('join')
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 139,
>in do_command
>return handler.process(self, args)
>  File "/export/home/mailman/Mailman/Commands/cmd_subscribe.py", line
>74, in process
>if digest is None and password.lower() in ('digest', 'nodigest'):
>AttributeError: 'NoneType' object has no attribute 'lower'
>
>Feb 17 13:46:20 2009 (1046) SHUNTING:
>1234844179.158844+4d54d8a83f98a957ccff205953e10afbc0a9eecd
>
>
>Any help?  Am I missing a step?  This is somewhat urgent, if anyone is
>still awake in the West.


This was a bug in the 2.1.10 rele

Re: [Mailman-Users] subscribing by email

2009-02-16 Thread Mihamina Rakotomandimby

Alan Rubin wrote:


if digest is None and password.lower() in ('digest', 'nodigest'):
AttributeError: 'NoneType' object has no attribute 'lower'


In Python, this means mailman is trying to lowercase the password but 
there is nothing to lowercase.


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] subscribing by email

2009-02-16 Thread Mark Sapiro
Alan Rubin wrote:
>
>We have a customer who would like to use a form on a website to
>subscribe people to a mailing list.  In theory, the form would email the
>details the list-join address of the list.


Unduly complicated. See the FAQ at .

But, since you ask, read on...


>I have tried following the
>instructions from the members' manual:
>
>subscribe [] [digest-nodigest] [address=]
>Subscribe to this mailing list. Your password must be given to
>unsubscribe or change your options, but
>if you omit the password, one will be generated for you. You may be
>periodically reminded of your
>password.
>The next argument may be either: 'nodigest' or 'digest' (no quotes!). If
>you wish to subscribe an address
>other than the address you sent this request from, you may specify
>'address=' (no brackets
>around the email address, and no quotes!)
>
>I am testing this process with a test list using the following email:
>
>-Original Message-
>From: Alan Rubin 
>Sent: Tuesday, 17 February 2009 1:46 PM
>To: 'test-j...@lists.nt.gov.au'
>Subject: 
>
>subscribe nodigest address=adam.sm...@nt.gov.au


You can't send a generic subscribe command to to the -join or
-subscribe address. The subject/body of mail to those addresses are
ignored and they just request subscription of the From: address with
generated password and default digest/nodigest.

If you want to send a subscribe command as above in the subject or body
of the mail, you have to send it to the -request address.

But that isn't the reason for the following.


>but my attempts keep getting shunted (tried twice, first without a
>digest option):
>
>
>Feb 17 13:46:20 2009 (1046) Traceback (most recent call last):
>  File "/export/home/mailman/Mailman/Queue/Runner.py", line 114, in
>_oneloop
>self._onefile(msg, msgdata)
>  File "/export/home/mailman/Mailman/Queue/Runner.py", line 185, in
>_onefile
>keepqueued = self._dispose(mlist, msg, msgdata)
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 241,
>in _dispose
>res.do_command('join')
>  File "/export/home/mailman/Mailman/Queue/CommandRunner.py", line 139,
>in do_command
>return handler.process(self, args)
>  File "/export/home/mailman/Mailman/Commands/cmd_subscribe.py", line
>74, in process
>if digest is None and password.lower() in ('digest', 'nodigest'):
>AttributeError: 'NoneType' object has no attribute 'lower'
>
>Feb 17 13:46:20 2009 (1046) SHUNTING:
>1234844179.158844+4d54d8a83f98a957ccff205953e10afbc0a9eecd
>
>
>Any help?  Am I missing a step?  This is somewhat urgent, if anyone is
>still awake in the West.


This was a bug in the 2.1.10 release. See

for a patch, but the irony here is if you had sent the mail to
test-requ...@lists.nt.gov.au, it would have worked and not triggered
the bug.

-- 
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
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] Subscribing by email?

2007-08-18 Thread Mark Sapiro
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul Key wrote:
> 
> I am looking to get users to subscribe and unsubscribe from certain 
> lists using email.  I am getting them to emal 
> -request at blah.blah with "subscribe" in the message body. This 
> works fine with an empty subject field (they get one confirmation email 
> as expected) but if they put a subject on the subscription request email 
> they receive two subscription confirmation emails from mailman in reply. 
> Anyone no why this happens?  They would like to put something in the 
> subject.


When mail is sent to the listname-request address, both the subject and
body are scanned for commands. If the subject doesn't contain a valid
command, it is ignored, but if both the subject and body contain
'subscribe' there are two subscribe commands.

They can send a mail to listname-request with 'subscribe' in the subject
and an empty body, or as has been mentioned in other replies, they can
mail listname-join or listname-subscribe and the subject and body will
be ignored.

- --
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFGx83FVVuXXpU7hpMRAsmrAJ9gIDJyegcuxGtSlCwgQLSpnh9pmgCfeBRI
WtcA9Tlrg4z3IIuPLw/V8JQ=
=G1n4
-END PGP SIGNATURE-
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Subscribing by email?

2007-08-16 Thread Todd Zullinger
Brad Knowles wrote:
>>  Also does mailman 2.1.3 support the sending of a blank email to
>>  [EMAIL PROTECTED] ? (or some similar address) instead
>>  of the subscribe email via request?
> 
> Sure.  Just set up your aliases to support that.  Mailman doesn't
> actually see anything of the addresses that were used to submit the
> messages, it just takes the command-line options it's passed via the
> alias definition.

There should be no need to add aliases for that, they already exist.
The -join (and -leave) aliases will ignore the
subject and body.

The mailman list admin manual says this:

1.1 A List's Email Addresses

[...]

  • [EMAIL PROTECTED] - by sending a message to this address, a
new member can request subscription to the list. Both the
Subject: header and body of such a message are ignored. Note that
[EMAIL PROTECTED] is an alias for the -join address.

  • [EMAIL PROTECTED] - by sending a message to this address,
a member can request unsubscription from the list. As with the
-join address, the Subject: header and body of the message is
ignored. Note that [EMAIL PROTECTED] is an alias for
the -leave address.

I don't know for sure if these were in 2.1.3, but I suspect they were.

-- 
ToddOpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~
Be who you are and say what you feel because those who mind don't
matter and those who matter don't mind.
-- Dr Seuss, "Oh the Places You'll Go"



pgpSuHDzey78z.pgp
Description: PGP signature
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

Re: [Mailman-Users] Subscribing by email?

2007-08-15 Thread Brad Knowles
On 8/15/07, Paul Key wrote:

>  Mailman 2.1.3
>  Solaris 9

Keep in mind that Mailman 2.1.3 is pretty old, and there have been 
several security-related releases since then.  I would strongly 
encourage you to upgrade to the latest version, which is 2.1.9.

>  I am looking to get users to subscribe and unsubscribe from certain
>  lists using email.  I am getting them to emal
>  [EMAIL PROTECTED] with "subscribe" in the message body. This
>  works fine with an empty subject field (they get one confirmation email
>  as expected) but if they put a subject on the subscription request email
>  they receive two subscription confirmation emails from mailman in reply.
>  Anyone no why this happens?  They would like to put something in the
>  subject.

I'm not sure, but I'd suggest looking through the list of bugs on the 
Mailman Sourceforge page.  This sounds vaguely familiar, and I 
suspect that this is an old problem which has since been fixed.

>  Also does mailman 2.1.3 support the sending of a blank email to
>  [EMAIL PROTECTED] ? (or some similar address) instead of
>  the subscribe email via request?

Sure.  Just set up your aliases to support that.  Mailman doesn't 
actually see anything of the addresses that were used to submit the 
messages, it just takes the command-line options it's passed via the 
alias definition.

-- 
Brad Knowles <[EMAIL PROTECTED]>, Consultant & Author
LinkedIn Profile: 
Slides from Invited Talks: 

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp