Mark Sapiro wrote:
> Anne Ramey wrote:
>
>   
>> <snip>
>>     
>>> Way 2 is to modify scripts/post to log something. At the end of the
>>> main() function following:
>>>
>>>     inq = get_switchboard(mm_cfg.INQUEUE_DIR)
>>>     inq.enqueue(sys.stdin.read(),
>>>                 listname=listname,
>>>                 tolist=1, _plaintext=1)
>>>
>>> add
>>>
>>>     print >> sys.stderr, _('post to %(listname)s received and queued')
>>>
>>>
>>> This will write the 'post to %(listname)s received and queued' message
>>> with the listname filled in to both the error and post logs for every
>>> post. This again will tell you if the post got to the post script.
>>>
>>>   
>>>       
>> <snip>
>>
>> OK, I added this code, but I get this:
>> Oct 26 16:18:41 2007 post(17996): post to %(listname)s received and queued
>> in the error log (it doesn't replace the listname with the variable) and 
>> nothing in the post log.  Did I do something wrong?
>>     
>
>
> Nothing in the post log is correct. I forgot what the
> LogStdErr("error", "post") call in the script does. I thought the
> second argument was a second log, but it's the identifying label.
>
> The non-replacement of %(listname)s with the name is puzzling. The i18n
> _() function should do this replacement. I copied the print directly
> from below and it worked for me. However, you could do the
> interpolation directly as in
>
>     print >> sys.stderr, 'post to %s received and queued' % listname
>
> and that should work.
>
>
>   
I tried this and he re-sent the problem child message this morning.  I 
got the message in the error log that it was received and queued for 
both list1 and list2, but it only went out to list2.  There is only the 
one entry in the post log (for list 2), and the message never was 
received by the list1 membership.  He later resent (forwarded) the 
message to only list1 and it went through fine.  This tells me that 
Mailman is correctly receiving the message from exim, queuing it up, 
then it vanishes and never gets posted.  Here was the problem:    I was 
Bcc'd on the message and these are what the headers looked like (I've 
taken out the received headers)

Return-Path: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]> (added by [EMAIL PROTECTED])
From: "sender" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "'person1'" <person1
@ncmail.net>,
        "'person2'" <person2
@ncmail.net>,
        "'List2'" <List2
@lists.ncmail.net>
Subject: [ITS.CAB] Agenda Change Advisory Board - Oct 30,2007 3:30pm - CCS 
Conference room
Date: Mon, 29 Oct 2007 10:39:34 -0400
MIME-Version: 1.0
Content-Type: multipart/mixed;
        boundary="----=_NextPart_000_006F_01C81A17.FEDB8B30"
X-Mailer: Microsoft Office Outlook, Build 11.0.6353
X-SeenV-Signature: 380cab9dbfff031d1ef4ebe96869db18
X-BeenThere: [EMAIL PROTECTED]
X-Mailman-Version: 2.1.9rc1
List-Unsubscribe: 
<http://lists.ncmail.net/mailman/listinfo/List1>,<mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <http://lists.ncmail.net/mailman/listinfo/List1>,<mailto:[EMAIL 
PROTECTED]>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Thread-Index: Acfu5oRLJ2rqVU9SRmCpWPWGXW+9IA==


He was copying a message from before that he had received, editting it 
and sending it to the list, so it already had the x-been-there headers.  
I'd never run into this before, so I thank Mark very much for 
recommending the BCC. 

Thanks for all the help,
Anne

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

Reply via email to