Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Sep 2002 12:01:49 +0200
From:      Roman Neuhauser <neuhauser@bellavista.cz>
To:        Bernd Haug <mailinglisten@berndhaug.net>
Cc:        Bryan Cassidy <bryanc2000@insightbb.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Fetchmail and Mutt
Message-ID:  <20020926100149.GZ30361@freepuppy.bellavista.cz>
In-Reply-To: <3D92B33B.7000306@berndhaug.net>
References:  <20020925184817.A33990@insightbb.com> <3D92B33B.7000306@berndhaug.net>

next in thread | previous in thread | raw e-mail | index | archive | help
# mailinglisten@berndhaug.net / 2002-09-26 09:11:55 +0200:
> 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.
> 
> Would it be possible to write a one-code-liner akin to:
> 
> #!/bin/sh
> fetchmail && "eterm -e mutt" || "eterm -e mutt"
> 
> so that first fetchmail is called, and then, no matter how it dies, 
> mutt is called?

    just replace the logical and (&&) with a semicolon.

    #!/bin/sh
    fetchmail ; Eterm -e mutt
 
> The most elegant solution would probably be fetchmail daemon mode, but 
> if you're on a non-flatrate dial-up, you might not want regular polling.

    start fetchmail in the link-up script, kill it in the link-down
    script.

-- 
begin 666 nonexistent.vbs
FreeBSD 4.7-RC
11:59AM up 8 days, 19:13, 21 users, load averages: 0.08, 0.08, 0.03
end

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020926100149.GZ30361>