Summarizing mbox formatted mailboxes on Solaris

The Solaris mailx(1) utility is a great command line tool for viewing mail, responding to messages, and summarizing mbox formatted mailboxes. I use the following mailx options to periodically summarize my SPAM folder, which is in mbox format:

$ mailx -H -f /export/home/matty/mail/Spam

O 1 Graham Baxter Sat Feb 26 12:50 124/4709 its your last chance!
O 2 Nina Howard Sat Feb 26 12:50 118/4390 its your last chance!
O 3 olita kane Sat Feb 26 13:00 118/5196 Generic Wlaggra
O 4 Maria Lutz Sat Feb 26 13:30 135/6141 lusaka prosthetic
O 5 29500?? Sat Feb 26 13:30 202/8818 [?Óº?]???29500??Â¥?? ?Úµ
O 6 Carter Martinez Sat Feb 26 13:40 132/5219 Have You Heard of Age Rev
O 7 Carey B Sat Feb 26 13:50 143/6933 You are the 4610th person
O 8 Shelby B Sat Feb 26 13:50 137/6734 You are the 4698th person
O 9 Eliza Hedrick Sat Feb 26 13:50 271/20133 Side effects of nacrotics
O 10 Mara Perdue Sat Feb 26 14:30 140/5309 Act Now 71% Sat, 26 Feb

I periodically process the output of this command to see if legitimate mail was tagged as SPAM. Works well!

Leave a Comment