From afbb53a9f72db72ed65352d75b2fb44eeae39b93 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 3 Oct 2006 20:40:02 +0000 Subject: Add proper paths to learn- scripts git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@186 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- learn-ham | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'learn-ham') diff --git a/learn-ham b/learn-ham index 3c2290f..6a345a8 100755 --- a/learn-ham +++ b/learn-ham @@ -2,7 +2,16 @@ set -e -MAILDIR=/srv/mail/$LOGNAME-d/ +for dir in \ + /srv/mail/$LOGNAME-d/ \ + $HOME/Maildir \ + ; do + + MAILDIR="$dir" + if [ -d "$MAILDIR/.spam.learn" ] ; then + break + fi +done if [ -d "$MAILDIR/.xham.learn" ] ; then cd "$MAILDIR/.xham.learn" -- cgit v1.2.3