Bug 5273 - RFE: _LASTEXTERNALIP_ header markup tag
Summary: RFE: _LASTEXTERNALIP_ header markup tag
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Libraries (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: Other other
: P5 enhancement
Target Milestone: 3.2.0
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-03 13:55 UTC by Justin Mason
Modified: 2007-01-05 05:27 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Mason 2007-01-03 13:55:30 UTC
requested via mail -- a way to have the connecting IP address marked up
in spam messages.

This has been requested a few times by different people, and it's doable now;
currently, we can do this via something like

  add_header all Relays-Untrusted _RELAYSUNTRUSTED_

and then the user can parse out the IP from that.  but that's clunky and requires
quite a bit of parsing (or at least a fairly smart regexp).  It would be a lot
easier for people if they could just log just that last untrusted IP, or last
external IP, in a header by itself:

  add_header Relaying-IP _LASTEXTERNALIP_

it should be a single line or so in PerMsgStatus to do this...
Comment 1 Justin Mason 2007-01-03 13:57:43 UTC
aiming at 3.2.0 optimistically
Comment 2 Justin Mason 2007-01-05 05:27:23 UTC
: jm 315...; svn commit -m "bug 5273: add _LASTEXTERNALIP_, _LASTEXTERNALRDNS_,
_LASTEXTERNALHELO_ markup tags, to allow adding the connecting IP/HELO as markup
to message headers" lib/Mail/SpamAssassin/Conf.pm 
lib/Mail/SpamAssassin/PerMsgStatus.pm
Sending        lib/Mail/SpamAssassin/Conf.pm
Sending        lib/Mail/SpamAssassin/PerMsgStatus.pm
Transmitting file data ..
Committed revision 493029.