You are not logged in.

#1 2010-11-15 15:02:24

tlvince
Member
Registered: 2010-07-06
Posts: 68
Website

mutt status line with multiple accounts

Using pbrisbin's guide as a base (assume the same configuration) and supposing I have new mail in both accounts, I'd like a status line that mimic's something like this:

(gmail/inbox 1)───(gmx/inbox 1)───────────(all)

mutt(6) status_format generally alludes to formats matching the current mailbox.

There is %b, which presumably gets the count of new messages in the mailboxes defined like so:

mailboxes +GMail/INBOX +GMX/INBOX

However, even with a test status format like this:

set status_format       = "(Total: %b)───(%f %m%?n? [+%n]?%?d? [-%d]?%?t? [*%t]?)%?p?───(%p draft)?─%>─(%P)───"

... it would always display Total: 0 ...

Any ideas mutt experts?

Offline

#2 2010-11-15 15:33:31

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: mutt status line with multiple accounts

Perhaps a typo regarding folder names. I am using mutt but I haven't edited the status line. cuold it be, that %b just shows the amount of unread mails in the current folder/directory?

Offline

#3 2010-11-15 15:49:20

tlvince
Member
Registered: 2010-07-06
Posts: 68
Website

Re: mutt status line with multiple accounts

linux-ka wrote:

Perhaps a typo regarding folder names.

I checked that. To make sure, I also use this:

macro index,pager <F9> "<change-folder>+GMail/INBOX<enter>" "Go to GMail inbox"
macro index,pager <F10> "<change-folder>+GMX/INBOX<enter>" "Go to GMX inbox"

... the same "mailbox" names. Perhaps mailboxes doesn't work on folders?

linux-ka wrote:

cuold it be, that %b just shows the amount of unread mails in the current folder/directory?

Manual reads: "number of mailboxes with new mail *".

Last edited by tlvince (2010-11-15 15:50:03)

Offline

#4 2010-11-15 15:58:30

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: mutt status line with multiple accounts

mailboxes works well for directories. I use it for my sidebar inside mutt. There it shows the amount of new mails of each folder, hence it works. In my case it do not use "+folder" but

mailboxes /full/path/to/mail/folder_1  /full/path/to/mail/folder_2 ...

Maybe mutt doesn't find the folder you told him.

Offline

#5 2010-11-15 22:12:09

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: mutt status line with multiple accounts

That manual is out of date. Use this one:
http://www.mutt.org/doc/devel/manual.html#status-format

The %b states the number of mbs with new mail (seems to work for me too).


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

Board footer

Powered by FluxBB