Laurent
2011-11-16 15:22:26 UTC
Hi everybody !
I'm using mutt to compact the inbox boxes of my users.
I've made a small shell script with an iteration which work well when
launched in a shell :
for mbox in `ls -b -1 /var/spool/mail/*` ;
do
mutt -f $mbox -e 'set folder=/dev/null; set delete=yes; push "<quit>"'
.../...
But when launched with cron, it doesn't work, and said "No recipients
were specified."
Do someone have an idea ?
thx :)
Laurent.
I'm using mutt to compact the inbox boxes of my users.
I've made a small shell script with an iteration which work well when
launched in a shell :
for mbox in `ls -b -1 /var/spool/mail/*` ;
do
mutt -f $mbox -e 'set folder=/dev/null; set delete=yes; push "<quit>"'
.../...
But when launched with cron, it doesn't work, and said "No recipients
were specified."
Do someone have an idea ?
thx :)
Laurent.