3 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] What is best way to C...
FromSent OnAttachments
Doc WalkerMar 2, 2005 12:16 pm 
Sam VarshavchikMar 2, 2005 3:48 pm 
Doc WalkerMar 3, 2005 10:11 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] What is best way to CC: subject header to another email account?Actions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Mar 2, 2005 3:48:21 pm
List:net.sourceforge.lists.courier-maildrop

Doc Walker writes:

What is the best way to CC: the subject of a message to another email account?

I would like to file certain emails in my inbox and send a short message with the subject header as a text message to my cell phone.

In my .mailfilter:

/^Subject:.*/ cc "| mail -s $MATCH <some@somedomain.com>" to $DEFAULT

That's an excellent way for someone to screw you, by sending you an E-mail message with the subject set to

Subject: `rm -rf $HOME`

I'm not sure whether to use the sendmail (Postfix) command or mail. Also, I'm not sure whether this is the most proper syntax. I'm currently getting an error because I use virtual mailbox domains within Postfix and I don't actually have a user with the UID/GID of the owner of my .mailfilter file.

I suggest:

cc '| echo "Subject: $MATCH" | sendmail some@somedomain.com'

Pay attention to quoting.