Re: Jump to next mailbox with unread mail

2012-12-23 Thread Jamie Paul Griffin
* Chris Green c...@isbd.net [2012-12-22 17:15:01 +]:

 On Sat, Dec 22, 2012 at 10:08:25AM -0500, Patrick Shanahan wrote:
  * Chris Bannister cbannis...@slingshot.co.nz [12-22-12 09:58]:
   On Sat, Dec 22, 2012 at 01:47:24PM +, Chris Green wrote:

I have added:-
bindindex   n next-unread-mailbox

... and now I can find new mail in all my (mbox) mailboxes without any
stupid requirements for setting access times or whatever to the files.
I always thought it should be simple and it is!
  
   [...]
   
It is somewhat slower than 'c' but not really significantly so where
all my mail is in local mbox files.
   
   If it is slower, then that might be a good reason why it is not the
   default. In all honestly though, I think people may complain if it was
   made the default, simply because the majority of people are only
   interested in reading new mail. They are probably aware they have old
   unread mail lying around but don't want to be consistently reminded all
   the time. 
  
  And, n is *normally*:
  Table 2.7. Most common pager keys
 Key Description
Return go down one line
Space display the next page (or next message if at the end
   of a message)
- go back to the previous page
  /--   n search for next match
S skip beyond quoted text
   
 Yes, I know I have hijacked 'n', I might change it but that doesn't
 affect the argument about whether using next-unread-mailbox is better
 than change-folder for seeing new mail.
 
 -- 
 Chris Green

I have bound ESCESC to the next-unread-mailbox function. It works
well for me and is quite useful.

bind index \e\e next-unread-mailbox

Also have unset mark_old in my muttrc file. 

I've completely overridden the default keybindings and invoke mutt using
a wrapper script with the -n and -F options and source a file where all
my functions are bound to the keys I like.

Once I've read the mailbox (mbox format) it's considered read; whether
or not there remains unread mail in the file until more mail is sorted
into it by procmail - then it becomes an unread mailbox again. 

Jamie. 


Re: Jump to next mailbox with unread mail

2012-12-22 Thread Nikola Petrov
On Fri, Dec 21, 2012 at 05:34:13PM -0500, Patrick Shanahan wrote:
 * Nikola Petrov nikol...@gmail.com [12-21-12 16:24]:
  On Fri, Dec 21, 2012 at 03:45:06PM +, Chris Green wrote:
  [...]
   Yes (not the OP here though), however it has always seemed odd to me
   that I can't get mutt to take me to all/any mailboxes which have
   *unread* mail in them.  I.e. I want 'c' to take me to the next mailbox
   with unread mail in it, *not* to the next mailbox with new mail in it.
   
  
  You can check the option 
  
  mark_old
  
  which when set to 'no' will always leave seen but not read messages as
  old.
 
 No, it leaves them marked N, when set to no.
 
 

Yep, my bad, that's why I meant actually. Then you can go to the next
unread message as the OP wanted.

-- 
Nikola


Re: Jump to next mailbox with unread mail

2012-12-22 Thread Chris Green
On Sat, Dec 22, 2012 at 07:03:23AM +1300, Chris Bannister wrote:
 On Fri, Dec 21, 2012 at 03:45:06PM +, Chris Green wrote:
  Yes (not the OP here though), however it has always seemed odd to me
  that I can't get mutt to take me to all/any mailboxes which have
  *unread* mail in them.  I.e. I want 'c' to take me to the next mailbox
  with unread mail in it, *not* to the next mailbox with new mail in it.
 
 Good point. I agree. Not necessarily 'c' though.
 
No it wouldn't need to be 'c' of course, I just wanted to make plain
what I meant.


 Weird, the documentation has (under pattern matching)
 
 ~N New messages
 ~O Old messages
 ~U Unread messages
 
 Just wondering, what is an Unread message if its not New or Old, unless
 its New AND Old together?
 
 Just a quick grep through the docs reveals:
 
 When changing folders, Mutt fills the prompt with the first folder from
 the mailboxes list containing new mail (if any), pressing Space will cycle
 through folders with new mail. The (by default unbound) function
 next-unread-mailbox in the index can be used to immediately open the
 next folder with unread mail (if any).
 
 Could you try that, and see what happens?
 
