Q:

Customized Work Emails and Signatures with Each Firm, perhaps with Mutt and Procmail to look Professional?

CompanyA sends mail, I want to respond to them with me@companyA.com and signatureA. When CompanyB sends mail, I want to respond to them with me@companyB.com and signature B. Etc.
1. How can I do a hook to change the line `set from="me@CompanyX.com" in .muttrc?

2. How can I -- change the signature according to the sender A, B, C, etc?

If someone has a similar problem of having many work -emails that you forward to your server to manage, please, provide me details how you manage this kind of activity. I use mutt, procmail and I have full-blown *ix servers if needing something special.

A:

You can acheive both your goals with mutt.
To respond to CompanyA from your me@companyA.com address, you would create a folder for each company, and an accompanying .rc file in .mutt/ - and then call the required file from your .muttrc. So, for Company A, you would create .mutt/companya.muttrc:
set from      = "me@companyA.com"
set mbox      = "+CompanyA/archive"
set record    = "+CompanyA/INBOX.Sent"
set postponed = "+CompanyA/INBOX.Drafts"

...and then repeat for B.
And in your .muttrc:
folder-hook CompanyA/* source ~/.mutt/companya.muttrc
folder-hook CompanyB/* source ~/.mutt/companyb.muttrc
...
# boxes
mailboxes +CompanyA/INBOX +CompanyA/Sent +CompanyA/Drafts +CompanyA/Trash
mailboxes +CompanyB/INBOX +CompanyB/Sent +CompanyB/Drafts +CompanyB/Trash
To use the correct signature, depending on who you are responding to, use these hooks in your muttrc:
# set correct signature
send-hook "~f @companyA.com"  set signature=~/.mutt/A.sig
send-hook "~f @companyB.com"  set signature=~/.mutt/B.sig
You could then use keybinds to easily switch between folders:
macro index ga       "<change-folder> =CompanyA/INBOX"       "go to Inbox"
macro index gb       "<change-folder> =CompanyB/INBOX"       "go to Inbox"

