mutt2csv is an AWK script that will convert a mutt alias file into a csv file.
Version: 1.0mutt2csv is an AWK script that will convert a mutt alias file into a csv file. The column order is optimized for squirrelmail importing, but it should be easily rearrangeable if you want. This script can handle many of the formats that mutt allows such as:
Operating System: Linux
alias nick first last < user@domain >
alias nick last, first < user@domain >
alias nick user@domain (first last)
alias nick user@domain (last, first)
mutt2csv should be able to handle:
Problem records will be output at the end preceeded by BAD and followed by a rule description of where the problem occured for easier debugging.
This was developed on linux, you might want to try nawk or gawk if you try to use this on Solaris.
Comments should be stripped before running this program (I didn't feel like reliably dealing with them yet). Try something like: sed '-ed/#.*$//' to strip them.