I will, I have been playing with this quite a lot recently.  Currently
I have:-

set mail_check_recent=no
set mark_old=no

and 'c' doesn't seem to find N[ew] or [O]ld mail - so what *does* it do
that's remotely useful?  I'll try assigning a key to next-unread-mailbox
and see what that does for me.

-- 
Chris Green


Re: Jump to next mailbox with unread mail

2012-12-22 Thread Chris Green
On Sat, Dec 22, 2012 at 01:31:02PM +, Chris Green wrote:
 On Sat, Dec 22, 2012 at 07:03:23AM +1300, Chris Bannister wrote:
  On Fri, Dec 21, 2012 at 03:45:06PM +, Chris Green wrote:
  
  Just a quick grep through the docs reveals:
  
  When changing folders, Mutt fills the prompt with the first folder from
  the mailboxes list containing new mail (if any), pressing Space will cycle
  through folders with new mail. The (by default unbound) function
  next-unread-mailbox in the index can be used to immediately open the
  next folder with unread mail (if any).
  
  Could you try that, and see what happens?
  
 I will, I have been playing with this quite a lot recently.  Currently
 I have:-
 
 set mail_check_recent=no
 set mark_old=no
 
 and 'c' doesn't seem to find N[ew] or [O]ld mail - so what *does* it do
 that's remotely useful?  I'll try assigning a key to next-unread-mailbox
 and see what that does for me.
 
It does what I want (and have always wanted).

I have added:-
bindindex   n next-unread-mailbox

... and now I can find new mail in all my (mbox) mailboxes without any
stupid requirements for setting access times or whatever to the files.
I always thought it should be simple and it is!

Why isn't this the default set-up for mutt?

It is somewhat slower than 'c' but not really significantly so where
all my mail is in local mbox files.

-- 
Chris Green


Re: Jump to next mailbox with unread mail

2012-12-22 Thread Brandon Sandrowicz
On Fri, Dec 21, 2012 at 03:45:06PM +, Chris Green wrote:
 On Fri, Dec 21, 2012 at 11:28:09PM +1300, Chris Bannister wrote:
  On Fri, Dec 21, 2012 at 02:01:47AM +0100, Marco wrote:
   On 2012–12–20 Patrick Shanahan wrote:
   
You access the mail box and leave, then expect mutt to still show
new mail.
   
   Yes, I do. If there is a new unread message in the mail box and I
   enter and leave it is still contains an unread message that resides
   in the .mailbox/new directory. I'm sorry that I still don't get it.
  
  New mail is flagged with an N, old unread mail is flagged with an O, new
  mail is mail that has appeared in the mailbox *since* it was last
  opened/visited.
  
  If you leave/close a mailbox where there is mail flagged with an N,
  the flag will change to an O, this allows the distinction between New
  unread mail, and old unread mail.
  
  Is that any clearer?
  
 Yes (not the OP here though), however it has always seemed odd to me
 that I can't get mutt to take me to all/any mailboxes which have
 *unread* mail in them.  I.e. I want 'c' to take me to the next mailbox
 with unread mail in it, *not* to the next mailbox with new mail in it.
 
 -- 
 Chris Green

Can't you just toggle mark_old then? Or am I missing something?

3.122. mark_old

Type: boolean
Default: yes

Controls whether or not mutt marks new unread messages as old if you
exit a mailbox without reading them. With this option set, the next
time you start mutt, the messages will show up with an “O” next to
them in the index menu, indicating that they are old.

There's also this:

3.117. mail_check_recent

Type: boolean
Default: yes

When set, Mutt will only notify you about new mail that has been
received since the last time you opened the mailbox. When unset,
Mutt will notify you if any new mail exists in the mailbox,
regardless of whether you have visited it recently.

