On Mon, 25 Apr 2011 16:59:22 +0200, Karsten Bräckelmann wrote: > On Mon, 2011-04-25 at 13:01 +0100, Paul Hugill wrote: >> I have SA (v3.2.3) installed along with hMailServer and it is working >> great but I just wanted to check if you can make changes to the >> default headers that are inherited on the spam report. > > You can, though slightly limited. See the 'add_header' option and the > section Template Tags in the Conf docs. >
Thanks Karsten I had looked at that but I don't think it does quite what I want. I only want to add the header to certain emails (depending on the original email) and it seems to be fairly limited in the types of headers anyway. >> I would like to include an extra one so that this header >> 'X-hMailServer-ExternalAccount' is also included in the report >> headers. [...] add this one too so that I can tell which account is >> getting all the spam. > > I am not absolutely sure which "external account" you are referring to > here, but it appears this is either specific to hMailServer, or your > particular environment (like fetching external mail accounts). In both > these cases, this information is not available to SA. So, no, SA can not > add such a header. > > You might want to elaborate on what that "external account" actually is, > though, just in case someone has an idea... I have hMailServer running and passing the emails to spamd when emails are received. The header 'X-hMailServer-ExternalAccount:' is added to incoming email if it is pulled from a pop account and put into the mailbox. hMailServer adds the header before passing the email to SA (the original email attached to the spam report includes this header) so I would assume that SA sees this header at the time of processing. What I want is to do is have SA do the same thing that it does for the From, To and Date headers to the custom one and get the report to inherit that if it exists. If it isnt possible to make this header inherited on the report, is it possible to write a line into the body of the report depending on what the header was orignally?