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
"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
#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
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
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
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
"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
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:
>
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
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.)
>
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
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
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
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.,
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
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
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,
>
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
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
-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)
-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
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
-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
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
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
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
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
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)
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):
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
> 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
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',
> 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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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.
>
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
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
[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
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
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
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
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
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
rogram together. I'm
particularly interested in how to deal with encoded binary attachments.
Thanks
John
--
http://mail.python.org/mailman/listinfo/python-list
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'
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
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
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.
>
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
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
[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
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
[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,
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
[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
- 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
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
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
"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
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
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
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
"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
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
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
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
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
88 matches
Mail list logo