13 Jun
2020
13 Jun
'20
18:59
Per Jessen wrote:
David C. Rankin wrote:
Trivially, you can dump the To:/From: From:/To: address from an mbox file with:
awk '/^From:/ || /^To:/' mboxfile
awk is overkill :-)
egrep '^(From|To):' mboxfile
It's not so easy doing any grep/awking on the to/from lines - the format is quite varied. On my TB with IMAP accounts only, I tried this: find ~/.thunderbird/ImapMail -type f ! name \*msf | \ xargs egrep -l '^(From|To):' | \ sed -e '/^[^<]\+<\([^,]\+\)>.*$/\1/' which got me the addresses that are enclosed in <>. -- Per Jessen, Zürich (15.8°C) http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org