Posted on 2009-07-06 11:08:52-07 by jeb
Barfing on forwarded messages that look like commands (version 0.7_02).

Hello all,

I'm seeing the "Failed command" message to users when they forward in messages that may contain text that looks like a command, if we define a command as /^\S+: .+$/. Typically this is from messages forwarded in outlook, or with MIME attachments.

Is it possible or reasonable to only look for commands in the first block of text? Perhaps "m/\n*(.+)\n\n+(.*)/sm", so that it ignores everything after 2 (or more) carriage returns? Perhaps even ignore things after a forward message boundary ("Begin forwarded message")?

Anyone else got any suggestions of when/were to look

Thanks,
[JEB]

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.