[Mimedefang] Exporting an eml file from MIMEDefang

kd6lvw at yahoo.com kd6lvw at yahoo.com
Fri Oct 15 16:17:20 EDT 2010


--- On Fri, 10/15/10, Kevin A. McGrail <KMcGrail at PCCC.com> wrote:
> ...
> Something like $subject =~ s/[^-a-z0-9 _]//i; would be a good start.

A start it is.  One should allow for punctuation at the end, as such is proper writing style.  Also, certain punctuation marks (e.g. comma, slash, or colon - the latter especially in "Re:") also occur in the middle of subjects.

What one should disallow is exactly two periods in a row.  One, three, or more than three won't have the effect of climbing a filesystem's directory tree.

Watch out for tricky mime-encoded subjects too.



More information about the MIMEDefang mailing list