When $mark_old is set, Mutt does not consider the mailbox to contain
new mail if only old messages exist.
-- 
Brandon Sandrowicz
:
: web   = http://brandon.sandrowicz.org
: email = bran...@sandrowicz.org
: phone = +1 647 960 3722


Re: Jump to next mailbox with unread mail

2012-12-22 Thread Chris Bannister
On Sat, Dec 22, 2012 at 01:47:24PM +, Chris Green wrote:
 
 I have added:-
 bindindex   n next-unread-mailbox
 
 ... and now I can find new mail in all my (mbox) mailboxes without any
 stupid requirements for setting access times or whatever to the files.
 I always thought it should be simple and it is!

Thanks for the heads up, it is handy to know.

 Why isn't this the default set-up for mutt?

Don't know. It could be the way people handle mail, e.g. Do you leave
all your snail mail in your letter box and just read the interesting
letters or do you bring in all your mail at once and deal with it in one
sitting, or do you ...

Can you see where I'm coming from?  mutt tends to be very conservative
with its defaults and has settings which seem most natural to the
majority of users, after all, it is fairly useless without some
customisation.

 It is somewhat slower than 'c' but not really significantly so where
 all my mail is in local mbox files.

If it is slower, then that might be a good reason why it is not the
default. In all honestly though, I think people may complain if it was
made the default, simply because the majority of people are only
interested in reading new mail. They are probably aware they have old
unread mail lying around but don't want to be consistently reminded all
the time. 

-- 
If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing. --- Malcolm X


Re: Jump to next mailbox with unread mail

2012-12-22 Thread Patrick Shanahan
* Chris Bannister cbannis...@slingshot.co.nz [12-22-12 09:58]:
 On Sat, Dec 22, 2012 at 01:47:24PM +, Chris Green wrote:
  
  I have added:-
  bindindex   n next-unread-mailbox
  
  ... and now I can find new mail in all my (mbox) mailboxes without any
  stupid requirements for setting access times or whatever to the files.
  I always thought it should be simple and it is!

 [...]
 
  It is somewhat slower than 'c' but not really significantly so where
  all my mail is in local mbox files.
 
 If it is slower, then that might be a good reason why it is not the
 default. In all honestly though, I think people may complain if it was
 made the default, simply because the majority of people are only
 interested in reading new mail. They are probably aware they have old
 unread mail lying around but don't want to be consistently reminded all
 the time. 

And, n is *normally*:
Table 2.7. Most common pager keys
   Key Description
  Return go down one line
  Space display the next page (or next message if at the end
 of a message)
  - go back to the previous page
/--   n search for next match
  S skip beyond quoted text
 

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  HOG # US1244711
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org   openSUSE Community Member
Registered Linux User #207535@ http://linuxcounter.net


Re: Jump to next mailbox with unread mail

2012-12-22 Thread Chris Green
On Sun, Dec 23, 2012 at 03:41:58AM +1300, Chris Bannister wrote:
 On Sat, Dec 22, 2012 at 01:47:24PM +, Chris Green wrote:
  
  I have added:-
  bindindex   n next-unread-mailbox
  
  ... and now I can find new mail in all my (mbox) mailboxes without any
  stupid requirements for setting access times or whatever to the files.
  I always thought it should be simple and it is!
 
 Thanks for the heads up, it is handy to know.
 
  Why isn't this the default set-up for mutt?
 
 Don't know. It could be the way people handle mail, e.g. Do you leave
 all your snail mail in your letter box and just read the interesting
 letters or do you bring in all your mail at once and deal with it in one
 sitting, or do you ...
 
Either way, unless I get a particular sort of letterbox with a
particularly helpful postman, I never get to *know* if there's any new
mail with the equivalent of 'c' (the default) whereas I will always find
new mail with 'n', even though I'll occasionally find old circulars I
should have thrown away.

 If it is slower, then that might be a good reason why it is not the
 default. In all honestly though, I think people may complain if it was
 made the default, simply because the majority of people are only
 interested in reading new mail. They are probably aware they have old
 unread mail lying around but don't want to be consistently reminded all
 the time. 
 
