Hello,
I'm trying to make a global version of the .forward file for exim4, instead of each user having their own. I want this to send messages flagged as spam straight to that users spam box. To do this, I need to extract the user part of the email address. I've found this helpful line:
# echo "john@somewhere.com" | cut -d@ -f1 john
but can't work out how to put it in a format that exim will like.
if $h_to: blah then save /home/$home/Maildir/.spam add 1 to n0 endif
That "blah" need to extract the name from the header and set it as $home. Any hints welcome!
Thanks, Jenny