On 30.11.10,16:38, Christian Ebert wrote:
> Hi Johannes,
>
> * Johannes Weißl on Tuesday, November 30, 2010 at 15:18:10 +0100
> > Yes, I think Jostein has a setup where he opens one mutt for each
> > mailbox in advance! I tried to check in screen if a window exists and
> > if not start mutt, but I couldn't find out how that is possible...
>
> But don't you have the logic in place already:
>
> $SCREEN "${screen_op...@]}" -p "$screen_window_name" -X eval "select
> '$screen_window_name'" "stuff \"$jump_cmd\""
> if [ $? != 0 ] ; then
> # instead of dying:
> # 1) check $STY
> # 2) check screen -ls
> # if ok; then screen -X ...
> # else launch term or die
> fi
>
> But I probably still haven't understood Jostein's setup ;-)
>
I have this setup in my muttrc:
screen -t M:outbox 0 mutt -f ~/mail/outbox -F ~/.muttrc
screen -t M:xlnt 1 mutt -f ~/mail/innboks/xlntit -F ~/.muttrc-3
screen -t M:rec 2 mutt -f ~/mail/innboks/rec -F ~/.muttrc-2
screen -t M:outc 3 mutt -f ~/mail/outbox-rec -F ~/.muttrc-2
screen -t M:outn 4 mutt -f ~/mail/outbox-xlntit -F ~/.muttrc-3
screen -t M:unsort 5 mutt -f ~/mail/innboks/unsorted
screen -t M:broad 6 mutt -f ~/mail/innboks/broadpark
screen -t M:mfolder 7 mutt -f ~/mail/mfolder
screen -t M:best mutt -f ~/mail/innboks/bestillinger
#screen -t M:template 6 mutt -f ~/mail/innboks/template
screen -t M:CH 9 mutt -f ~/mail/innboks/CH
screen -t cim 10 centerim
++++
This is especially effective with muttjump as the mail is located and
activated at once when you use the macro, because the windows are
available already.
Jostein