[BangPypers] procmail and python

2011-12-21 Thread Amit Sethi
Has anybody here used some kind of python script with procmail . I want to set up a script that looks at a certain words in a mail and forwards it to users. However I am not able to understand how can I read the message in python script. The documentation suggests something like this should send t

Re: [BangPypers] procmail and python

2011-12-21 Thread Amit Sethi
I think I should mention that i am fetching mail from gmail. Is there an encryption that google uses . Also the mails are being received fine on mutt. -- A-M-I-T S|S ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinf

Re: [BangPypers] procmail and python

2011-12-21 Thread Noufal Ibrahim
Amit Sethi writes: > Has anybody here used some kind of python script with procmail . I > want to set up a script that looks at a certain words in a mail and > forwards it to users. However I am not able to understand how can I > read the message in python script. > > The documentation suggests s

Re: [BangPypers] procmail and python

2011-12-21 Thread Noufal Ibrahim
Amit Sethi writes: > I think I should mention that i am fetching mail from gmail. Is there > an encryption that google uses . Also the mails are being received > fine on mutt. Yes but if you're fetching them, then you've gotten that part working. How are you fetching your emails? fetchmail? --

Re: [BangPypers] procmail and python

2011-12-21 Thread Amit Sethi
Well I am fairly sure the script is running i am simply writing the message in stdin to a log and that part works fine . Just looking at it again I think its an encoding because in the "gibbrish" message I have found some kind of dkim message thing : "(PST)#012DKIM-Signature: v=1; a=rsa-sha256; c=

[BangPypers] Python's stdin buffer size

2011-12-21 Thread Amit Sethi
Hi , I am trying to read in a large message piped to a python script. The message would have something like 1000 words . How can one increase the buffer size of sys.stdin in python. -- A-M-I-T S|S ___ BangPypers mailing list BangPypers@python.org http

Re: [BangPypers] Python's stdin buffer size

2011-12-21 Thread Noufal Ibrahim
Amit Sethi writes: > Hi , I am trying to read in a large message piped to a python script. > The message would have something like 1000 words . How can one > increase the buffer size of sys.stdin in python. What's the problem with just a body = sys.stdin.read() and then processing bod

Re: [BangPypers] Python's stdin buffer size

2011-12-21 Thread Senthil Kumaran
On Wed, Dec 21, 2011 at 7:43 PM, Amit Sethi wrote:> Hi , I am trying to read in a large message piped to a python script.> The message would have something like 1000 words . How can one> increase the buffer size of sys.stdin in python. For 1000 words, your python program wont have any problem. PIP

[BangPypers] unfortunate-python

2011-12-21 Thread Saju M
http://excess.org/article/2011/12/unfortunate-python/ -- Saju Madhavan s...@fluentsoft.com +91 09535134654 ___ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers