grep "> From: " LocalMailFolder | egrep --col=never -o "<.+" | tr -d '<> =' | sort | uniq # I needed to grab the email addresses out of a bunch of emails forwarded to me, so I copy it from IMAP to a local folder and then just quickly parse for the forwarded From line. Wala!

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!