- arffilter - rewrite ARF reports
Download version 1.1 here: arffilter.c
arffilter is a unix filter to rewrite ARF complaints into a format that is more useful in an MUA or simple ticketing system.
It annotates the subject line using metadata from the ARF message/feedback-report object.
It's very lightweight, not doing any MIME extraction, simply assuming that the metadata is in the first message/feedback-report attachment.
cc -o arffilter arffilter.c
To use it with procmail, add a rule such as the following, before other processing is done:
# ARF rewrite script :0fw | /path/to/arffilter
It accepts four commandline parameters:
-V Show version -h Show usage -l number Look for message/feedback-report only in this number of lines from the start of the message (default 200) -s template Replace the subject line of the message w ith this string. Within the template tokens of the format %key% will be replaced with metadata take from the ticket. The key should be lowercase ascii and '-' only. The key 'subject' will be replaced with the original email subject. Other keys will be replaced with the corresponding values from the message/feedback-report section. (default [ %source-ip% ] %subject%)