Re: [Mailman-Users] Remove sender from list?

2006-05-11 Thread Alan
Thanks guys for having enough patience with me. It helped me a lot.

Alan


Mark Sapiro wrote:
 alan wrote:
   
 First, what is MUA? (Sorry, but I'm quite new in using mailing lists.)
 


 Brad has answered this one.


   
 Second, the reason I'm bothering you all with this is to avoid sending big
 attachments back to the user and save him the trouble of seing mail again,
 as you said. But I have no trouble sending him the indication of reposting.
 


 OK. That seems like a good reason.


   
 Now, since I'm a newbee, can you please explain this to me in more simpla
 way.
 This is What I understood:
 asumming user is user1 and list is 123
 To: 123;
 Cc:user1;
 


 Yes, that's what I meant.


   
 I am using Thunderbird (or OE sometimes) as a mail client to post to the
 list.

 I don't understand this part of your answer:

 
 instead of posting from
 your MUA which will send the Cc:, post the message directly with
 sendmail or equivalent, sending the envelope to the list only.
   


 This is the tricky part. Of course, if you just sent the message
 addressed as above, 'user1' would receive the direct Cc:, thus
 defeating the attempt to spare the user from receiving it again.

 This may be more trouble than it's worth, but what you'd need to do in
 Tbird is compose/forward/whatever the entire post, addressed as above,
 but instead of sending it, save it as a draft (you can't save it
 directly as a file because that only saves the 'body'). Then open the
 draft and save that as a file.

 Now you have a file containing the raw message with headers including
 the Cc: user1. Now you need to deliver that message to a mail server
 with a recipient of *only* the list. Then it will be sent to the list
 only, and Mailman will see the Cc: user1 and not send it to user1
 assuming user1 has 'avoid dups' set in her options.

 This last step is not easy in a MS Windows environment. If you have a
 mail client that supports a 'resend' or 'redirect' operation, you
 could open the message with that client and 'resend' it to the list,
 but I don't think either MSOE or Tbird will do this.

 The following is a minimal python script that can do this.

 import sys
 import smtplib
 SMTPHOST = 'mail.example.com'
 SMTPPORT = 25
 SMTP_USERNAME = '[EMAIL PROTECTED]'
 SMTP_PASSWORD = 'yourpw'
 fp = open(sys.argv[1])
 msg = fp.read()
 fp.close()
 rcpts = [sys.argv[2]]
 env = SMTP_USERNAME
 x = smtplib.SMTP()
 x.connect(SMTPHOST,SMTPPORT)
 x.login(SMTP_USERNAME, SMTP_PASSWORD)
 x.sendmail(env,rcpts,msg)
 x.quit()

 To use the above, you first have to install python
 http://www.python.org/ on your Windows computer. Then save the above
 script in the file 'sendmail.py'. Then in a command window, give the
 command

 python path\to\sendmail.py path\to\saved\message [EMAIL PROTECTED]

 This will send the saved message to [EMAIL PROTECTED] only, even though
 the saved message contains a Cc: user1 header.

 Certain obvious things need to be changed in the above script. Also,
 this will only work with an SMTP server that uses user/password
 authorization.

   
--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] Remove sender from list?

2006-05-10 Thread Mark Sapiro
alan wrote:

