Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Just a question...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Just a question...
Authored by: tiagor on Sep 02, '02 11:15:46AM
formail -I "" is supposed to extract the body of the message, correct?

I'm trying to include it on the script, but I think that I'm doing something wrong... do you know how to format the script to make it get also the body of the message?

Thanks a lot!

[ Reply to This | # ]
Mail body newline/tab probs
Authored by: wfolta on Sep 02, '02 12:33:17PM

I believe the formail option for including the body is -k but haven't tried it. The complicating factor will be what to do about newlines and tabs in the message body.

So now that I think about it, you'd have to do one of two things:

1. Get/use a db package for perl so you can directly insert into MySQL or PostgreSQL and skip the tab-delimited stage of things.

2. Somehow translate/escape tabs and newlines in message body text. (And then possibly un-escape in your destination program.

Hmmm... getting email with body into a Mac-ish program will be harder than I thought. Anyone have a good suggestion?



[ Reply to This | # ]