Simple forwarding:
# Exim filter deliver baggins@rivendell.middle-earth.example
Vacation handling using traditional means, assuming that the .vacation.msg and other files have been set up in your home directory:
# Exim filter unseen pipe "/usr/ucb/vacation \"$local_part\""
Vacation handling inside Exim, having first created a file called .vacation.msg in your home directory:
# Exim filter if personal then vacation endif
File some messages by subject:
# Exim filter if $header_subject: contains "empire" or $header_subject: contains "foundation" then save $home/mail/f+e endif
Save all non-urgent messages by weekday:
# Exim filter if $header_subject: does not contain "urgent" and $tod_full matches "^(...)," then save $home/mail/$1 endif
Throw away all mail from one site, except from postmaster:
# Exim filter if $reply_address contains "@spam.site.example" and $reply_address does not contain "postmaster@" then seen finish endif
Handle multiple personal mailboxes
# Exim filter if $local_part_suffix is "-foo" then save $home/mail/foo elif $local_part_suffix is "-bar" then save $home/mail/bar endif