*I'm* interested in reading new mail, 'c' doesn't find it all except
with certain types of mailboxes and/or certain other specific settings.

-- 
Chris Green


Re: Jump to next mailbox with unread mail

2012-12-22 Thread Chris Green
On Sat, Dec 22, 2012 at 10:08:25AM -0500, Patrick Shanahan wrote:
 * Chris Bannister cbannis...@slingshot.co.nz [12-22-12 09:58]:
  On Sat, Dec 22, 2012 at 01:47:24PM +, Chris Green wrote:
   
   I have added:-
   bindindex   n next-unread-mailbox
   
   ... and now I can find new mail in all my (mbox) mailboxes without any
   stupid requirements for setting access times or whatever to the files.
   I always thought it should be simple and it is!
 
  [...]
  
   It is somewhat slower than 'c' but not really significantly so where
   all my mail is in local mbox files.
  
  If it is slower, then that might be a good reason why it is not the
  default. In all honestly though, I think people may complain if it was
  made the default, simply because the majority of people are only
  interested in reading new mail. They are probably aware they have old
  unread mail lying around but don't want to be consistently reminded all
  the time. 
 
 And, n is *normally*:
 Table 2.7. Most common pager keys
Key Description
   Return go down one line
   Space display the next page (or next message if at the end
  of a message)
   - go back to the previous page
 /--   n search for next match
   S skip beyond quoted text
  
Yes, I know I have hijacked 'n', I might change it but that doesn't
affect the argument about whether using next-unread-mailbox is better
than change-folder for seeing new mail.

-- 
Chris Green


Re: Jump to next mailbox with unread mail

2012-12-22 Thread Patrick Shanahan
* Chris Green c...@isbd.net [12-22-12 12:14]:
 Yes, I know I have hijacked 'n', I might change it but that doesn't
 affect the argument about whether using next-unread-mailbox is better
 than change-folder for seeing new mail.

It is apparently not in *your* use case, but I have been using mutt since
~1998 and do *not* have a problem finding new mail.  Perhaps you should
re-examine your usage/habits, instead of branding the evolved default
settings of mutt as illogical and unusable and instead try to determine
*why* they are the way that they are.

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  HOG # US1244711
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org   openSUSE Community Member
Registered Linux User #207535@ http://linuxcounter.net


Re: Jump to next mailbox with unread mail

2012-12-22 Thread Andre Klärner
Hi Patrick,

On Sat, Dec 22, 2012 at 12:45:59PM -0500, Patrick Shanahan wrote:
 * Chris Green c...@isbd.net [12-22-12 12:14]:
  Yes, I know I have hijacked 'n', I might change it but that doesn't
  affect the argument about whether using next-unread-mailbox is better
  than change-folder for seeing new mail.
 
 It is apparently not in *your* use case, but I have been using mutt since
 ~1998 and do *not* have a problem finding new mail.  Perhaps you should
 re-examine your usage/habits, instead of branding the evolved default
 settings of mutt as illogical and unusable and instead try to determine
 *why* they are the way that they are.

if you do know where this exactly comes from please tell me. I am still no
getting why it is behaving the way it is - from my point of view I think
the browser-view should be usable with the limit functionality.

Can you tell me what way to find new mail you use? I resorted to having
three calls for the mailboxes-command, one with all mailboxes, one with
only mailboxes with unread mail and one with IMAP only (some misc
accounts, not my main one)..

Thanks and kind regards,

Andre

-- 
Andre Klärner


smime.p7s
Description: S/MIME cryptographic signature


Re: Jump to next mailbox with unread mail

2012-12-22 Thread Patrick Shanahan
* Andre Klärner kan...@ak-online.be [12-22-12 14:12]:
 [...] 
 if you do know where this exactly comes from please tell me. I am still no
 getting why it is behaving the way it is - from my point of view I think
 the browser-view should be usable with the limit functionality.
 
 Can you tell me what way to find new mail you use? I resorted to having
 three calls for the mailboxes-command, one with all mailboxes, one with
 only mailboxes with unread mail and one with IMAP only (some misc
 accounts, not my main one)..

