Can someone explain how to get the send to mail address with procmail and extract all up to @example.com and then create a new folder with the name?
Example: I collect all mail in one account so the addresses hello@example.com and welcome@example.com and so on are in the same account.
Now I want to create a subfolder with the recipient name e.g. hello and welcome as soon as i receive a mail to this address.
My problem is that I just get the sender's address... but I like to get the recipient address.
In this post Automatic procmail filter based on username someone explains how to get senders address; how can I adapt that to my scenario?