Send mail to yourself and read in your favourite client and configure the rules to move to directory.

By default when you send a mail using sendmail, the mail goes to the default directory. What I wanted to do was, use rss2email, to send the mails and then sort them in different folders depending on the From address.

Sendmail uses procmail to deliver mail locally. So here\’s what I had to do:

This sets the folder for the mail delivery to $HOME/Maildir. The format for the mail file would be mbox and the filename used for mail delivery would be inbox. Ensure that the folder and file exists. Now we will add some rules to place the mail in the appropriate file(or folder in mbox terminology)

:0
* ^From.*shell*
{
:0
commands
}

The rule states that if the from field contains shell then move the message to the commands file rather than inbox folder. You can add as many rules as you want and you are done.