# This will match mail from root@ux4 or root@ux5 or root@ux7. It saves a copy in my # "important" folder and continues so it also shows up in my inbox. :0c * ^From: root@(ux4|ux5|ux7) importantThis could also be written as
:0c * ^From: root@ux(4|5|7) important
We could use the ".*" character wild card. This is actually two regular expression characters but tend to be used as one so we won't worry about it for now.
# this will match on mail from jgross@ any machine and toss it into /dev/null # note the space after .* but not before. this is so it will also match # on "From: jgross@stimpy.net" but won't match on "From: mjgross@other.net". :0 * ^From:.* jgross@.* /dev/null
Back: Recipe flags
Top
Next: More complex filtering
j g r o s s @ s t i m p y . n e t