![]() |
|
FastMail Forum All posts relating to FastMail.FM should go here: suggestions, comments, requests for help, complaints, technical issues etc. |
![]() |
|
Thread Tools |
![]() |
#16 |
Junior Member
Join Date: Jul 2016
Posts: 13
|
:domain takes the domain part from the address without the "@".
So "@linkedin.com" would never match. |
![]() |
![]() |
![]() |
#17 |
Essential Contributor
Join Date: Jan 2003
Location: Oxfordshire, UK
Posts: 486
|
got it - thanks!
|
![]() |
![]() |
![]() |
#18 | |
Member
Join Date: Jan 2017
Posts: 85
|
Quote:
|
|
![]() |
![]() |
![]() |
#19 |
Essential Contributor
Join Date: Jan 2003
Location: Oxfordshire, UK
Posts: 486
|
so, using :domain, I got this to work which is fairly simple as no need to worry about the "@" anymore.
Code:
address :domain :regex "From" "\\.*linkedin\\.com$", |
![]() |
![]() |
![]() |
#20 | |
Junior Member
Join Date: Jul 2016
Posts: 13
|
Quote:
So, Fastmail aren't the ones to blame. ![]() |
|
![]() |
![]() |
![]() |
#21 | |
The "e" in e-mail
Join Date: May 2003
Location: mostly in Thailand
Posts: 2,813
|
Quote:
Code:
address :domain :regex "From" "linkedin\\.com$", |
|
![]() |
![]() |
![]() |
#22 | |
Essential Contributor
Join Date: Jan 2003
Location: Oxfordshire, UK
Posts: 486
|
Quote:
Code:
address :regex "From" "[\\[email protected]]linkedin\\.com$", Code:
address :matches "From" "*[[email protected]]linkedin.com", |
|
![]() |
![]() |
![]() |
#23 | |
Essential Contributor
Join Date: Jan 2003
Location: Oxfordshire, UK
Posts: 486
|
Quote:
So I don't really want to use :domain as I want the first character to be either an "@" or a "." ...works out for me because actually I am putting these rules into the UI (minus the double slashes as FM adds them for me) and I cannot find a way to have "domain in the UI. |
|
![]() |
![]() |
![]() |
#24 |
Essential Contributor
Join Date: Jan 2003
Location: Oxfordshire, UK
Posts: 486
|
![]() thanks to everyone for their kind and friendly support in solving my problem and helping me learn in the process :-)
|
![]() |
![]() |
![]() |
#25 | |
Member
Join Date: Jan 2017
Posts: 85
|
Quote:
In sieve a \ is used to escape the double quote character that's normally the string delimiter, and a literal \ itself has to be escaped as \\. Other backslashes are ignored. This is done before the regex string is passed to the regex library. |
|
![]() |
![]() |
![]() |
#26 |
Essential Contributor
Join Date: Jan 2003
Location: Oxfordshire, UK
Posts: 486
|
Brilliant - thanks for that explanation, SideshowBob
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
|
|