[Xymon] Getting "ATT0001.bin" attachments sometimes -- MAILC fix is already in place

Shawn Heisey hobbit at elyograg.org
Thu Aug 13 18:33:54 CEST 2015


On 8/13/2015 9:01 AM, Ribeiro, Glauber wrote:
> MAILC="tr -d \"\\001\\004\\015\" | mail"
>
> I think you shouldn't escape the quotes:
>
> MAILC="tr -d "\\001\\004\\015" | mail"

I suspect that without the escapes, the variable won't have the right
definition, since quotes are used to contain the value ... although it's
possible that *with* the escapes, it won't have the right definition either.

It's starting to sound like I need to write a script so that no special
characters are required.  An ugly hack, but I think it will work ... so
I will go ahead and do that.

A better option might be to create a feature where we can define a list
of characters that should be stripped out of email text before it is
sent, and have Xymon itself handle that.

Thanks,
Shawn




More information about the Xymon mailing list