Re: Attachments

2018-06-06 Thread Thomas Jollans
On 06/06/18 02:48, Ben Finney wrote: > "Peter J. Holzer" writes: >> (I remember that I have seen some messages in the past where an >> attachment was obviously missing. Maybe specific content types are >> stripped, but not attachments in general) > > Yes

Re: Attachments

2018-06-05 Thread Ben Finney
"Peter J. Holzer" writes: > Then the statement > > | (For good reasons, attachments are dropped when messages are > | distributed on the forum.) > > was demonstrable false (at least overly general) as the attachment in > Jach's message wasn't droppe

Re: Attachments

2018-06-05 Thread Peter J. Holzer
#x27;t mean any specific server to the exclusion of > others. I mean the aggregate forum in which we are having this > discussion: comp.lang.python and python-list are a single discussion > forum, distributed across many servers. Then the statement | (For good reasons, attachments are

Re: Attachments

2018-06-05 Thread Grant Edwards
On 2018-06-05, Peter Otten <__pete...@web.de> wrote: > Peter J. Holzer wrote: > >>> However, I did see that particular particular attachment, test.py in >>> Jach's original post, and I'm reading c.l.py via gmane. >> >> comp.lang.python or gmane.comp.python.general? (I see the latter >> but not the

Re: Attachments

2018-06-05 Thread Peter Otten
Peter J. Holzer wrote: >> However, I did see that particular particular attachment, test.py in >> Jach's original post, and I'm reading c.l.py via gmane. > > comp.lang.python or gmane.comp.python.general? (I see the latter but not > the former on gmane, but I'm accessing it anonymously which migh

Re: Attachments (was: How can an int be '+' with a tuple?)

2018-06-04 Thread Richard Damon
On 6/4/18 12:34 PM, Peter Pearson wrote: > On Sun, 3 Jun 2018 20:20:32 +0200, Peter J. Holzer wrote: > [snip] >> On 2018-06-03 13:57:26 +1000, Ben Finney wrote: >>> (For good reasons, attachments are dropped when messages are distributed >>> on the forum.) >> B

Re: Attachments

2018-06-04 Thread Ben Finney
"Peter J. Holzer" writes: > So we have determined that "the forum" is not the mailing list and not > the newsgroup (Jach's message appeared on both with the attachment). By “the forum” I don't mean any specific server to the exclusion of others. I mean the aggregate forum in which we are having

Re: Attachments

2018-06-04 Thread Peter J. Holzer
On 2018-06-04 22:59:52 +0200, Peter Otten wrote: > Peter J. Holzer wrote: > > On 2018-06-04 16:34:08 +, Peter Pearson wrote: > >> On Sun, 3 Jun 2018 20:20:32 +0200, Peter J. Holzer > >> wrote: > >> > On 2018-06-03 13:57:26 +1000, Ben Finney wrote: >

Re: Attachments

2018-06-04 Thread Peter Otten
Peter J. Holzer wrote: > On 2018-06-04 16:34:08 +, Peter Pearson wrote: >> On Sun, 3 Jun 2018 20:20:32 +0200, Peter J. Holzer >> wrote: >> > On 2018-06-03 13:57:26 +1000, Ben Finney wrote: >> >> (For good reasons, attachments are dropped when message

Re: Attachments

2018-06-04 Thread Peter J. Holzer
On 2018-06-04 16:34:08 +, Peter Pearson wrote: > On Sun, 3 Jun 2018 20:20:32 +0200, Peter J. Holzer wrote: > > On 2018-06-03 13:57:26 +1000, Ben Finney wrote: > >> (For good reasons, attachments are dropped when messages are distributed > >> on the forum.) >

Re: Attachments (was: How can an int be '+' with a tuple?)

2018-06-04 Thread Peter Pearson
On Sun, 3 Jun 2018 20:20:32 +0200, Peter J. Holzer wrote: [snip] > On 2018-06-03 13:57:26 +1000, Ben Finney wrote: >> (For good reasons, attachments are dropped when messages are distributed >> on the forum.) > > By "the forum" you mean Gmane? (I got the att

Attachments (was: How can an int be '+' with a tuple?)

2018-06-03 Thread Peter J. Holzer
On 2018-06-03 13:57:26 +1000, Ben Finney wrote: > (For good reasons, attachments are dropped when messages are distributed > on the forum.) By "the forum" you mean Gmane? (I got the attachment over the mailing list) hp -- _ | Peter J. Holzer| we build muc

Re: Attachments? Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-06-02 Thread Peter J. Holzer
On 2018-06-02 07:59:07 +1000, Chris Angelico wrote: > On Sat, Jun 2, 2018 at 7:03 AM, Peter J. Holzer wrote: > > On 2018-05-31 14:42:39 -0700, Paul wrote: > >> I have heard that attachments to messages are not allowed on this list, > >> which makes sense. However I noti

Re: Attachments? Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-06-01 Thread Chris Angelico
On Sat, Jun 2, 2018 at 7:03 AM, Peter J. Holzer wrote: > On 2018-05-31 14:42:39 -0700, Paul wrote: >> I have heard that attachments to messages are not allowed on this list, >> which makes sense. However I notice that messages from Peter do have an >> attachment, i.e.,

Re: Attachments? Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-06-01 Thread Peter J. Holzer
On 2018-05-31 14:42:39 -0700, Paul wrote: > I have heard that attachments to messages are not allowed on this list, > which makes sense. However I notice that messages from Peter do have an > attachment, i.e., a signature.asc file. No this is isn't an attachment. It's a

Re: Attachments? Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-05-31 Thread Paul
ps://github.com/Abdur-rahmaanJ > > On Fri, 1 Jun 2018, 01:49 Paul, wrote: > >> I have heard that attachments to messages are not allowed on this list, >> which makes sense. However I notice that messages from Peter do have an >> attachment, i.e., a signature.asc fi

Re: Attachments? Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-05-31 Thread Abdur-Rahmaan Janhangeer
as this sig file is a common occurance, attaching the topic to the data blocks thread is not really necessary Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ On Fri, 1 Jun 2018, 01:49 Paul, wrote: > I have heard that attachments to messages are not allowed on this list, >

Attachments? Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-05-31 Thread Paul
I have heard that attachments to messages are not allowed on this list, which makes sense. However I notice that messages from Peter do have an attachment, i.e., a signature.asc file. I'm just curious; why and how do those particular attachments get through? And should they get through, I

Re: How to handle attachments passed via Postfix

2015-10-13 Thread Anthony Papillion
u should be able to get at the >>> > different parts (including attachments) from there. >>> > >> Many thanks! Checking it out now. Sounds like exactly what I'm >looking >> for. > >Also have a look at flanker (https://github.com/mailgun/flanker) >b

Re: How to handle attachments passed via Postfix

2015-10-13 Thread Burak Arslan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 10/13/15 00:52, Anthony Papillion wrote: >> Check out the email.parser module, or the convenience function >> > email.message_from_string - you should be able to get at the >> > different parts (including attachments)

Re: How to handle attachments passed via Postfix

2015-10-12 Thread Anthony Papillion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 10/12/2015 3:58 AM, Chris Angelico wrote: > On Mon, Oct 12, 2015 at 6:17 PM, Anthony Papillion > wrote: >> I'm writing a script that will have email with attachments passed >> to it via Postfix. Postfix is properly p

Re: How to handle attachments passed via Postfix

2015-10-12 Thread Chris Angelico
On Mon, Oct 12, 2015 at 6:17 PM, Anthony Papillion wrote: > I'm writing a script that will have email with attachments passed to it via > Postfix. Postfix is properly passing the email to the script but I'm not > quite sure how to get at the attachment. What I nee

How to handle attachments passed via Postfix

2015-10-12 Thread Anthony Papillion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I'm writing a script that will have email with attachments passed to it via Postfix. Postfix is properly passing the email to the script but I'm not quite sure how to get at the attachment. What I need to do is save the attachment

Re: Best way to automatically copy out attachments from an email

2011-01-12 Thread Chris Rebert
their system > automatically email me updates in CSV format every hour. If I set up a > mail client on the server, this shouldn't be a huge issue. > > However, is there a way to automatically open the emails, and copy the > attachments to a directory based on the filename? Kind of a weird

Best way to automatically copy out attachments from an email

2011-01-12 Thread Matty Sarro
mail client on the server, this shouldn't be a huge issue. However, is there a way to automatically open the emails, and copy the attachments to a directory based on the filename? Kind of a weird project, I know. Just looking for some ideas hence posting this on two lists. Thanks all, and

Re: msg.attach multiple attachments and passing vars to html

2010-08-31 Thread Chris Rebert
On Tue, Aug 31, 2010 at 5:44 PM, MRAB wrote: > On 01/09/2010 00:24, aurfal...@gmail.com wrote: >> Also, is it somehow possible to pas python vars to html? >> >> My goal to to have an email that says something like; >> >> Welcome to ACME. >> A few LINKS to get you started. >> Your user name is USR

Re: msg.attach multiple attachments and passing vars to html

2010-08-31 Thread MRAB
On 01/09/2010 00:24, aurfal...@gmail.com wrote: Hi, Few questions as I've been at this for dayz. Can I do multiple attachments in order via msg.attach as so; part1 = MIMEText(html, 'html') msg.attach(part1) part2 = MIMEText(text, 'plain') msg.attach(part2) par

msg.attach multiple attachments and passing vars to html

2010-08-31 Thread aurfalien
Hi, Few questions as I've been at this for dayz. Can I do multiple attachments in order via msg.attach as so; part1 = MIMEText(html, 'html') msg.attach(part1) part2 = MIMEText(text, 'plain') msg.attach(part2) part3 = MIMEText(html, 'html') msg.attach(part3)

Re: Parsing email attachments: get_payload() produces unsaveable data

2009-10-14 Thread dpapathanasiou
On Oct 4, 10:27 am, dpapathanasiou wrote: > I'm using python to access an email account via POP, then for each > incoming message, save any attachments. > > This is the function which scans the message for attachments: > > def save_attachments (local_folder, msg_text):

Re: Parsing email attachments: get_payload() produces unsaveable data

2009-10-04 Thread Albert Hopkins
On Sun, 2009-10-04 at 09:17 -0700, dpapathanasiou wrote: > > Which is *really* difficult (for me) to read. Any chance of providing a > > "normal" traceback? > > File "/opt/server/smtp/smtps.py", line 213, in handle > email_replier.post_reply(recipient_mbox, ''.join(data)) > File "/opt/ser

Re: Parsing email attachments: get_payload() produces unsaveable data

2009-10-04 Thread dpapathanasiou
> Which is *really* difficult (for me) to read.  Any chance of providing a > "normal" traceback? File "/opt/server/smtp/smtps.py", line 213, in handle email_replier.post_reply(recipient_mbox, ''.join(data)) File "/opt/server/smtp/email_replier.py", line 108, in post_reply save_attachm

Re: Parsing email attachments: get_payload() produces unsaveable data

2009-10-04 Thread Albert Hopkins
On Sun, 2009-10-04 at 08:16 -0700, dpapathanasiou wrote: > > And where might we be able to see that stack trace? > > This is it: > > Exception: ('AttributeError', '', [' File "/opt/server/smtp/ > smtps.py", line 213, in handle\ne > mail_replier.post_reply(recipient_mbox, \'\'.join(data))\n',

Re: Parsing email attachments: get_payload() produces unsaveable data

2009-10-04 Thread dpapathanasiou
> And where might we be able to see that stack trace? This is it: Exception: ('AttributeError', '', [' File "/opt/server/smtp/ smtps.py", line 213, in handle\ne mail_replier.post_reply(recipient_mbox, \'\'.join(data))\n', ' File "/ opt/server/smtp/email_replier.py", l ine 108, in post_repl

Re: Parsing email attachments: get_payload() produces unsaveable data

2009-10-04 Thread Albert Hopkins
On Sun, 2009-10-04 at 07:27 -0700, dpapathanasiou wrote: > When I try to write the filedata to a file system folder, though, I > get an AttributeError in the stack trace. And where might we be able to see that stack trace? -a -- http://mail.python.org/mailman/listinfo/python-list

Parsing email attachments: get_payload() produces unsaveable data

2009-10-04 Thread dpapathanasiou
I'm using python to access an email account via POP, then for each incoming message, save any attachments. This is the function which scans the message for attachments: def save_attachments (local_folder, msg_text): """Scan the email message text and save the attachm

Re: Detaching e-mail attachments?

2008-12-06 Thread Terry Reedy
Ken D'Ambrosio wrote: Hi, all. I've done some poking around, and can find roughly two million different ways to attach attachments to an e-mail... but darn few to detach them. Any suggestions? I'm assuming I'm just missing looking in The Right Place, but thus-far, my G

Detaching e-mail attachments?

2008-12-06 Thread Ken D'Ambrosio
Hi, all. I've done some poking around, and can find roughly two million different ways to attach attachments to an e-mail... but darn few to detach them. Any suggestions? I'm assuming I'm just missing looking in The Right Place, but thus-far, my Googling has been for naught.

Re: empty csv file attachments

2008-09-25 Thread Peter Otten
Bobby Roberts wrote: > I'm new to python but a veteran at programming.   Hm, your code doesn't show that. The time to read the tutorial would be time well spend. After that, a quick look at what the standard library has to offer wouldn't hurt. E. g. reading/writing CSV files is a solved problem i

Re: empty csv file attachments

2008-09-24 Thread Sean DiZazzo
On Sep 24, 1:17 pm, Bobby Roberts <[EMAIL PROTECTED]> wrote: > hi group. > > I'm new to python but a veteran at programming.  This one has me > stumped.  I have a simple contact form which the user fills out.  The > email is sent to the site user as well and it is delivered with the > content in th

empty csv file attachments

2008-09-24 Thread Bobby Roberts
hi group. I'm new to python but a veteran at programming. This one has me stumped. I have a simple contact form which the user fills out. The email is sent to the site user as well and it is delivered with the content in the body of the email as well in nice order. I have modified my code to a

empty csv file attachments

2008-09-24 Thread Bobby Roberts
hi group. I'm new to python but a veteran at programming. This one has me stumped. I have a simple contact form which the user fills out. The email is sent to the site user as well and it is delivered with the content in the body of the email as well in nice order. I have modified my code to a

tale of two attachments

2008-07-07 Thread TBS
Hi, I have a script that is invoked by .forward on a Unix mailbox. It works fine parsing an attachment and saving to disk when the email is sent directly to the email address (header 1), but doesn't work when the email is sent via a majordomo mailing list (header 2). I've looked at the mime file

Re: ZSI and attachments

2008-03-14 Thread Waldemar Osuch
On Mar 11, 8:59 am, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > Hi All, > > I wonder if the newest ZSI has support for attachments? Last time I > checked (about a year ago) this feature was missing. I desperately need > it. Alternatively, is there any other SOAP lib for pyt

Re: ZSI and attachments

2008-03-14 Thread Dieter Maurer
Laszlo Nagy <[EMAIL PROTECTED]> writes on Tue, 11 Mar 2008 15:59:36 +0100: > I wonder if the newest ZSI has support for attachments? Last time I > checked (about a year ago) this feature was missing. I desperately > need it. Alternatively, is there any other SOAP lib for python th

ZSI and attachments

2008-03-11 Thread Laszlo Nagy
Hi All, I wonder if the newest ZSI has support for attachments? Last time I checked (about a year ago) this feature was missing. I desperately need it. Alternatively, is there any other SOAP lib for python that can handle attachments? Thanks, Laszlo -- http://mail.python.org/mailman

Re: Script to Remove Attachments in Exchange Mailbox

2007-10-12 Thread Tim Golden
last run to they're probably quite >>> dusty but it sounds like the kind of thing you're after. > > Well, here's[1] the first part -- running through folders and replacing > big attachments with links. ... and here's [1] the second part -- running through fold

Re: Script to Remove Attachments in Exchange Mailbox

2007-10-12 Thread Tim Golden
ty but it sounds like the kind of thing you're after. Well, here's[1] the first part -- running through folders and replacing big attachments with links. Now I look, it's designed to be run by a user on his/her own mailbox rather than by an administrator. Naturally it's got some stu

Re: Script to Remove Attachments in Exchange Mailbox

2007-10-11 Thread KDawg44
f the same file 4MB taking up > > space, or a 4MB file turned into a 32MB file." > > > So, what I would like, is to write a script that parses the exchange > > mailbox, and removes all attachments over a certain size (say 500K) > > that are attached to messages th

Re: Script to Remove Attachments in Exchange Mailbox

2007-10-11 Thread Tim Golden
So, what I would like, is to write a script that parses the exchange > mailbox, and removes all attachments over a certain size (say 500K) > that are attached to messages that are more than 2 weeks old, or that > are in sent items. I would like to write to a log file all the > changes that

Script to Remove Attachments in Exchange Mailbox

2007-10-11 Thread KDawg44
or a 4MB file turned into a 32MB file." My users just aren't getting it! And then they complain when they get quota messages! (and some people, when they are Important People, you cannot argue with). So, what I would like, is to write a script that parses the exchange mailbox, and rem

handling secure attachments in email messages

2007-02-17 Thread Bernard Delmée
Hello, We have a processing chain automatically handling email attachments in python, which works well. We'd like to add support for encrypted files. We're using python 2.3 on HP-UX. I've checked the online 2.5 documentation, and my understanding is that the standard library

Re: Email attachments

2007-01-25 Thread Facundo Batista
Steve Holden wrote: > I'm having some trouble getting attachments right for all recipients, > and it seems like Apple's mail.app is the pickiest client at the moment. > It doesn't handle attachments that both Thunderbird and Outlook find > perfectly acceptable.

Re: Email attachments

2007-01-24 Thread Max M
Steve Holden skrev: > I'm having some trouble getting attachments right for all recipients, > and it seems like Apple's mail.app is the pickiest client at the moment. > It doesn't handle attachments that both Thunderbird and Outlook find > perfectly acceptable. >

Email attachments

2007-01-24 Thread Steve Holden
I'm having some trouble getting attachments right for all recipients, and it seems like Apple's mail.app is the pickiest client at the moment. It doesn't handle attachments that both Thunderbird and Outlook find perfectly acceptable. Since the code I'm using is current

Re: Receiving emails with attachments

2006-04-09 Thread tomer . ha
Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Receiving emails with attachments

2006-04-09 Thread Gerard Flanagan
ing you read it through as an example, didn't think you'd be interested in the whole shebang! PopClient was part of a half-baked project whose intent was to keep an eye on my technology-shy parents' emails and - wait for it - *post* them any attachments that were important!! Emails the

Re: Receiving emails with attachments

2006-04-09 Thread Tim Williams (gmail)
On 8 Apr 2006 13:24:20 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: want to develop a script which will receive emails with attachmentsfrom my POP3 account, perform certain actions on it and email it back to someone else.However, I'm not familiar with any Python library which does it. Coul

Re: Receiving emails with attachments

2006-04-09 Thread tomer . ha
Gerard, I tried to run your code but my interpreter couldn't locate the maildocument module. Is it included in Python standart library or should I install it from other place? Thanks, Tomer -- http://mail.python.org/mailman/listinfo/python-list

Re: Receiving emails with attachments

2006-04-08 Thread Gerard Flanagan
[EMAIL PROTECTED] wrote: > Hi there, > > I'm new to Python, but know other scripting and programming languages. > I > want to develop a script which will receive emails with attachments > from my POP3 account, perform certain actions on it and email it back > to someone

Receiving emails with attachments

2006-04-08 Thread tomer . ha
Hi there, I'm new to Python, but know other scripting and programming languages. I want to develop a script which will receive emails with attachments from my POP3 account, perform certain actions on it and email it back to someone else. However, I'm not familiar with any Python lib

Re: Adding Multiple Attachments to SMTP mail (msg.add_header)

2006-03-18 Thread Christos Georgiou
On 10 Mar 2006 06:08:37 -0800, rumours say that "EdWhyatt" <[EMAIL PROTECTED]> might have written: >I attach my code for passing the information to msg.add_header: > >(AttNum = 2) > >for doatt in range(AttNum): >msg.add_header('Content-Disposition', 'attachment', >file

Re: Adding Multiple Attachments to SMTP mail (msg.add_header)

2006-03-10 Thread Larry Bates
EdWhyatt wrote: > Hi all, I hope there is someone out there who can help me out - it has > to be something obvious. > > I am simulating mail traffic, and want to include multiple attachments > to my mail. I have created a temporary array containing a number of > file

Adding Multiple Attachments to SMTP mail (msg.add_header)

2006-03-10 Thread EdWhyatt
Hi all, I hope there is someone out there who can help me out - it has to be something obvious. I am simulating mail traffic, and want to include multiple attachments to my mail. I have created a temporary array containing a number of files - for now just 2. Debugging my code, I can see that I

Re: script to read emails and extract attachments from cron

2006-02-06 Thread Dan M
On Mon, 06 Feb 2006 10:57:23 -0800, [EMAIL PROTECTED] wrote: > Hi: > > I am looking for advice on the best way to set up a process to read > incoming emails (from a normal unix mailbox on the same host) > containing a gzipped telemetry attachment. I'd like the script to > extract the attachment i

script to read emails and extract attachments from cron

2006-02-06 Thread [EMAIL PROTECTED]
rogram together. I'm particularly interested in how to deal with encoded binary attachments. Thanks John -- http://mail.python.org/mailman/listinfo/python-list

Re: email modules and attachments that aren't there

2006-01-10 Thread Russell Bungay
Russell Bungay wrote: > for attachment in attachments: > > sub_msg = email.Message.Message() > sub_msg.add_header('Content-type', content_type, name=attachment) > sub_msg.add_header('Content-transfer-encoding'

Re: email modules and attachments that aren't there

2006-01-10 Thread Russell Bungay
Hello, >>> main_msg['Content-type'] = 'Multipart/mixed' >> Would it be the 'Content-Type' header? I've no expertise in this, but >> doesn't 'multipart' mean 'has attachments'? > Brilliant, thank you. A swif

Re: email modules and attachments that aren't there

2006-01-10 Thread Russell Bungay
Hello, >> main_msg['Content-type'] = 'Multipart/mixed' > Would it be the 'Content-Type' header? I've no expertise in this, but > doesn't 'multipart' mean 'has attachments'? Brilliant, thank you. A swift test on

Re: email modules and attachments that aren't there

2006-01-09 Thread Gerard Flanagan
Russell Bungay wrote: > Hello all, > > I have written a short function, based on a recipe in the Python > Cookbook, that sends an e-mail. The function takes arguments that > define who the e-mail is to, from, the subject, the body and an optional > list of attachments. >

email modules and attachments that aren't there

2006-01-09 Thread Russell Bungay
Hello all, I have written a short function, based on a recipe in the Python Cookbook, that sends an e-mail. The function takes arguments that define who the e-mail is to, from, the subject, the body and an optional list of attachments. The function works also perfectly, bar one slight

Re: get_payload problem with large mail attachments

2005-10-14 Thread Larry Bates
ficiently. I've found that most email servers are configured to reject email messages that are larger than 2-4Mb. Maybe it is time to back up and look at WHY you even have attachments that are that large? Just a suggestion. -Larry [EMAIL PROTECTED] wrote: > I'm having troubles

Re: get_payload problem with large mail attachments

2005-10-14 Thread Peter Otten
[EMAIL PROTECTED] wrote: > I'm having troubles with a script that uses the get_payload function. > My script just works perfectly if I use it with attachment up to 8 Mb. > If the attachment are more than 8 Mb large, the script exits with a > TypeError exception. > IMHO when get_payload try to conv

get_payload problem with large mail attachments

2005-10-14 Thread hungryblank
I'm having troubles with a script that uses the get_payload function. My script just works perfectly if I use it with attachment up to 8 Mb. If the attachment are more than 8 Mb large, the script exits with a TypeError exception. IMHO when get_payload try to convert the attachment in a single strin

Re: Filetypes in email attachments.

2005-08-25 Thread Martin v. Löwis
[EMAIL PROTECTED] wrote: > I would like to use the magic file to detect the filetype, if this is > possible. I have the attachement stored and (generally) decoded in a > variable. There is a Python binding to the libmagic library, see http://mx.gw.com/pipermail/file/2003/55.html Meanwhile,

Filetypes in email attachments.

2005-08-25 Thread justin . vanwinkle
Hello everyone, I'm writing a simple spam filter as a project, partly to learn python. I want to filter by filetype, however, the mime content type I get using .get_content_type gives limited and possibly bogus information, especially when trying to detect viruses or spam. I would like to use the

Re: Getting/Saving email attachments w/ poplib and email modules

2005-06-22 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Hello All, > > Here's what I'm trying to do: > > I need to connect to a pop3 server, download all messages, and copy all > of the attachments into a specific directory. The actual email message > is unimportant. Now, I've fou

Re: Getting/Saving email attachments w/ poplib and email modules

2005-06-22 Thread Tim Williams
- Original Message - From: <[EMAIL PROTECTED]> > > Here's what I'm trying to do: > > I need to connect to a pop3 server, download all messages, and copy all > of the attachments into a specific directory. The actual email message ## im

Getting/Saving email attachments w/ poplib and email modules

2005-06-21 Thread brettk
Hello All, Here's what I'm trying to do: I need to connect to a pop3 server, download all messages, and copy all of the attachments into a specific directory. The actual email message is unimportant. Now, I've found plenty of examples that strip the attachments from an email me

Re: saving .zip or .txt email attachments instead of deleting them

2005-06-03 Thread scrimp
Here is the complete traceback..sorry about that though. I used the run button and entered in "C:\email.txt" for the msgfile parameter thats used for input This email.txt file has a zip file attached to it and is all in text, so hopefully I am working with the correct input file. I used the pop3

Re: saving .zip or .txt email attachments instead of deleting them

2005-06-02 Thread John Roth
"scrimp" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Im using the winpython IDE to run that script for the unpacking the > email. The usage says unpackmail [options] msgfile. I type unpackmail > -d filename and it gives me a syntax error. What modifications did u do > to that mo

Re: saving .zip or .txt email attachments instead of deleting them

2005-06-02 Thread Peter Hansen
scrimp wrote: > OK i got past that syntax error I think. This is the error I am getting > nowAttributeError: 'NoneType' object has no attribute 'lower' All > Im reading is a text file of the email message with an attachment --zip > file Always post a *complete* traceback, with the line numbers

Re: saving .zip or .txt email attachments instead of deleting them

2005-06-02 Thread scrimp
OK i got past that syntax error I think. This is the error I am getting nowAttributeError: 'NoneType' object has no attribute 'lower' All Im reading is a text file of the email message with an attachment --zip file -- http://mail.python.org/mailman/listinfo/python-list

Re: saving .zip or .txt email attachments instead of deleting them

2005-06-02 Thread scrimp
Im using the winpython IDE to run that script for the unpacking the email. The usage says unpackmail [options] msgfile. I type unpackmail -d filename and it gives me a syntax error. What modifications did u do to that module to make it work? -- http://mail.python.org/mailman/listinfo/python-list

Re: saving .zip or .txt email attachments instead of deleting them

2005-06-02 Thread John Roth
"scrimp" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How would I go about retriving an email message and stripping out the > attachment into a file. I have seen examples where they would read in > the file and delete the attachment and replace it with text saying that > the attac

saving .zip or .txt email attachments instead of deleting them

2005-06-02 Thread scrimp
How would I go about retriving an email message and stripping out the attachment into a file. I have seen examples where they would read in the file and delete the attachment and replace it with text saying that the attachment was removed. For testing purposes Im using a pop3 server to receive mes

Mailman attachments on archive

2005-04-26 Thread carlosea
Hi. How can I keep the attachments on mailman archive with friendly links, and without changing the file extension? Now messages look like this: - message blablabla... -- next part -- A non-text attachment was

Message Delivery Failure - due to attachments

2005-04-10 Thread Mailer_Daemon
The message below (subject: "Server Report") that you sent was not delivered because it contained one or more prohibited attachments. The prohibited attachment filenames are below: - "epclrti.zip" was prohibited --- Received: from p

extract files from MS-TNEF attachments

2005-01-28 Thread David Isaac
I'm looking for Python code to extract files from MS-TNEF attachments. (I'm aware of the C code at http://tnef.sourceforge.net/ ) Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list