Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

procmail autoreply problem



<quote who="Mike Gorse" date="Thu, Aug 25, 2005 at 04:33:20PM -0400">
> Hi Paul,
> 
> You should just be able to have procmail look for To: or CC: lines with 
> the user's email address.
> 
> I usually use vacation in conjunction with procmail for that sort of thing 
> because vacation will keep track of to whom it has send email and only 
> email the person once.  Something like this should work, substituting the 
> person's email address and user id:
> 
> :0 c
> * ^To:.*user at company.com
> |vacation user
> :0 c
> * ^CC:.*user at company.com
> |vacation user

Rather than repeat this twice, I would probably approximate a logical
"or" with scoring like this:

  :0 c
  * 1^0 To:.*user at company.com
  * 1^0 CC:.*user at company.com
  |vacation user

Of course, there's an easier way that already been alluded to in this
thread that involves using the "^TO_" instead of "To:" which will
match any message addressed toward someone including CCs. :)

Another great way to block auto-responding to things you shouldn't
would be to block based on precedence. I would do something like this
(probably in combination with the recipe above):

  * !^Precedence: (list|bulk)

Of course, I suspect vacation probably already does this -- or should!
I hope that helps.

Regards,
Mako


-- 
Benjamin Mako Hill
mako at debian.org
http://mako.cc/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.blu.org/pipermail/discuss/attachments/20050825/b6b89f5a/attachment.sig>



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org