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 swift test on the number of attachments and > changing the header suitably does the job.

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 the number of attachments and changing the header suitably does the job. Thank

email modules and attachments that aren't there

2006-01-09 Thread Russell Bungay
and one or two random searches but can't see what is happening. Any advice or suggestions would be welcome. Thank you for your help, Russell Bungay -- The Duck Quacks: http://www-users.york.ac.uk/~rb502/ - Homepage http://www-users.york.ac.uk/~rb502/blog/quack.shtml - Blog http://www.flick

Re: Tar module issue

2005-02-07 Thread Russell Bungay
Hello, I'm using tarfile module to create an archive. For my example I'm using Amsn file and directory tree. My variables are like these ones: path = /home/chaica/downloads/amsn-0_94/skins/Tux/smileys/shades.gif fileName = amsn-0_94/skins/Tux/smileys/shades.gif tar.add( path, fileName ) and while