First, what is MUA? (Sorry, but I'm quite new in using mailing lists.)


Brad has answered this one.


Second, the reason I'm bothering you all with this is to avoid sending big
attachments back to the user and save him the trouble of seing mail again,
as you said. But I have no trouble sending him the indication of reposting.


OK. That seems like a good reason.


Now, since I'm a newbee, can you please explain this to me in more simpla
way.
This is What I understood:
asumming user is user1 and list is 123
To: 123;
Cc:user1;


Yes, that's what I meant.


I am using Thunderbird (or OE sometimes) as a mail client to post to the
list.

I don't understand this part of your answer:

 instead of posting from
 your MUA which will send the Cc:, post the message directly with
 sendmail or equivalent, sending the envelope to the list only.


This is the tricky part. Of course, if you just sent the message
addressed as above, 'user1' would receive the direct Cc:, thus
defeating the attempt to spare the user from receiving it again.

This may be more trouble than it's worth, but what you'd need to do in
Tbird is compose/forward/whatever the entire post, addressed as above,
but instead of sending it, save it as a draft (you can't save it
directly as a file because that only saves the 'body'). Then open the
draft and save that as a file.

Now you have a file containing the raw message with headers including
the Cc: user1. Now you need to deliver that message to a mail server
with a recipient of *only* the list. Then it will be sent to the list
only, and Mailman will see the Cc: user1 and not send it to user1
assuming user1 has 'avoid dups' set in her options.

This last step is not easy in a MS Windows environment. If you have a
mail client that supports a 'resend' or 'redirect' operation, you
could open the message with that client and 'resend' it to the list,
but I don't think either MSOE or Tbird will do this.

The following is a minimal python script that can do this.

import sys
import smtplib
SMTPHOST = 'mail.example.com'
SMTPPORT = 25
SMTP_USERNAME = '[EMAIL PROTECTED]'
SMTP_PASSWORD = 'yourpw'
fp = open(sys.argv[1])
msg = fp.read()
fp.close()
rcpts = [sys.argv[2]]
env = SMTP_USERNAME
x = smtplib.SMTP()
x.connect(SMTPHOST,SMTPPORT)
x.login(SMTP_USERNAME, SMTP_PASSWORD)
x.sendmail(env,rcpts,msg)
x.quit()

To use the above, you first have to install python
http://www.python.org/ on your Windows computer. Then save the above
script in the file 'sendmail.py'. Then in a command window, give the
command

python path\to\sendmail.py path\to\saved\message [EMAIL PROTECTED]

This will send the saved message to [EMAIL PROTECTED] only, even though
the saved message contains a Cc: user1 header.

Certain obvious things need to be changed in the above script. Also,
this will only work with an SMTP server that uses user/password
authorization.

-- 
Mark Sapiro [EMAIL PROTECTED]   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://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=showamp;file=faq01.027.htp


Re: [Mailman-Users] Remove sender from list?

2006-05-06 Thread alan
First, what is MUA? (Sorry, but I'm quite new in using mailing lists.)
Second, the reason I'm bothering you all with this is to avoid sending big
attachments back to the user and save him the trouble of seing mail again,
as you said. But I have no trouble sending him the indication of reposting.

Now, since I'm a newbee, can you please explain this to me in more simpla
way.
This is What I understood:
asumming user is user1 and list is 123
To: 123;
Cc:user1;

I am using Thunderbird (or OE sometimes) as a mail client to post to the
list.

I don't understand this part of your answer:

 instead of posting from
 your MUA which will send the Cc:, post the message directly with
 sendmail or equivalent, sending the envelope to the list only.


Alan



On 5/5/06, Mark Sapiro [EMAIL PROTECTED] wrote:

 Alan wrote:

 Ok, that is one option. Now is it possible to control it through some
 keywords in header of mail.
 Similar to putting Approved: password in the first line of post.


 If the user has no dups set in the user's options, you can put a Cc: to
 the user in the email To: the list and then instead of posting from
 your MUA which will send the Cc:, post the message directly with
 sendmail or equivalent, sending the envelope to the list only. I think
 that's the best you can do.


  At 9:11 +0200 5/4/06, Alan wrote:
 
  Situation is:
 
  I have a list named 123
  I have a user user1 in that list
  I get a mail from user1 and want to forward it to list 123 but would
  like to exclude user1 from the list for that one time


 Are you trying to hide the fact that you reposted the message to the
 list (the user could see it in the archives or a subsequent reply to
 the list if there are archives or replies or some other list member
 may just tell the user, so hiding may not be effective)?

 If you're only trying to save the user the trouble of seeing the
 message again, I think on the other hand, it is a courtesy to the user
 to receive the post which indicates it has been reposted.

 --
 Mark Sapiro [EMAIL PROTECTED]   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://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=showamp;file=faq01.027.htp


Re: [Mailman-Users] Remove sender from list?

2006-05-06 Thread Brad Knowles
At 9:12 PM +0200 2006-05-06, alan wrote:

  First, what is MUA? (Sorry, but I'm quite new in using mailing lists.)

MUA = Mail User Agent

Typical MUAs are Microsoft Outlook or Outlook Express, 
Thunderbird, Eudora, etc  In your case, based on the headers 
included in the messages you are posting to the list, it appears that 
you are using Gmail through their web interface, so Gmail would be 
your MUA.

I'll let someone else try to explain the rest.

-- 
Brad Knowles, [EMAIL PROTECTED]

Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.

 -- Benjamin Franklin (1706-1790), reply of the Pennsylvania
 Assembly to the Governor, November 11, 1755

  LOPSA member since December 2005.  See http://www.lopsa.org/.
--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] Remove sender from list?

2006-05-05 Thread Alan
Ok, that is one option. Now is it possible to control it through some 
keywords in header of mail.
Similar to putting Approved: password in the first line of post.

I would like to avoid logging in to admin panel.

Alan


Allan Hansen wrote:
 Sure,

 Set the user's option to 'nomail', send the message
 and set the user's option back.
 You'll need admin access to do that, though, as moderators don't have
 access to the options.

 Allan
 At 9:11 +0200 5/4/06, Alan wrote:
   
 Is it possible to remove exclude someone form the list for just one time 
 using some keywords or headers?

 Situation is:

 I have a list named 123
 I have a user user1 in that list
 I get a mail from user1 and want to forward it to list 123 but would 
 like to exclude user1 from the list for that one time

 I hope you understand what I mean :-)

 Alan
 

   

--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] Remove sender from list?

