GNU Terry Pratchett

This forum is for discussing Mailtraq's Scripting features. Get help with Mailtraq scripts, templates and external ActiveX scripting.

GNU Terry Pratchett

Postby Malc » Tue Mar 17th, 2015 7:11am

Context: This came to my attention via, which points to, and quotes the erroneous statement:
"There is no harm, or waste in it being this string - so why not?"

There is probably no harm, but there is a small amount of wasted bytes (storage and transmission), and processor cycles.

Code: Select all
// Script to add "X-Clacks-Overhead: GNU Terry Pratchett" to mail and/or news
// Malcolm Pack 2015
// Trigger on Routing or Delivery - add to existing mail OR news routing OR delivery script,
//      OR create afresh if none exists
// Filter: None
// Trigger: Message: Outbound Mail Delivery AND/OR Outbound News Delivery
//     (OR Mail Routing to add to all mail)
// Script will modify the message

If(Length(Header("X-Clacks-Overhead")) = 0,
    SetHeader("X-Clacks-Overhead","GNU Terry Pratchett")

Remember to change final ";" to "," if not at the top level of the script, and to remove it altogether if the script is stand-alone.
User avatar
Expert User
Posts: 242
Joined: Thu Dec 30th, 2004 1:46am
Location: London^WSurrey^WEssex^WCambs^WLondon^WEssex^WLancs^WEssex

Return to Mailtraq Scripting

Who is online

Users browsing this forum: No registered users and 2 guests