On Wed, Sep 25, 2002 at 06:48:17PM -0500, Bryan Cassidy wrote:
> I am using FreeBSD 4.6.2 on my system now. I am new to Unix/Linux but liking bsd 
>alot. Anyways. I use fetchmail 5.9.13 and mutt 1.2.5.1i and I am using Fluxbox as my 
>window manager. I want to know what can I add to my .fluxbox/menu config file to 
>launch fetchmail right before it launches mutt or vice versa so I don't have to run 
>fetchmail by hand each and everytime viewing my e-mails. This is what I have in my 
>.fluxbox/menu configuration file now to launch mutt 
>  [exec] (Mutt) {Eterm -e mutt} Hope I gave enough information.

There's a few ways to do it. You could simply run fetchmail as a daemon,
by putting it in your .shrc or .bashrc (depending upon your shell) so
that each time you log in fetchmail begins.  Something like fetchmail -d
300 which will run fetchmail every five minutes. (the 300 is for
seconds).

Or, you could make a little script called muttx or something that goes
fetchmail && Eterm -e mutt and put it somewhere, such as /home/bin, make
it executable 
chmod 755 ~/bin/muttx and then just invoke it by typing muttx at a
command prompt every once in awhile.

You can invoke fetchmail while in Mutt by using G (that is shift+G)
although you have to add a line to your .muttrc there.

I use a similar combination.  I have my fluxbox keys set to
Mod4  m: ExecCommand rxvt -g 80x29 -e mutt  

(I like it larger than default as I have a lot of mailboxes).
I use xbuffy and have it start upon starting X, by putting in my
.xinitrc, BEFORE the exec fluxbox line
xbuffy &

I usually have fetchmail running as daemon, whether or not I'm in X.
So, if xbuffy tells me I have email, I hit the MS key and m and mutt
opens up for me.

I've put pages up (mostly as reminders to myself, but other beginners
have found them helpful) and I'll give the links in case they're of use
to you (most have links to better docs anyway).

For fluxbox and menu possibilities

http://home.nyc.rr.com/computertaijutsu/fluxbox.html

For various tricks with mutt and fetchmail
http://home.nyc.rr.com/computertaijutsu/mutt.html

For xbuffy

http://home.nyc.rr.com/computertaijutsu/xbuffy.html


HTH


-- 

Scott

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2  A409 FA54 D575 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Angel: Buffy, careful with this gift. Lots of things that seem 
strong and good and powerful, they can be painful. 
Buffy: Like, say, immortality? 
Angel: Exactly. I'm dying to get rid of that. 
Buffy: Funny. 
Angel: I'm a funny guy. 

Attachment: msg02862/pgp00000.pgp
Description: PGP signature

Reply via email to