2006-05-05 Thread Allan Hansen
No, there's no such option, Alan.

Allan

At 9:33 +0200 5/5/06, Alan wrote:
Ok, that is one option. Now is it possible to control it through some
keywords in header of mail.
Similar to putting Approved: password in the first line of post.

I would like to avoid logging in to admin panel.

Alan


Allan Hansen wrote:

Sure,

Set the user's option to 'nomail', send the message
and set the user's option back.
You'll need admin access to do that, though, as moderators don't have
access to the options.

Allan
At 9:11 +0200 5/4/06, Alan wrote:


Is it possible to remove exclude someone form the list for just one time
using some keywords or headers?

Situation is:

I have a list named 123
I have a user user1 in that list
I get a mail from user1 and want to forward it to list 123 but would
like to exclude user1 from the list for that one time

I hope you understand what I mean :-)

Alan
   





-- 
 _
| Allan Hansen, Ph.D. |
|P.O. Box 2423, Cypress, CA 90630, U.S.A. |
| |
| Work:  Home:|
| Phone: +1-714/952-6015 +1-714/875-8870  |
| Fax:   +1-714/952-6746  |
| Email: [EMAIL PROTECTED][EMAIL PROTECTED]|
| WWW:   http://www.ugs.com  http://www.rc.org/   |
| |
|_Anything is possible with the right tools and right information_|
--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] Remove sender from list?

2006-05-05 Thread Mark Sapiro
Alan wrote:

Ok, that is one option. Now is it possible to control it through some 
keywords in header of mail.
Similar to putting Approved: password in the first line of post.


If the user has no dups set in the user's options, you can put a Cc: to
the user in the email To: the list and then instead of posting from
your MUA which will send the Cc:, post the message directly with
sendmail or equivalent, sending the envelope to the list only. I think
that's the best you can do.


 At 9:11 +0200 5/4/06, Alan wrote:

 Situation is:

 I have a list named 123
 I have a user user1 in that list
 I get a mail from user1 and want to forward it to list 123 but would 
 like to exclude user1 from the list for that one time


Are you trying to hide the fact that you reposted the message to the
list (the user could see it in the archives or a subsequent reply to
the list if there are archives or replies or some other list member
may just tell the user, so hiding may not be effective)?

If you're only trying to save the user the trouble of seeing the
message again, I think on the other hand, it is a courtesy to the user
to receive the post which indicates it has been reposted.

-- 
Mark Sapiro [EMAIL PROTECTED]   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://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=showamp;file=faq01.027.htp


[Mailman-Users] Remove sender from list?

2006-05-04 Thread Alan
Is it possible to remove exclude someone form the list for just one time 
using some keywords or headers?

Situation is:

I have a list named 123
I have a user user1 in that list
I get a mail from user1 and want to forward it to list 123 but would 
like to exclude user1 from the list for that one time

I hope you understand what I mean :-)

Alan
--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] Remove sender from list?

2006-05-04 Thread Allan Hansen
Sure,

Set the user's option to 'nomail', send the message
and set the user's option back.
You'll need admin access to do that, though, as moderators don't have
access to the options.

Allan
At 9:11 +0200 5/4/06, Alan wrote:
Is it possible to remove exclude someone form the list for just one time 
using some keywords or headers?

Situation is:

I have a list named 123
I have a user user1 in that list
I get a mail from user1 and want to forward it to list 123 but would 
like to exclude user1 from the list for that one time

I hope you understand what I mean :-)

Alan

-- 
 _
| Allan Hansen, Ph.D. |
|P.O. Box 2423, Cypress, CA 90630, U.S.A. |
| |
| Work:  Home:|
| Phone: +1-714/952-6015 +1-714/875-8870  |
| Fax:   +1-714/952-6746  |
| Email: [EMAIL PROTECTED][EMAIL PROTECTED]|
| WWW:   http://www.ugs.com  http://www.rc.org/   |
| |
|_Anything is possible with the right tools and right information_|
--
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=showamp;file=faq01.027.htp