Re: [Mailman-Users] Determine whether a message is sent to a particularuser

2010-05-27 Thread Hung Phan
Thank you! That's exactly what we looking for. The recipients are recorded in 
/var/log/exim/main.log



On May 27, 2010, at 12:41 PM, Mark Sapiro wrote:

> Hung Phan wrote:
>> 
>> A user reports that she did not receive an emergency message that was sent 
>> to a list of 819 members with one member marked as no mail, yesterday. 
>> According to smtp log, the message sent out to 813 recipients of that list 
>> on May 25, 2010 10:39:40. Within the next 5 minutes, this message re-send to 
>> 15 members of the list ( according to post log, no message is posted to this 
>> list or any other lists for 60 minutes after this message)
>> Will we able to determine exactly whether the message is indeed sent to her 
>> account (hotmail account)? Will we able to determine the 15 members that the 
>> message re-send to?
> 
> 
> All of this information should be available by analyzing the MTA's
> log(s).
> 
> Note that at most however, you will only be able to determine whether
> or not her message was accepted by a hotmail server. You will not be
> able to determine whether hotmail delivered it to her inbox or her
> junk folder or discarded it.
> 
> -- 
> 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] possible arch bug?

2010-05-27 Thread Mark Sapiro
Robert Khachikyan wrote:

>I've been importing thousands of emails from majordomo to mailman and I 
>might have found a bug...
>
>The original email has this:
>
> From - Fri Jan 1 00:00:01 2010
>Delivered-To: b...@bla.com
>Message-ID: <7cb5f45d9e56d511836f0002a537dd6992c...@bla.com>
>From: bla@bla.com
>To: bla@bla.com
>Subject: here is the subject line
>Date: Thu, 28 Jul 2005 16:38:27 -0700
>Content-Type: text/plain; charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>Sender: owner-bla
>Precedence: bulk
>
> From today, everything should be back to 'normal' again. This applies
>to all stations mentioned above, except for DOJO. This station is
>presently in a 'transition' mode. Due to 're-configuration' activities,
>
>
>~mailman/bin/arch interprets this as 2 emails simply because it detected 
>the ^From again.
>Shouldn't it be seeking for "^From(\s)-(\s)()$" ??


bin/arch uses the Python mailbox.PortableUnixMailbox class which is
very loose about what constitutes a From_ separator.

That's why we provide a script, bin/cleanarch for checking archive mbox
files and escaping lines beginning with From_ which aren't message
separators.

-- 
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


[Mailman-Users] possible arch bug?

2010-05-27 Thread Robert Khachikyan
I've been importing thousands of emails from majordomo to mailman and I 
might have found a bug...


The original email has this:

From - Fri Jan 1 00:00:01 2010
Delivered-To: b...@bla.com
Message-ID: <7cb5f45d9e56d511836f0002a537dd6992c...@bla.com>
From: bla@bla.com
To: bla@bla.com
Subject: here is the subject line
Date: Thu, 28 Jul 2005 16:38:27 -0700
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Sender: owner-bla
Precedence: bulk

From today, everything should be back to 'normal' again. This applies
to all stations mentioned above, except for DOJO. This station is
presently in a 'transition' mode. Due to 're-configuration' activities,


~mailman/bin/arch interprets this as 2 emails simply because it detected 
the ^From again.

Shouldn't it be seeking for "^From(\s)-(\s)()$" ??

--Robert
--
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] How to enforce Author line?

2010-05-27 Thread Mark Sapiro
Robert Khachikyan wrote:
>
>On some of the lists, I want to configure such that the very first line 
>of the body contains the "Author: " line.
>
>(This is for legacy purposes).  And if the Author line is not given, 
>then messages are bounced to moderator and/or the sender.
>
>I tried putting ^Author: and other reg exps in the "topics" section, but 
>none worked.


For the most part, Mailman only has facilities for examining message
headers and not body contents. There are a few cases such as an
Approved: header for message pre-approval or a Subject: or Keywords:
header for topics where Mailman also will look at the initial body
lines for a match, but in the case of Topics, it still only looks in
the body for lines that look like a Subject: or Keywords: header.

Thus, if you were going to use topic filters for this the initial body
line would need to be

Subject: Author: ...

or

Keywords: Author: ...

The way to do what you want is with a custom handler. See the FAQ at
 for information on installing a custom
handler. You can apply one of the methods for installing for a single
list to each of the lists you want to use it for.

The handler code itself could look something like the following:

from Mailman import Errors

class NoAuthorLine(Errors.HoldMessage):
reason = 'No Author line in the message body'
rejection = "The first text/plain part of the message didn't begin
with Author:"

def process(mlist, msg, msgdata):
for part in msg.walk():
if part.get_content_type <> 'text/plain':
continue
if part.get_payload(decode=True).startswith('Author:')
return
else:
raise NoAuthorLine
raise NoAuthorLine

(watch out for the wrapped rejection = line above, and this is untested)

If this handler were in the pipeline, say ahead of Moderate, any
message that didn't have a text/plain part or whose first text/plain
part didn't start with 'Author:' would be held for approval for 'No
Author line in the message body' and if rejected by the moderator, the
default reason would be "The first text/plain part of the message
didn't begin with Author:"

If the message's first text/plain part did begin with Author:, it would
pass this check but still be subject to membership and moderation
tests and miscellaneous holds.

If you wanted to apply the membership and moderation and
*_these_nonmembers tests first but not the miscellaneous holds, put
the handler in the pipeline between Moderate and Hold.

-- 
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


[Mailman-Users] How to enforce Author line?

2010-05-27 Thread Robert Khachikyan

Dear Guru's,

On some of the lists, I want to configure such that the very first line 
of the body contains the "Author: " line.


(This is for legacy purposes).  And if the Author line is not given, 
then messages are bounced to moderator and/or the sender.


I tried putting ^Author: and other reg exps in the "topics" section, but 
none worked.


Any ideas?

Thanks,
--Robert
--
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] Determine whether a message is sent to a particular user

2010-05-27 Thread LuKreme
On 27-May-2010, at 11:49, Hung Phan wrote:
> 
> A user reports that she did not receive an emergency message that was sent to 
> a list of 819 members with one member marked as no mail, yesterday. According 
> to smtp log, the message sent out to 813 recipients of that list on May 25, 
> 2010 10:39:40. Within the next 5 minutes, this message re-send to 15 members 
> of the list ( according to post log, no message is posted to this list or any 
> other lists for 60 minutes after this message)
> Will we able to determine exactly whether the message is indeed sent to her 
> account (hotmail account)? Will we able to determine the 15 members that the 
> message re-send to?

1) You will have to look at the maillog on the mailserver to see the message 
sent and accepted by hotmail (I can pretty much guarantee that hotmail accepted 
the message).

2) If anyone is counting on hotmail to deliver critical emails they are 
complete and total morons. Hotmail is *not* reliable and often discards 
messages with no notice to the receiver.


-- 
I have seen galaxies die. I have watched atoms dance. But until I had
the dark behind the eyes, I didn't know the death from the dance. --The
Thief of Time

--
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] Determine whether a message is sent to a particularuser

2010-05-27 Thread Mark Sapiro
Hung Phan wrote:
>
>A user reports that she did not receive an emergency message that was sent to 
>a list of 819 members with one member marked as no mail, yesterday. According 
>to smtp log, the message sent out to 813 recipients of that list on May 25, 
>2010 10:39:40. Within the next 5 minutes, this message re-send to 15 members 
>of the list ( according to post log, no message is posted to this list or any 
>other lists for 60 minutes after this message)
>Will we able to determine exactly whether the message is indeed sent to her 
>account (hotmail account)? Will we able to determine the 15 members that the 
>message re-send to?


All of this information should be available by analyzing the MTA's
log(s).

Note that at most however, you will only be able to determine whether
or not her message was accepted by a hotmail server. You will not be
able to determine whether hotmail delivered it to her inbox or her
junk folder or discarded it.

-- 
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


[Mailman-Users] Determine whether a message is sent to a particular user

2010-05-27 Thread Hung Phan

Hello, 

A user reports that she did not receive an emergency message that was sent to a 
list of 819 members with one member marked as no mail, yesterday. According to 
smtp log, the message sent out to 813 recipients of that list on May 25, 2010 
10:39:40. Within the next 5 minutes, this message re-send to 15 members of the 
list ( according to post log, no message is posted to this list or any other 
lists for 60 minutes after this message)
Will we able to determine exactly whether the message is indeed sent to her 
account (hotmail account)? Will we able to determine the 15 members that the 
message re-send to?

Thank you very much for the advice,
--
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