File: nmzmailWrapper.sh

package info (click to toggle)
nmzmail 0.1.3-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 444 kB
  • ctags: 16
  • sloc: sh: 802; ansic: 300; makefile: 59
file content (29 lines) | stat: -rw-r--r-- 665 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
# wrapper to run nmzmail through desired maildirs
# by Kevin Coyner <kevin@rustybear.com>, 10 March 2006
# run periodically from your crontab

MAILDIRTOP="/home/user1/mail"

# maildirs to index.  Each must be separated by a space, even if on a separate line.
TARGET="$MAILDIRTOP/inbox
        $MAILDIRTOP/sent 
        $MAILDIRTOP/filebox1 
        $MAILDIRTOP/filebox2 
        $MAILDIRTOP/filebox3 
        $MAILDIRTOP/filebox4 
"

if [ ! -x /usr/bin/nmzmail ]; then
    echo "nmzmail does not exist ... exiting"
    exit 1
fi

if [ ! -x /usr/bin/namazu ]; then
    echo "nmzmail does not exist ... exiting"
    exit 1
fi

/usr/bin/nmzmail -i $TARGET