6.0.0-alpha12
6/10/25

[#6739] Allow email address in an admin-defined header field to be added to Whitelist/Blacklist
Summary Allow email address in an admin-defined header field to be added to Whitelist/Blacklist
Queue IMP
Queue Version 4.2-RC4
Type Enhancement
State Rejected
Priority 1. Low
Owners
Requester ryan (at) lsit (dot) ucsb (dot) edu
Created 05/21/2008 (6229 days ago)
Due
Updated 07/03/2008 (6186 days ago)
Assigned
Resolved 07/03/2008 (6186 days ago)
Milestone
Patch No

History
07/03/2008 08:54:36 AM Jan Schneider Comment #11
State ⇒ Rejected
Reply to this comment
Actually, you could implement this already much cleaner using spam 
reporting. You can then extract from the message whatever you want, 
and spam filtering is magic art for most users anyway.
07/03/2008 05:33:01 AM Michael Slusarz Comment #10 Reply to this comment
Blacklist/whitelist to me is a shortcut for blacklisting from 
addresses, not return-path.  There may be instances where return-path 
is more correct, but there may very well be instances where from is 
more correct.



This seems like a minimally useful feature for most users.  I would 
rather see this maintained as a patch on the wiki or, alternatively, a 
[black|white]list hook being created.
07/02/2008 10:52:34 PM Jan Schneider Comment #9 Reply to this comment
Beside my general concerns, why does this have to specified per 
server? Sounds like it makes much more sense as a global configuration.
07/02/2008 10:45:11 PM Matt Selsky Comment #8 Reply to this comment
Using blacklists for spam is silly; spammers will change their from 
headers, etc too often to be useful.



But if this catches mailings using VERP or whatever that make the 
envelope headers useless, then I guess it sounds useful to have access 
to this other field.
07/02/2008 10:26:15 PM ryan (at) lsit (dot) ucsb (dot) edu Comment #7
New Attachment: custom_header_session.patch Download
Reply to this comment
Chuck - Attached patch which uses $_SESSION instead of a loop.



Matt - Well, it's for any case where the SMTP envelope sender (which 
ends up in the Return-Path header) differs from the From header value. 
In order of prevalence, our users seem to use message blacklisting 
mostly for semi-spam bulk mailings, then for actual spam messages that 
slip through Spamassassin for whatever reason, then for pesky humans 
using poorly configured MTAs or doing other ill-advised things.



The current system is almost entirely useless for us right now as bulk 
mailings and spam seem to rarely have the same SMTP envelope sender & 
from.
07/02/2008 10:19:02 PM Jan Schneider Comment #6 Reply to this comment
This sounds pretty obscure and intransparent for the end user to me.
07/02/2008 09:41:03 PM Matt Selsky Comment #5 Reply to this comment
Is this for blocking spam messages or specific pesky humans?
07/02/2008 09:31:33 PM Chuck Hagenbuch Comment #4 Reply to this comment
Do any other developers have an opinion on this?



To Ryan - can you update patch to use the server info from the session 
instead of looping through $servers every time through the wblist loop?
05/22/2008 05:33:17 PM ryan (at) lsit (dot) ucsb (dot) edu Comment #3 Reply to this comment
This seems very confusing to me UI-wise, as the Return-Path header
isn't even displayed in most views.
Would making the custom header field (in our case Return-Path) 
viewable in the standard limited headers view make this more 
acceptable? Not sure where it would fit, maybe under the 'From' 
header? For the message list view, it could be added to the 'From' 
tooltip. It would only show this extra info if the wblist_header is 
being used and its content differs from that of the 'From' field.



Our backend looks at the SMTP envelope senders rather than the 'From' 
headers, so the current functionality of the Whitelist/Blacklist 
system isn't cutting it.
05/22/2008 04:38:08 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
This seems very confusing to me UI-wise, as the Return-Path header 
isn't even displayed in most views.
05/21/2008 06:45:45 PM ryan (at) lsit (dot) ucsb (dot) edu Comment #1
Patch ⇒ No
State ⇒ New
New Attachment: custom_header.patch Download
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Allow email address in an admin-defined header field to be added to Whitelist/Blacklist
Type ⇒ Enhancement
Priority ⇒ 1. Low
Reply to this comment
This patch puts an optional config "wblist_header" into servers.php. 
Specifying an email header field here will use that for adding to the 
Whitelist/Blacklist. For instance, in our situation we have found that 
using the "Return-Path" header field is better than using "From". So 
when the user click Whitelist/Blacklist in an email it will add the 
email address in the "Return-Path" header field to the users custom 
list.



If the config option is not used, it will have the same behavior as 
before. If the config option is used but with a non-existent header 
field, it will throw out a notification and not add any email address.

Saved Queries