Mutt inside of cron not working for Ubuntu Server 8.04 and 10.04
I think it has to do with Ubuntu using the latest devel package of Mutt, which is 1.5x. Mutt 1.4.2.3 is the latest stable. To fix:
- apt-get remove mutt
- rm /etc/Muttrc
- wget ftp://ftp.mutt.org/mutt/mutt-1.4.2.3.tar.gz
- tar xvzf mutt-1.4.2.3.tar.gz
- cd mutt-1.4.2.3
- ./configure
- make && make install
- ln -s /usr/local/bin/mutt /usr/bin
Note, if you are pulling the from address in .muttrc, in Ubuntu 10.04, I had to hard code in the .muttrc even though it was in its default location (~/.muttrc). For example, I put this mutt -F /root/.muttrc -s "blah..."
in my scripts. Otherwise, the from would be blank when running mutt from cron. Running mutt from console was fine and .muttrc was properly read without having to add the -F
.
- Pushed on 10/18/2010 by Christian