Re: Bash email attachment

2010-03-10 Thread Raven
On Wed, 2010-03-10 at 09:54 +0200, Johann Spies wrote: > On Mon, Mar 08, 2010 at 02:53:38PM +0100, Raven wrote: > > > > To encode the image I use: > > > > /usr/bin/uuencode img.jpg img.jpg > attachment.txt > > cat hdr.txt body.txt attachment.txt > message.txt > > $SENDMAIL "-f" $4 "--" $2 > > >

Re: Bash email attachment

2010-03-09 Thread Johann Spies
On Mon, Mar 08, 2010 at 02:53:38PM +0100, Raven wrote: > > To encode the image I use: > > /usr/bin/uuencode img.jpg img.jpg > attachment.txt > cat hdr.txt body.txt attachment.txt > message.txt > $SENDMAIL "-f" $4 "--" $2 > > Anyone knows how to solve this? Have a look at mpack. I use it regu

Re: Bash email attachment

2010-03-09 Thread Tzafrir Cohen
On Mon, Mar 08, 2010 at 02:53:38PM +0100, Raven wrote: > Hi all, > > I recently wrote a small content filter script (in bash) to use on my > local Postfix installation. The script receives via "pipe:" the > recipient and the sender's addresses then responds by sending back a > message containing s

Re: Bash email attachment

2010-03-09 Thread Allan Wind
On 2010-03-08T14:53:38, Raven wrote: > /usr/bin/uuencode img.jpg img.jpg > attachment.txt > cat hdr.txt body.txt attachment.txt > message.txt > $SENDMAIL "-f" $4 "--" $2 http://lifeintegrity.com> -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". T

Re: Bash email attachment

2010-03-08 Thread Michael Elkins
On Mon, Mar 08, 2010 at 02:53:38PM +0100, Raven wrote: > To encode the image I use: > > /usr/bin/uuencode img.jpg img.jpg > attachment.txt > cat hdr.txt body.txt attachment.txt > message.txt > $SENDMAIL "-f" $4 "--" $2 > Anyone knows how to solve this? As the others have mentioned, you should b

Re: Bash email attachment

2010-03-08 Thread Nick Douma
On 8-3-2010 14:53, Raven wrote: > Anyone knows how to solve this? > Thanks > Why don't you just BASE64 the attachment and set the proper mime-type? You might still be able to use uuencode, but setting a mime-type seems mandatory to me, because else the mail client has to guess what the attachment

Re: Bash email attachment

2010-03-08 Thread Jari Fredriksson
On 8.3.2010 15:53, Raven wrote: > Hi all, > > I recently wrote a small content filter script (in bash) to use on my > local Postfix installation. The script receives via "pipe:" the > recipient and the sender's addresses then responds by sending back a > message containing some body text and an im

Bash email attachment

2010-03-08 Thread Raven
Hi all, I recently wrote a small content filter script (in bash) to use on my local Postfix installation. The script receives via "pipe:" the recipient and the sender's addresses then responds by sending back a message containing some body text and an image attachment. It works as it is supposed t