Displaying 2 results from an estimated 2 matches for "grepfrom".
2017 Feb 10
0
Safely piping to a shell script
...n 7 of
http://www.ietf.org/rfc/rfc5229.txt is great, btw)
To address this, I'm considering the following, and would appreciate
feedback. I'm aware that this doesn't capture all emails, those with
non-alphanum are legit, and badly handled.
I think that this restricts the input of the grepfrom script to be
a single string, matching "a-zA-Z09 at ."
if not address :regex "from" "^[:alnum]*@[:alnum]*([:alnum].)*$" {
fileinto :create "wierd"; stop ; }
elsif address :regex "from" "*" {
set "sender" ${1};
i...
2020 Feb 26
1
Matching regexps
Hi,
I'm having some trouble with matching. The regexp in my dovecot.sieve
file should match on email addresses, but does not.
# The code:
if header :matches "From" "<[a-z0-9-]*@[a-z0-9-.]*>" { set "sender" "${1}"; }
if not execute "grepfrom" ["${sender}"] {
if envelope :matches "from" "*" { set "sender" "${1}"; }
This failes to match Tamara Denning <tdenning at cs.utah.edu> when I
check that regexp against that string at regex101.com, it shows a
match, but the log (from...