Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

the Topic itself asks the Question. What does

cat emailsource | formail -I "From "

exactly? Does it simply remove all duplicate Froms? The Manpage is a little bit unclear to me.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Removes all the "From " headers from the message.

The "From " line is the delimiter for a unix mailbox. Notice, it doesn't contain a ":" like the "From:" header

Essentially UNIX mbox format keeps all your mails in one file. This is the polar opposite to something like Maildir which treats every mail as a separate file. Because multiple mails are in one file, they needed a delimiter and chose "From " at the top of the message

http://www.jwz.org/doc/content-length.html

This would normally be done to convert a UNIX mbox mail so that it can be used elsewhere by a client or format that doesn't support it.

e.g.

formail -s < /var/mail/phil | formail -I "From " # ...
share|improve this answer
    
thank you, very informative answer. I need this to be explained in my bachelor work. Can you give me a reference, where I can Quote from? –  evildead Nov 20 '09 at 2:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.