I get emails from mail lists such as
firstname.lastname@example.org. I don't want them to my inbox, I want them to a new inboxes that I can only read when I select them or basically move all mails like this to a file that I can read in some way. How can I do it?
If you have administrative control over your SMTP server, or know those who do, you can arrange for email to be delivered by a program such as
maildrop (you could also achieve this using your
~/.forward file to send mail through a pipe to
maildrop, which your mail server probably supports). Both of these tools look for a config file usually located in your home directory which contains rules specifying how a matching message should be handled. You can set up rules that look at the sender address, for example, and place matching messages in the appropriate mail box, and then using
mutt or any other MUA you can read and dispose those messages just as you would any other.
maildrop supports delivering to
Maildir style mail folders, so is a good choice if you use an IMAP server that expects that format. I haven't used
procmail in such a long time that I don't recall whether or not it handles
In addition to setting up a mail delivery agent like
procmail, you should also update your
mutt configuration so it knows that a particular address belongs to a mailing list and that you are subscribe to it.
subscribe email@example.com list firstname.lastname@example.org
The first line tells
email@example.com is a mailing list address and that you are subscribed to the list. The second tells
firstname.lastname@example.org is a mailing list to which you are not subscribed. Both will enable
mutt's features for handling mailing lists for any matching messages. The documentation at mutt.org will give you a description of what these features are.