diff options
-rwxr-xr-x | learn-ham | 11 | ||||
-rwxr-xr-x | learn-spam | 11 |
2 files changed, 20 insertions, 2 deletions
@@ -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" @@ -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/.spam.learn" ] ; then cd "$MAILDIR/.spam.learn" |