ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/Mail/SetupMail.sh
(Generate patch)

Comparing FreeBSDAdmin/Mail/SetupMail.sh (file contents):
Revision 824 by douglas, 2006-07-04T17:21:43-07:00 vs.
Revision 827 by douglas, 2006-07-06T01:41:14-07:00

# Line 5 | Line 5
5   #
6   # $Id$
7  
8 + user="`whoami`"
9 +
10   for mailbox in INBOX Sent\ Items Drafts Spam/{Assassin,False\ {Negative,Positive}}; do
11          mkdir -pv -m 0700 ~/.imap_mail
12          if [[ ! -f "$HOME/.imap_mail/$mailbox" ]]; then
# Line 16 | Line 18 | done
18  
19   mkdir -pv ~/bin
20  
21 < if [[ `whoami` == douglas ]]; then
21 > if [[ "$user" == "douglas" ]]; then
22          install -pv SpamUpdate ~/bin/SpamUpdate
23   else
24          ln -fsv ~douglas/bin/SpamUpdate ~/bin/SpamUpdate
25   fi
26 +
27 + forward="dot.forward.$user"
28 +
29 + sed -e "s/%%user%%/$user/" dot.forward > "$forward"
30 + install -pv "$forward" ~/.forward
31 + rm -f "$forward"
32 +
33 + procmailrc="dot.procmailrc.$user"
34 +
35 + sed -e "s/%%user%%/$user/" dot.procmailrc > "$procmailrc"
36 + install -pv "$procmailrc" ~/.procmailrc
37 + rm -f "$procmailrc"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines