https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6566
--- Comment #2 from Mark Martinec <[email protected]> 2011-05-05 01:01:37 UTC --- Created attachment 4871 --> https://issues.apache.org/SpamAssassin/attachment.cgi?id=4871 Allow _YESNO_ to take arguments, replacing the"Yes"/"No" defaults The attached patch extends macros _YESNO_ and _YESNOCAPS_ to take optional arguments, replacing the default substitutions "Yes" and "No" with user-supplied strings if specified. Parsing of arguments is simple-minded, a comma may not appear within the first argument. Updated docs now say: =head1 TEMPLATE TAGS [...] _YESNO_ "Yes" for spam, "No" for nonspam (=ham) _YESNO(spam_str,ham_str)_ returns the first argument ("Yes" if missing) for spam, and the second argument ("No" if missing) for ham _YESNOCAPS_ "YES" for spam, "NO" for nonspam (=ham) _YESNOCAPS(spam_str,ham_str)_ same as _YESNO(...)_, but uppercased The attached patch also modifies the default report template to take advantage of the above. -- Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
