Re: File object wrapper for a String?

2008-02-14 Thread David Erickson
On Feb 14, 3:16 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > David Erickson schrieb: > > > I am using the Popen class from subprocess and would like to feed a > > string in as the stdin parameter, however primarily it only takes a > > File object. Do

Re: File object wrapper for a String?

2008-02-14 Thread David Erickson
On Feb 14, 3:07 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > David Erickson wrote: > > I am using the Popen class from subprocess and would like to feed a > > string in as the stdin parameter, however primarily it only takes a > > File object. Does there exist a

File object wrapper for a String?

2008-02-14 Thread David Erickson
I am using the Popen class from subprocess and would like to feed a string in as the stdin parameter, however primarily it only takes a File object. Does there exist a wrapper for a string to do this? I know I can just dump the string to a temp file and feed that in but that is pretty hacky. Tha

Re: Email module, how to add header to the top of an email?

2008-01-25 Thread David Erickson
On Jan 25, 5:04 am, "Karlheinz Klingbeil" <[EMAIL PROTECTED]> wrote: > Am 25.01.2008, 06:21 Uhr, schrieb David Erickson <[EMAIL PROTECTED]>: > > > Bottom of the headers... but I am looking to insert at the top, and re- > > ordering/inserting does matter depe

Re: Email module, how to add header to the top of an email?

2008-01-24 Thread David Erickson
On Jan 24, 2:41 pm, Martin Marcher <[EMAIL PROTECTED]> wrote: > On Thursday 24 January 2008 20:32 David Erickson wrote: > > > I have been using the Email module and Message class for awhile, > > however I have been unable to find a way to add a header to the top of > >

Email module, how to add header to the top of an email?

2008-01-24 Thread David Erickson
I have been using the Email module and Message class for awhile, however I have been unable to find a way to add a header to the top of the email similar to what is done with Received: headers... the add_header method only appends to the bottom. Is there someway this can be done? Thanks David --