It is necessary to receive mail from mail.ru from a certain box.

Get the text in the "human" form and attachment - I can.

How to make sure that each received letter has its own separate folder, where the text of the letter, the subject of the letter and the attached file will lie separately?

This is done with a bunch of fetchmail + procmail + uudeview

config .fetchmailrc :

 defaults mda "procmail -d %T" poll pop.mail.ru proto pop3 user "" pass "" ssl 

config .procmailrc :

 PATH="/usr/bin:$PATH:/usr/local/bin" MAILDIR=$HOME/Mail/inbox LOGFILE=$HOME/Mail/mail.log LOGABSTRACT=no VERBOSE=off DEFAULT=/dev/null :0 a /dev/null :0 * ^[Ff]rom:.* 

here is the mail address from which you need to receive letters:

 *^content-Type: { :0fw | uudeview -iqa -p "$HOME/Mail/files" - } 

but how to bring procmail config to the necessary state?

    1 answer 1

    Here, take a look: http://www.netikka.net/tsneti/info/proctips.php#start I didn’t go deep into it, I don’t need it, but it’s about this very thing.