I have a persistant screen of mutt in a tmux (similar to screen) session
with set mail_check_recent.  I use fetchmail thru procmail and read my
mail by sorted directory (set in ~/.muttrc) in an order of *my* choice.  I
read new mail by advancing to the upper-most directory with mail newer
than my last access to *that* directory using c.  Mutt positions me to
the oldest new mail in that directory.  I read what I wish and move on.

One thing about the above, I use mbox so directory equates to file.

Mail marked new or N that is in a directory that I have visited since
invoking mutt is *not* recognized as new as far as the directory/file
containing new mail unless I close and reopen mutt, except by the N
notation.  And that is how *I* like it,re: set mail_check_recent.

What is there that you do not understand or cannot make work the way you
wish?  Remember that mutt is *very* configurable and your configuration,
what-ever it is, is *not* know by me so you must explain.  Remember that
what you do not state is not seen or recognized by me.

Everyone has different wishes/likes/desires and it may just be that mutt
does not suit you.  It does for me and many others.

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  HOG # US1244711
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org   openSUSE Community Member
Registered Linux User #207535@ http://linuxcounter.net


Re: Jump to next mailbox with unread mail

2012-12-21 Thread xing
On Fri, 21 Dec 2012, Marco wrote:

  You access the mail box and leave, then expect mutt to still show
  new mail.
 
 Yes, I do. If there is a new unread message in the mail box and I
 enter and leave it is still contains an unread message that resides
 in the .mailbox/new directory.

Perhaps this option will help:

From man muttrc:
--
mail_check_recent
Type: boolean
Default: yes

When set, Mutt will only notify you about new mail that has been received since
the last time you opened the mailbox. When unset, Mutt will notify you if any
new mail exists in the mailbox, regardless of whether you have visited it
recently.

When $mark_old is set, Mutt does not consider the mailbox to contain new mail
if only old messages exist.
--

this page describes the issue in more detail but only deals with the 'mark_old'
setting: http://dev.mutt.org/trac/wiki/NewMailHandling


xing


pgppKRDYy6WWx.pgp
Description: PGP signature


Re: Jump to next mailbox with unread mail

2012-12-21 Thread Jamie Paul Griffin
* Marco net...@lavabit.com [2012-12-21 02:01:47 +0100]:

 On 2012–12–20 Patrick Shanahan wrote:
 
  You access the mail box and leave, then expect mutt to still show
  new mail.
 
 Yes, I do. If there is a new unread message in the mail box and I
 enter and leave it is still contains an unread message that resides
 in the .mailbox/new directory. I'm sorry that I still don't get it.
 To quote the help:

next-unread-mailbox is just that. You've read the mailbox, then read the next 
unread mailbox so it's been read. Therefore, it's no longer an unread mailbox. 


Re: Jump to next mailbox with unread mail

2012-12-21 Thread Jamie Paul Griffin
* Jamie Paul Griffin ja...@kode5.net [2012-12-21 10:12:06 +]:

 * Marco net...@lavabit.com [2012-12-21 02:01:47 +0100]:
 
  On 2012–12–20 Patrick Shanahan wrote:
  
   You access the mail box and leave, then expect mutt to still show
   new mail.
  
  Yes, I do. If there is a new unread message in the mail box and I
  enter and leave it is still contains an unread message that resides
  in the .mailbox/new directory. I'm sorry that I still don't get it.
  To quote the help:
 
 next-unread-mailbox is just that. You've read the mailbox, then read the next 
 unread mailbox so it's been read. Therefore, it's no longer an unread 
 mailbox. 

