<<< Date Index >>>     <<< Thread Index >>>

Re: How to make mutt execute commands periodically



* Farhan Ahmed <farhanahmed06@xxxxxxxxx> [04-18-06 18:14]:
> I've been using Mutt for some months, although this is my first post to
> this list. I'd like to know is there someway to make mutt check my mail
> (using fetchmail) every 5 min. I presently use a cron job to do the
> same, but i'd like fetchmail to check for my mail only when mutt is
> active. 

#!/bin/bash
if [ pidof mutt ]; then
  fetchmail
fi
sleep 300


-- 
Patrick Shanahan                        Registered Linux User #207535
http://wahoo.no-ip.org                        @ http://counter.li.org
HOG # US1244711         Photo Album:  http://wahoo.no-ip.org/gallery2