On Friday, July 4, 2003, at 12:38 PM, Richard Barrett wrote:

It is the sent to stdout via print commands, which are received by the subordinate list like any other message would be. When the list sends the message out, it supplies its own Return-Path:, etc., headers, as any list would do.

But what is going to happen if your script decides _not_ to forward the message to the mailman wrapper. Would you not be better using os.popen() if you decide to deliver the message to the subordinate list. As things stand is not the normal post script is being asked to read a message from an empty pipe? It may cope with that but why make it do so and what are the consequences.

A little sleight-of-hand: if the message is not to be sent to the list, I add a particular header to the message. The subordinate list is then configured to automatically discard any message containing that header. So all messages get forwarded to the list, but only the "good" ones ever get sent out to subscribers.


     ___/
    /
   __/
  /
 ____/
 Ed Leafe
 http://leafe.com/
 http://opentech.leafe.com


------------------------------------------------------ Mailman-Users mailing list [EMAIL PROTECTED] 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/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to