Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Parsing mbox mail box files Procmail and Formail
- sudo apt install procmail
- #Split mbox file into files
- cat inbox.mbox| formail -ds sh -c 'cat > msg.$FILENO'
- #get subject
- cat msg.000|formail -subject
- #loop through each file
- for i in msg*;do cat "$i"|formail -x subject -x To -x From;done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement