
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] .forward file
bofh@example.com wrote:
>What I would do is analyze one of the messages by hand to determine
>what in the message indicates an attachment, and then write a small
>filter in perl to strip that part off. I'd then pipe to the perl script
>from the .forward file. Of course this depends on your perl scripting
>ability... Do you have any perl or shell scripting knowledge?
>
>Shawn
>
>On Fri, Dec 12, 2003 at 12:18:34PM +0900, Sven Simon wrote:
>
>
>>I'm using the .forward file in my homedir to redirect incoming mails to my
>>keitai. The problem is, if I get mails with attachements that exceed a
>>certain
>>size the mail bounces back to the sender.
>>
>>I, therefore, would like to strip off the attachment and forward only
>>the text
>>message to my mobile. I know we can pipe stuff to external commands from
>>the .forward file, but how do I get rid of the attachments?
>>
>>Sven
>>
>>
Thanks Shawn,
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
Sven
Home |
Main Index |
Thread Index