Discussion:
Inline Signature Add Custom Variable
Shawn Iverson
2014-01-20 12:44:41 UTC
Permalink
To MailScanner Listserv:

I am attempting to add a custom variable to an inline signature.

id=$id works fine, but if I add token=$token, the line disappears from the signature in HTML and is missing at that point in the TXT signature.

I am wanting to pass a token so that the CGI script that I am calling can use it to pass a message to sa-learn more securely.

I attempted to modify code in Message.pm to alleviate this, but I am having trouble locating what is causing this. Even when I explicitly define a static $token in Message.pm in the ReadVirusWarning subroutine, it is ignored.



Shawn Iverson
Rush County Schools
District Technology Coordinator
iversons at rushville.k12.in.us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140120/34be8288/attachment.html
Shawn Iverson
2014-01-21 13:14:46 UTC
Permalink
To MailScanner Listserv:

Problem solved.

I reused code from Messages.pm in CustomAction.pm to append the token.

Basically I copied SignUninfected, AppendCleanSignedMessage, and ReadVirusWarning and reworked the code slightly, so that I could pass the message object up and down the stack.

:)


Shawn Iverson
Rush County Schools
District Technology Coordinator
iversons at rushville.k12.in.us
Shawn Iverson 1/20/2014 7:44 AM >>>
To MailScanner Listserv:

I am attempting to add a custom variable to an inline signature.

id=$id works fine, but if I add token=$token, the line disappears from the signature in HTML and is missing at that point in the TXT signature.

I am wanting to pass a token so that the CGI script that I am calling can use it to pass a message to sa-learn more securely.

I attempted to modify code in Message.pm to alleviate this, but I am having trouble locating what is causing this. Even when I explicitly define a static $token in Message.pm in the ReadVirusWarning subroutine, it is ignored.



Shawn Iverson
Rush County Schools
District Technology Coordinator
iversons at rushville.k12.in.us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20140121/ea6c6c01/attachment.html
Continue reading on narkive:
Search results for 'Inline Signature Add Custom Variable' (Questions and Answers)
14
replies
Creating a "Why we should switch to Mac" Speech. Help Please?
started 2007-10-26 15:44:14 UTC
desktops
Loading...