tried: #!/bin/bash FILES=/home/mail/msg-1502747659-31280-0/* echo "" > /home/mail/test/out for f in $FILES do echo "Processing $f file..." # take action on each file. $f store current file name cat $f|formail >> /home/mail/test.out done
Almost worked. It adds the needed "From" header and then the legacy "mail -f file" program recognizes the messages. Message sizes are listed correctly if the attachment was there, but it's not. But it's truncating the in-line attachments. Tried every option I could think of for formail, no dice. -- View this message in context: http://spamassassin.1065346.n5.nabble.com/message-rfc822-to-mbox-script-for-use-with-sa-learn-workflow-tp138362p138388.html Sent from the SpamAssassin - Users mailing list archive at Nabble.com.