Re: Handling emails

2011-06-12 Thread Dan Stromberg
On Sun, Jun 12, 2011 at 6:46 PM, Nobody wrote: > Any message with non-ASCII characters in the headers can safely be > discarded as spam (I've never seen this bug in "legitimate" email). > Many MTAs will simply reject such messages. http://en.wikipedia.org/wiki/Email_address#Internationalization

Re: Handling emails

2011-06-12 Thread Nobody
On Sun, 12 Jun 2011 21:57:38 +0800, TheSaint wrote: > However, some line will fail to decode correctly. I can't imagine why emails > don't comply to a standard. Any headers should be in ASCII; Non-ASCII characters should be encoded using quoted-printable and/or base-64 encoding. Any message wit

Re: Handling emails

2011-06-12 Thread TheSaint
Steven D'Aprano wrote: First of all: thanks for the reply >> header =_pop.top(nmuid, 0) > To parse emails, you should use the email package. It already handles > bytes and strings. I've read several information this afternoon, mostly are leading to errors. That could be my ignorance fault :) F

Re: Handling emails

2011-06-12 Thread Steven D'Aprano
On Sun, 12 Jun 2011 19:20:00 +0800, TheSaint wrote: > Hello > I wrote a program which was working on python 2.x. I'd like to go for > newer version but I face the problem on how the emails are parsed. In > particular I'd like to extract the significant parts of the headers, but > the query to the

Re: Handling emails

2006-10-27 Thread Ben Finney
Fulvio <[EMAIL PROTECTED]> writes: > On Friday 27 October 2006 06:48, Ben Finney wrote: > > There is always the option to not send messages to this list using > > that mail server > > Once again sorry for that. I'll take action to switch to another > mailserver. Thank for the advice That would b

Re: Handling emails

2006-10-27 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Friday 27 October 2006 06:48, Ben Finney wrote: > There is always the option to not send messages to this list using > that mail server Once again sorry for that. I'll take action to switch to another

Re: Handling emails

2006-10-26 Thread Ben Finney
"Peter Decker" <[EMAIL PROTECTED]> writes: > On 10/26/06, Ben Finney <[EMAIL PROTECTED]> wrote: > > There is always the option to not send messages to this list using > > that mail server. I don't care what option is taken, so long as > > the useless and obnoxious headers on his messages stop. > >

Re: Handling emails

2006-10-26 Thread Peter Decker
On 10/26/06, Ben Finney <[EMAIL PROTECTED]> wrote: > > I agree it's a pain, but Fulvio may not have it in his power to > > switch the header off. Mail admins do some incredibly stupid things. > > There is always the option to not send messages to this list using > that mail server. I don't care wh

Re: Handling emails

2006-10-26 Thread Ben Finney
Steve Holden <[EMAIL PROTECTED]> writes: > Please stop sending messages with obnoxious content like this. Yes, I guess I should have expected a response like that from someone :-) > If you insist on telling someone off publicly via a newsgroup, once > is enough. Apparently not. I tried initiall

Re: Handling emails

2006-10-26 Thread Steve Holden
Ben Finney wrote: > Fulvio <[EMAIL PROTECTED]> writes: > > >>*** >>Your mail has been scanned by InterScan MSS. >>*** > > > Please stop sending messages with obnoxious headers like this. > Please stop sending messages with obnoxious content like this. I

Re: Handling emails

2006-10-26 Thread Ben Finney
Fulvio <[EMAIL PROTECTED]> writes: > *** > Your mail has been scanned by InterScan MSS. > *** Please stop sending messages with obnoxious headers like this. -- http://mail.python.org/mailman/listinfo/python-list

Re: Handling emails

2006-10-26 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Wednesday 25 October 2006 13:06, Dennis Lee Bieber wrote: > # based upon bits from the (Active)Python 2.4 help system and other > code... OK, good help, Thank you. As I had confessed, that code was

Re: Handling emails

2006-10-25 Thread Gerard Flanagan
Fulvio wrote: > On Tuesday 24 October 2006 03:07, Gerard Flanagan wrote: > > The 'PopClient' class here might help you: > > I got a look rather later. Let me say that is impressively pythonic :-) I don't know if everyone would agree with you, but thanks! Have you looked at the email.utils module

Re: Handling emails

2006-10-25 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Tuesday 24 October 2006 03:07, Gerard Flanagan wrote: > The 'PopClient' class here might help you: I got a look rather later. Let me say that is impressively pythonic :-) On the other hand I've to go

Re: Handling emails

2006-10-24 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Tuesday 24 October 2006 03:07, Gerard Flanagan wrote: > The 'PopClient' class here might help you: Thank you, both for the replies. Gerard, Surely I'll peep on that code ;-) to gather a wider perspecti

Re: Handling emails

2006-10-24 Thread Fulvio
*** Your mail has been scanned by InterScan MSS. *** On Tuesday 24 October 2006 01:12, Dennis Lee Bieber wrote: > Message-id: > <[EMAIL PROTECTED]> > > as the ID is generally created when the message is submitted to the > delivery system Well, that's what

Re: Handling emails

2006-10-23 Thread Gerard Flanagan
Fulvio wrote: > > Hello, > > I'd like to ask some clue to move further on my project :-) > The purpose would be to gather all emails (local and remote ones) to do some > backup. > I've tried to get ideas by reading all about the modules enclose with python, > but neither email framework nor mailbo