Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 46057  / 2 Years ago, sun, march 27, 2022, 6:23:04

How to open a mbox file? Mutt displays no mails when calling mutt -f sent.mbox.



The mbox format is "From" without colon.



Is there any mbox viewer for Linux?



Thank you in advance.


More From » email

 Answers
4

The first line of the mail is the “envelope From line”. It begins with the 5 characters From␣ where is a space character. This is normal.



From Christian xxx <cg@xxx> Mon May  15 20:22:35 2010


What is unusual is that the email address is between <…>. This is unusual. I don't know if it's against the RFCs or not, but I can see Mutt chokes on it.



You should get a valid mailbox (as in, one that Mutt can parse) by processing the mailbox file through the formail command from procmail Install procmail.



formail -ds sed '1 s/^From .* <(.*)>/From 1/' <sent.mbox >sent-reformatted.mbox
mutt -f sent-reformatted.mbox

[#39787] Monday, March 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
riffnkful

Total Points: 390
Total Questions: 123
Total Answers: 110

Location: Puerto Rico
Member since Sat, Mar 13, 2021
3 Years ago
riffnkful questions
Thu, Nov 17, 22, 04:24, 1 Year ago
Mon, Nov 28, 22, 01:40, 1 Year ago
Mon, Jul 11, 22, 13:24, 2 Years ago
Sun, Feb 5, 23, 05:06, 1 Year ago
;