Print Page | Close Window

Authorized TO Emails

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=7163
Printed Date: 27 December 2024 at 2:42am


Topic: Authorized TO Emails
Posted By: yapadu
Subject: Authorized TO Emails
Date Posted: 30 May 2019 at 2:49am
The GUI indicates you can use RegEx in the Authorized TO Email list.

I have in the past used the actual email address and wildcards successfully.

I'm trying to implement an entry using RegEx but can't seem to figure it out.

I have tried just putting something like this:

buyer(+abc)@example.com

or this

(buyer(+abc)@example.com)

But no luck, what is the syntax supposed to be?


-------------
--------------------------------------------------------------
I am a user of SF, not an employee. Use any advice offered at your own risk.



Replies:
Posted By: LogSat
Date Posted: 30 May 2019 at 3:27pm
I tried using a "simpler" RegEx ("a" followed by a single digit, then @logsat.com):
(a\d@logsat.com)

and it worked as expected in the AuthorizedTO whitelist. Are you certain the expression:
buyer(+abc)@example.com

is a valid RegEx? The "+" should refer to a previous pattern, but it being right after the parenthesis makes me think this is not a valid RegEx expression.




-------------
Roberto Franceschetti

http://www.logsat.com" rel="nofollow - LogSat Software

http://www.logsat.com/sfi-spam-filter.asp" rel="nofollow - Spam Filter ISP


Posted By: yapadu
Date Posted: 30 May 2019 at 11:31pm
Ok, so it was a user problem.  Wink

I got it working, was trying to add support for plus addressing.  In the end, this appears to do what I want:

(user(\+[a-z0-9'&\._-]+)?@example.com)

So I can effectively do any of these:

user@example.com
user+amazon@example.com
user+mybank@example.com


Thanks for setting me straight.



-------------
--------------------------------------------------------------
I am a user of SF, not an employee. Use any advice offered at your own risk.



Print Page | Close Window