At 03:52 PM 11/19/03 -0500, Matt Cramer wrote:
Any string that ends and begins with an "_" will be parsed as a variable.
It was driving me nuts trying to figure out why the url I was putting in
the report linking our users to customized filtering instructions based on
our MUA was not working in any flagged mail.  Then I noticed the url was
missing a "_blah_" string.

Have you considered escaping the underscore? Although it's not required to escape an underscore in a URI by RFC standards, there's no reason you can't encode them as %2D.


Thus:
        http://www.example.com/my_file_name.htm
becomes
        http://www.example.com/my%2Dfile%2Dname.htm

and should still work and be unmunged by SA in this setup. It's an ugly-ish workaround, but should work.



I think this is a bug, and that SpamAss should only parse the actual list
of reserved words as variables, or at least allow us to escape the "_"
with a "\".

Based on the code, it would probably be easier for them to allow you to "escape" the _ by doing a double or tripple underscore rather than a backslash.. But I can't see anywhere that it currently does that.


However, it would be a pretty gross assumption to assume that SA would _only_ parse the posted list of words and not parse all things surrounded by underscores. Generaly programs start off with a categorical behavior, not a long list of specific cases. It's generally easier and cleaner to code this way.




------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to