the ^ after / indicates that the adress has to begin with this like
facebook@bla
See the Regex Doc @ Wikipdia. It is a good starting point.
* is not a wildcard symbol!
. means any character
* means that a char can occur n times
The RegexString of your last emails /^*(linkedin|facebookmail|twitter|myspace)*/i
has to be: /^.*(linkedin|facebookmail|twitter|myspace).*/i
Am 22.02.2012 14:36, schrieb Tanstaafl:
> On 2012-02-22 8:27 AM, Tanstaafl<tan...@li...> wrote:
>> if($address =
>> /^(bounce|daemon|facebook|linkedin|listserv|mailer|majordomo|mediapost|myspace|noreply|owner|postmaster|request|twitter)/i)
> Two more questions...
>
> 1. This is a 'contains' match, right?
>
> and
>
> 2. Do dots/periods have to be escaped?
>
> The reason I ask #2 is I just got a google+ email, and they come from
> from plus.google.com, so, can I add it like this:
>
> if($address =
> /^(bounce|daemon|facebook|linkedin|listserv|mailer|majordomo|mediapost|myspace|noreply|owner|plus.google|postmaster|request|twitter)/i)
>
> ?
>
> ------------------------------------------------------------------------------
> Virtualization& Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Postfixadmin-devel mailing list
> Pos...@li...
> https://lists.sourceforge.net/lists/listinfo/postfixadmin-devel
|