(Ooops, I do apologise - I forgot to wrap my lines again. I hope that
hasn't caused too much inconvenience.) 


Re: Jump to next mailbox with unread mail

2012-12-21 Thread Chris Bannister
On Fri, Dec 21, 2012 at 02:01:47AM +0100, Marco wrote:
 On 2012–12–20 Patrick Shanahan wrote:
 
  You access the mail box and leave, then expect mutt to still show
  new mail.
 
 Yes, I do. If there is a new unread message in the mail box and I
 enter and leave it is still contains an unread message that resides
 in the .mailbox/new directory. I'm sorry that I still don't get it.

New mail is flagged with an N, old unread mail is flagged with an O, new
mail is mail that has appeared in the mailbox *since* it was last
opened/visited.

If you leave/close a mailbox where there is mail flagged with an N,
the flag will change to an O, this allows the distinction between New
unread mail, and old unread mail.

Is that any clearer?


-- 
If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing. --- Malcolm X


Re: Jump to next mailbox with unread mail

2012-12-21 Thread Marco
On 2012–12–21 xing wrote:

 Perhaps this option will help:
 
 From man muttrc:
 --
 mail_check_recent
 Type: boolean
 Default: yes
 
 When set, Mutt will only notify you about new mail that has been received 
 since
 the last time you opened the mailbox. When unset, Mutt will notify you if any
 new mail exists in the mailbox, regardless of whether you have visited it
 recently.

I unset mail_check_recent and now I got the expected behaviour.
Brilliant!

 this page describes the issue in more detail but only deals with the 
 'mark_old'
 setting: http://dev.mutt.org/trac/wiki/NewMailHandling

Thanks for the link. I totally missed it while reading the wiki.
It's well hidden.

Now I understand the idea behind the command.
(The wording is still misleading/confusing, though.)

Thanks a lot.

Marco


signature.asc
Description: Digital signature


Re: Jump to next mailbox with unread mail

2012-12-21 Thread Chris Green
On Fri, Dec 21, 2012 at 11:28:09PM +1300, Chris Bannister wrote:
 On Fri, Dec 21, 2012 at 02:01:47AM +0100, Marco wrote:
  On 2012–12–20 Patrick Shanahan wrote:
  
   You access the mail box and leave, then expect mutt to still show
   new mail.
  
  Yes, I do. If there is a new unread message in the mail box and I
  enter and leave it is still contains an unread message that resides
  in the .mailbox/new directory. I'm sorry that I still don't get it.
 
 New mail is flagged with an N, old unread mail is flagged with an O, new
 mail is mail that has appeared in the mailbox *since* it was last
 opened/visited.
 
 If you leave/close a mailbox where there is mail flagged with an N,
 the flag will change to an O, this allows the distinction between New
 unread mail, and old unread mail.
 
 Is that any clearer?
 
Yes (not the OP here though), however it has always seemed odd to me
that I can't get mutt to take me to all/any mailboxes which have
*unread* mail in them.  I.e. I want 'c' to take me to the next mailbox
with unread mail in it, *not* to the next mailbox with new mail in it.

-- 
Chris Green


Re: Jump to next mailbox with unread mail

2012-12-21 Thread Chris Bannister
On Fri, Dec 21, 2012 at 03:45:06PM +, Chris Green wrote:
 Yes (not the OP here though), however it has always seemed odd to me
 that I can't get mutt to take me to all/any mailboxes which have
 *unread* mail in them.  I.e. I want 'c' to take me to the next mailbox
 with unread mail in it, *not* to the next mailbox with new mail in it.

Good point. I agree. Not necessarily 'c' though.

Weird, the documentation has (under pattern matching)

~N New messages
~O Old messages
~U Unread messages

Just wondering, what is an Unread message if its not New or Old, unless
its New AND Old together?

Just a quick grep through the docs reveals:

When changing folders, Mutt fills the prompt with the first folder from
the mailboxes list containing new mail (if any), pressing Space will cycle
through folders with new mail. The (by default unbound) function
next-unread-mailbox in the index can be used to immediately open the
next folder with unread mail (if any).

Could you try that, and see what happens?

-- 
If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing. --- Malcolm X


Re: Jump to next mailbox with unread mail

2012-12-21 Thread Chris Bannister
On Sat, Dec 22, 2012 at 07:03:23AM +1300, Chris Bannister wrote:
 Weird, the documentation has (under pattern matching)
 
 ~N New messages
 ~O Old messages
 ~U Unread messages
 
 Just wondering, what is an Unread message if its not New or Old, unless
 its New AND Old together?
  ^^^
Arrghh! That should be either New OR Old.

-- 
If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing. --- Malcolm X


Re: Jump to next mailbox with unread mail

2012-12-21 Thread Nikola Petrov
On Fri, Dec 21, 2012 at 03:45:06PM +, Chris Green wrote:
 On Fri, Dec 21, 2012 at 11:28:09PM +1300, Chris Bannister wrote:
  On Fri, Dec 21, 2012 at 02:01:47AM +0100, Marco wrote:
   On 2012–12–20 Patrick Shanahan wrote:
   
You access the mail box and leave, then expect mutt to still show
new mail.
   
   Yes, I do. If there is a new unread message in the mail box and I
   enter and leave it is still contains an unread message that resides
   in the .mailbox/new directory. I'm sorry that I still don't get it.
  
  New mail is flagged with an N, old unread mail is flagged with an O, new
  mail is mail that has appeared in the mailbox *since* it was last
  opened/visited.
  
  If you leave/close a mailbox where there is mail flagged with an N,
  the flag will change to an O, this allows the distinction between New
  unread mail, and old unread mail.
  
  Is that any clearer?
  
 Yes (not the OP here though), however it has always seemed odd to me
 that I can't get mutt to take me to all/any mailboxes which have
 *unread* mail in them.  I.e. I want 'c' to take me to the next mailbox
 with unread mail in it, *not* to the next mailbox with new mail in it.
 

You can check the option 

mark_old

which when set to 'no' will always leave seen but not read messages as
old.

-- 
Nikola


Re: Jump to next mailbox with unread mail

2012-12-21 Thread Patrick Shanahan
* Nikola Petrov nikol...@gmail.com [12-21-12 16:24]:
 On Fri, Dec 21, 2012 at 03:45:06PM +, Chris Green wrote:
 [...]
  Yes (not the OP here though), however it has always seemed odd to me
  that I can't get mutt to take me to all/any mailboxes which have
  *unread* mail in them.  I.e. I want 'c' to take me to the next mailbox
  with unread mail in it, *not* to the next mailbox with new mail in it.
  
 
 You can check the option 
 
 mark_old
 
 which when set to 'no' will always leave seen but not read messages as
 old.

No, it leaves them marked N, when set to no.


-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  HOG # US1244711
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org   openSUSE Community Member
Registered Linux User #207535@ http://linuxcounter.net


Re: Jump to next mailbox with unread mail

2012-12-20 Thread Marco
On 2012–12–15 Marco wrote:

 “.” shows: “New mail in =.beta”, however
 “” shows: “No mailboxes have new mail”

I did not receive any response. Maybe my question was unclear. Let
me phrase it again.

What is the reason the call “buffy-list” reports “New mail in
=.beta” when at the same time the call “next-unread-mailbox” reports
“No mailboxes have new mail”?

Marco


signature.asc
Description: Digital signature


Re: Jump to next mailbox with unread mail

2012-12-20 Thread Patrick Shanahan
* Marco net...@lavabit.com [12-20-12 15:38]:
 On 2012–12–15 Marco wrote:
 
  “.” shows: “New mail in =.beta”, however
  “” shows: “No mailboxes have new mail”
 
 I did not receive any response. Maybe my question was unclear. Let
 me phrase it again.
 
 What is the reason the call “buffy-list” reports “New mail in
 =.beta” when at the same time the call “next-unread-mailbox” reports
 “No mailboxes have new mail”?

I would guess that buffy has reset the file asscess time for .beta and
that is what mutt uses to determin new mail.

to prove, check the time of new.mail before buffy and after...


-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  HOG # US1244711
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org   openSUSE Community Member
Registered Linux User #207535@ http://linuxcounter.net


Re: Jump to next mailbox with unread mail

2012-12-20 Thread Marco
On 2012–12–20 Patrick Shanahan wrote:

 I would guess that buffy has reset the file asscess time for .beta and
 that is what mutt uses to determin new mail.
 
 to prove, check the time of new.mail before buffy and after...

I just checked using the “Access”, “Modify” and “Change” time of the
mailbox “.beta” and it's set to the date when I created the mailbox
several weeks ago. Probably because nothing in this directory
changed. It contains the sub-directories “cur”, “new” and “tmp” with
a new message in the “new” directory with a recent modification
time.

I explained it wrong. “buffy-list” does not cause
“next-unread-mailbox” to fail. I can press “.” (buffy-list), then
“” (next-unread-mailbox) and it still jumps to the next unread
mailbox. But when I once enter the mailbox and leave it without
reading any mail, “buffy-list” still is aware of the new mail,
“next-unread-mailbox” however is not and will not jump.

Since there is a file in the mailbox “new” directory (.beta/new)
mutt should be able to tell that there's new mail regardless of the
modification time. Even if mutt uses the modification time, why do
the commands “buffy-list” and “next-unread-mailbox” don't share the
same opinion if I have any new mail?

Marco


signature.asc
Description: Digital signature


Re: Jump to next mailbox with unread mail

2012-12-20 Thread Patrick Shanahan
* Marco net...@lavabit.com [12-20-12 16:59]:
 On 2012–12–20 Patrick Shanahan wrote:
 
  I would guess that buffy has reset the file asscess time for .beta and
  that is what mutt uses to determin new mail.
  
  to prove, check the time of new.mail before buffy and after...
 
 I just checked using the “Access”, “Modify” and “Change” time of the
 mailbox “.beta” and it's set to the date when I created the mailbox
 several weeks ago. Probably because nothing in this directory
 changed. It contains the sub-directories “cur”, “new” and “tmp” with
 a new message in the “new” directory with a recent modification
 time.
 
 I explained it wrong. “buffy-list” does not cause
 “next-unread-mailbox” to fail. I can press “.” (buffy-list), then
 “” (next-unread-mailbox) and it still jumps to the next unread
 mailbox. But when I once enter the mailbox and leave it without
 reading any mail, “buffy-list” still is aware of the new mail,
 “next-unread-mailbox” however is not and will not jump.

mutt determins, iirc, new mail by access time.  You access the mail box
and leave, then expect mutt to still show new mail.  That is not how it
works, aiui.
 
 Since there is a file in the mailbox “new” directory (.beta/new)
 mutt should be able to tell that there's new mail regardless of the
 modification time. Even if mutt uses the modification time, why do
 the commands “buffy-list” and “next-unread-mailbox” don't share the
 same opinion if I have any new mail?

not how it works!.


-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  HOG # US1244711
http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org   openSUSE Community Member
Registered Linux User #207535@ http://linuxcounter.net


Re: Jump to next mailbox with unread mail

2012-12-20 Thread Marco
On 2012–12–20 Patrick Shanahan wrote:

 You access the mail box and leave, then expect mutt to still show
 new mail.

Yes, I do. If there is a new unread message in the mail box and I
enter and leave it is still contains an unread message that resides
in the .mailbox/new directory. I'm sorry that I still don't get it.
To quote the help:

  “The (by default unbound) function next-unread-mailbox in the index
  can be used to immediately open the next folder with unread mail (if
  any)”

and

  ├┼─┤
  │next-unread-mailbox   │open next mailbox with new mail  │
  ├┼─┤

I have a mailbox with unread mail in it (I did not read the mail,
right?) and this mail is new (it shows an “N” in the index) and
pressing “.” shows that this mailbox contains new mail (so mutt
thinks I have a new mail in this mailbox). As far as I understand
the help text I quoted, mutt should open this very mailbox if I
invoke “next-unread-mailbox”.

  Since there is a file in the mailbox “new” directory (.beta/new)
  mutt should be able to tell that there's new mail regardless of the
  modification time. Even if mutt uses the modification time, why do
  the commands “buffy-list” and “next-unread-mailbox” don't share the
  same opinion if I have any new mail?
 
 not how it works!.

Apparently I don't understand what the function
“next-unread-mailbox” is supposed to do.

Marco


signature.asc
Description: Digital signature