From 97e0f28ae0d1f1b6d625ddf8b4d01f4d0c871403 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 12 Mar 2013 10:01:11 -0400 Subject: Added some preliminary working vmpc rules --- .vm | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 52 insertions(+), 13 deletions(-) diff --git a/.vm b/.vm index ea07e15..d2d3426 100644 --- a/.vm +++ b/.vm @@ -30,32 +30,71 @@ (setq vmpc-conditions '( ("QueensU" - (vmpc-folder-match ".*QueensU.*")) - ("ToDeb" - (vmpc-header-match "To" ".*debian.org")) + (vmpc-folder-match ".*QueensU.*") ) + ("To Debian" + (vmpc-header-match "To" ".*debian.org") ) + ("To Queensu" + (vmpc-header-match "To" ".*@queensu.ca") ) + ("To Ubuntu" + (vmpc-match-header "To" ".*@ubuntu.com") ) + ("To Kubuntu" + (vmpc-match-header "To" ".*@kubuntu.org") ) ("default" - (vmpc-folder-account-match "local")) + (vmpc-none-true-yet) ) ) ) (setq vmpc-actions - '( ("FromQ" + '( ("From Queens" (vmpc-composition-buffer - (setq user-mail-address "ryan.kavanagh@queensu.ca") ) ) - ("FromQCS" + (setq user-mail-address "ryan.kavanagh@queensu.ca") + (setq sendmail-program "~/bin/msmtp/msmtp-queensu") + (setq vm-mail-fcc "local:QueensU.Sent Items") ) + (vmpc-substitute-header "From" "Ryan Kavanagh ") ) + ("From Queens CS" (vmpc-composition-buffer - (setq user-mail-address "ryan@cs.queensu.ca") ) ) - ("FromDeb" + (setq user-mail-address "ryan@cs.queensu.ca") + (setq sendmail-program "~/bin/msmtp/msmtp-queensucs") + (setq vm-mail-fcc nil) ) + (vmpc-substitute-header "From" "Ryan Kavanagh ") ) + ("From Debian" (vmpc-composition-buffer - (setq user-mail-address "rak@debian.org") ) ) + (setq user-mail-address "rak@debian.org") + (setq sendmail-program "~/bin/msmtp/msmtp-default") + (setq vm-mail-fcc nil) ) + (vmpc-substitute-header "From" "Ryan Kavanagh ") ) + ("From Ubuntu" + (vmpc-composition-buffer + (setq user-mail-address "ryanakca@ubuntu.com") + (setq sendmail-program "~/bin/msmtp/msmtp-ubuntu") + (setq vm-mail-fcc nil) ) + (vmpc-substitute-header "From" "Ryan Kavanagh