
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] .forward file
> I guess I'd have to do it in a shell script, I don't know much perl.
> Might prove a bit tricky, though.
> If I figure out how to get rid of the attachements via shell script, how
> to I get the mails back into
> the "stream". Meaning, how can I forward the mails to my mobile, so they
> still to appear as sent
> by the originator as opposed to coming from myself. If I do something at
> the end of my script like:
>
> echo 'mail text minus attachment' | mail me@example.com
>
> then it'll always show up as mails coming from me on my mobile.
>
> Sven
>
OK a very rough answer in shell is to use head and cut off at at certain
point, eg 4,000 bytes. Not elegant but it's almost guarranteed that you
will be cutting inside an image. Although you will only get part of the
image nothing will break. Maybe.
... | head -c 4000 | ...
--
Brett Robson
Systems Administrator
GOL
http://www.gol.com
Phone: 03-3239-6856 International: +81-3-3239-6856
Home |
Main Index |
Thread Index