Cats2procmailrc is a software tool that creates a procmail recipe from a mail categories file. This tool is useful for managing and automating email sorting tasks.
To use cats2procmailrc, you can configure it via the command line. The -a option lets you specify a shell command to run as the alert function. Here, the percent character is replaced by the folder name. The -D option will insert a variation on the standard formail recipe for deleting duplicates on a per-folder basis. For MH and Maildir folders, the program uses a .msgid.cache file within the folder. Alternatively, it uses the file MAILDIR/.msgid.cache-folder if neither folder type is detected.
The -L option puts the tag into the X-Label header field instead of as a prefix to the subject line. The -m option lets you specify the default mail domain for rule addresses lacking an @domain. This can be a list of domains separated by commas. Finally, -t allows you to specify the default mailbox type, which can be one of unix, maildir or mh.
One useful feature of cats2procmailrc is its ability to track rule matches. Normally a X-Cats2Procmailrc-Matching-Rule header is inserted, describing the match rule. If you're using the -L option, labels will most likely track it for you instead.
Overall, cats2procmailrc is a handy tool for anyone who wants to streamline their email filtering. Plus, the latest release has fixed an issue with parsing multi-folder rules.
Version 2.1: N/A