Re: How to let mutt always mark mbox as new if it contains new
* Wu, Yue [05-08-09 18:26]: > > Do you me I should fix it manually? :^), yes > >From the manpage of muttrc, it says mark_old is for: > > > Controls whether or not mutt marks new unread messages as old if you > > exit a mailbox without reading them. > > So it's for message, not for mbox. My issue is that when I enter into > mbox then change to others, then the mbox's new mark will gone, no > matter if the mbox contains new messages or not. Mutt inserts a "flag" into each message header according to your configuration. If you examine the header of a message flagged as "old" you will see "Status: O" near the last header line. Since you had previously used mutt configured to "mark_old" and mutt did as it was told, you must those messages which have already been flagged. To do this: T~O;N Enter the above characters and the entire visible listing will have the "old" flagged messages changed to "new". > Maybe I didn't describe myself clearly, so make you misunderstand? > Sorry for my bad English. Yes, you have made your problem clear. But once the "new" messages have been marked/flagged as "old" changing the configuration will not automagically change them back to "new". The key sequence I displayed above "T~O;N" will change the entire current mbox file. And since you have set "mark_old" to "off" or "unset", you will not see this happen any more. I hope I have made this clear for you. :^) -- Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://counter.li.org
Re: How to let mutt always mark mbox as new if it contains new
On 2009-05-08, Patrick Shanahan wrote: > * Wu, Yue [05-08-09 18:26]: > > > > Do you me I should fix it manually? > > :^), yes > > > >From the manpage of muttrc, it says mark_old is for: > > > > > Controls whether or not mutt marks new unread messages as old if you > > > exit a mailbox without reading them. > > > > So it's for message, not for mbox. My issue is that when I enter into > > mbox then change to others, then the mbox's new mark will gone, no > > matter if the mbox contains new messages or not. > > Mutt inserts a "flag" into each message header according to your > configuration. If you examine the header of a message flagged as > "old" you will see "Status: O" near the last header line. > > Since you had previously used mutt configured to "mark_old" and mutt > did as it was told, you must those messages which have already been > flagged. To do this: > > T~O;N > > Enter the above characters and the entire visible listing will have > the "old" flagged messages changed to "new". > > > Maybe I didn't describe myself clearly, so make you misunderstand? > > Sorry for my bad English. > > Yes, you have made your problem clear. But once the "new" messages > have been marked/flagged as "old" changing the configuration will not > automagically change them back to "new". The key sequence I displayed > above "T~O;N" will change the entire current mbox file. > > And since you have set "mark_old" to "off" or "unset", you will not > see this happen any more. > > I hope I have made this clear for you. :^) I don't think this is Wu Yue's problem, Patrick. I could be wrong, but as I understand him, he is opening a mailbox, leaving some of the messages unread, then changing to another mailbox, then checking to see which mailboxes contain new mail (perhaps with the y command), and sees that the first mailbox has no N in front of it, indicating that it contains no new messages, although in fact it does. If that is the problem, then I see that problem with my installation, too. I don't have a solution other than to quit and restart mutt. HTH, Gary
Re: How to let mutt always mark mbox as new if it contains new
* Gary Johnson [05-08-09 19:57]: > > I don't think this is Wu Yue's problem, Patrick. I could be wrong, > but as I understand him, he is opening a mailbox, leaving some of > the messages unread, then changing to another mailbox, then checking > to see which mailboxes contain new mail (perhaps with the y > command), and sees that the first mailbox has no N in front of it, > indicating that it contains no new messages, although in fact it > does. > > If that is the problem, then I see that problem with my > installation, too. I don't have a solution other than to quit and > restart mutt. If that is indeed the case, I believe it is a timing problem as I use mbox and do see "N" for folders which have received mail after my leaving. I do not know the amount of time necessary for this to occur but can confirm that it does indeed happen. Also new mail appears in the current folder periodically. It more likely is that he expects a folder with new mail to have the "N" flag for the folder which contains new mail but not newer than his last access to that folder. Now I hope I am making myself clear as I feel that I have my tongue wrapped around my eye-teeth :^) -- Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://counter.li.org
Re: How to let mutt always mark mbox as new if it contains new
On Fri, May 08, 2009 at 07:37:45PM -0400, Patrick Shanahan wrote: > * Wu, Yue [05-08-09 18:26]: > > > > >From the manpage of muttrc, it says mark_old is for: > > > > > Controls whether or not mutt marks new unread messages as old if you > > > exit a mailbox without reading them. > > > > So it's for message, not for mbox. My issue is that when I enter into > > mbox then change to others, then the mbox's new mark will gone, no > > matter if the mbox contains new messages or not. > > Mutt inserts a "flag" into each message header according to your > configuration. If you examine the header of a message flagged as > "old" you will see "Status: O" near the last header line. Please see my reply carefully... I have had set the mark_old to no, and I repeatly said the *mbox*'s new mark is gone, no old mark or other marks at all. > > Since you had previously used mutt configured to "mark_old" and mutt > did as it was told, you must those messages which have already been > flagged. To do this: > > T~O;N > > Enter the above characters and the entire visible listing will have > the "old" flagged messages changed to "new". I have set the mark_old to no, so I have disabled it, and it works fine for *message* but not for *mbox*. > > > Maybe I didn't describe myself clearly, so make you misunderstand? > > Sorry for my bad English. > > Yes, you have made your problem clear. But once the "new" messages > have been marked/flagged as "old" changing the configuration will not > automagically change them back to "new". The key sequence I displayed > above "T~O;N" will change the entire current mbox file. > > And since you have set "mark_old" to "off" or "unset", you will not > see this happen any more. -- Hi, Wu, Yue
Re: How to let mutt always mark mbox as new if it contains new
On Fri, May 08, 2009 at 04:53:50PM -0700, Gary Johnson wrote: > > I don't think this is Wu Yue's problem, Patrick. I could be wrong, > but as I understand him, he is opening a mailbox, leaving some of > the messages unread, then changing to another mailbox, then checking > to see which mailboxes contain new mail (perhaps with the y > command), and sees that the first mailbox has no N in front of it, > indicating that it contains no new messages, although in fact it > does. Yes. But my problem remains after quit and restart mutt, the new marks of mailboxs are gone, no matter it contains new mails actually. On Fri, May 08, 2009 at 08:03:53PM -0400, Patrick Shanahan wrote: > > If that is indeed the case, I believe it is a timing problem as I use > mbox and do see "N" for folders which have received mail after my > leaving. I do not know the amount of time necessary for this to occur > but can confirm that it does indeed happen. Also new mail appears in > the current folder periodically. > > It more likely is that he expects a folder with new mail to have the > "N" flag for the folder which contains new mail but not newer than his > last access to that folder. No, I expect the "N" flag always there, no matter the access time, if has new mail, than "N" should be always there. > > Now I hope I am making myself clear as I feel that I have my tongue > wrapped around my eye-teeth :^) Thank you very much for kindly patient! -- Hi, Wu, Yue
Re: How to let mutt always mark mbox as new if it contains new
* Wu, Yue [05-08-09 20:26]: > > > > It more likely is that he expects a folder with new mail to have the > > "N" flag for the folder which contains new mail but not newer than his > > last access to that folder. > > No, I expect the "N" flag always there, no matter the access time, if > has new mail, than "N" should be always there. > Sorry, that is not the way mutt is programmed. Once you access the mbox file the "N" flag is gone until it receives a new message. -- Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://counter.li.org
Re: How to let mutt always mark mbox as new if it contains new
On Fri, May 08, 2009 at 11:17:37PM +0800, Wu, Yue wrote: > No, just new emails remain the new mark, but the mbox that contains them not. > On Fri, May 08, 2009 at 10:24:30AM -0400, Patrick Shanahan wrote: I could be totally off the mark here, but I believe the problem is mutt's interpretation of new mail vs. your (and my) interpretation of new mail (unread mail). I have always believed, and still do, that unread mail is the same as new mail. Although I understand mutt's logic, I think it is wrong. Afterall, they still show it with an "N" flag! But over 5 years I have learned to live with it. festus -- I just want to break even. pgpJK09rvAmUq.pgp Description: PGP signature
Re: How to let mutt always mark mbox as new if it contains new
On Fri, May 08, 2009 at 09:15:47PM EDT, John J. Foster wrote: > I could be totally off the mark here, but I believe the problem is > mutt's interpretation of new mail vs. your (and my) interpretation of > new mail (unread mail). I have always believed, and still do, that > unread mail is the same as new mail. You are mistaken. > Although I understand mutt's logic, I think it is wrong. After all, > they still show it with an "N" flag! But over 5 years I have learned > to live with it. I totally disagree. I think mutt's logic makes excellent sense .. Especially in this list, I routinely get mail that I couldn't care less about .. from regular posters I know are past redemption.. I don't see why I should go to the trouble of having to delete their contributions. I don't have much time, so I ignore them. I feel mutt's logic is 100% correct.. telling me there are _new_ posts on top of stuff I intially couldn't be bothered to delete and not take into account whatever garbage I didn't have the time & patience to get rid of. Nothing personal, I assure you. :-) CJ
Re: How to let mutt always mark mbox as new if it contains new
On Sat, May 09, 2009 at 12:13:54AM -0400, Chris Jones wrote: > > I totally disagree. > > I think mutt's logic makes excellent sense .. Especially in this list, I > routinely get mail that I couldn't care less about .. from regular > posters I know are past redemption.. > > I don't see why I should go to the trouble of having to delete their > contributions. > > I don't have much time, so I ignore them. > > I feel mutt's logic is 100% correct.. telling me there are _new_ posts > on top of stuff I intially couldn't be bothered to delete and not take > into account whatever garbage I didn't have the time & patience to get > rid of. > > Nothing personal, I assure you. Then an option should be made to fit different user's taste I think, because from your view, 'mark_old' no need to be exist too. -- Hi, Wu, Yue
Re: How to let mutt always mark mbox as new if it contains new
On Sat, May 09, 2009 at 12:13:54AM -0400, Chris Jones wrote: > > I think mutt's logic makes excellent sense .. Especially in this list, I > routinely get mail that I couldn't care less about .. from regular > posters I know are past redemption.. > > I don't see why I should go to the trouble of having to delete their > contributions. > > I don't have much time, so I ignore them. > > I feel mutt's logic is 100% correct.. telling me there are _new_ posts > on top of stuff I intially couldn't be bothered to delete and not take > into account whatever garbage I didn't have the time & patience to get > rid of. Say, I have many mailboxes that have many new messages, but now I have no so much time to see all of them, so I quickly enter mailboxes one by one, then just pick the message I'm got most of interested, leave the remaining messges for viewing them when I have time. Serveral hours later, I have time, I want to see the new messages that I haven't seen last time, but now, all mailboxes haven't any flags, so I have to go through all of them to see if there are new message in them or not. -- Hi, Wu, Yue
Re: How to let mutt always mark mbox as new if it contains new
On Mon, May 11, 2009 at 01:37:16PM +0800, Wu, Yue wrote: From: "Wu, Yue" To: mutt-users@mutt.org Subject: Re: How to let mutt always mark mbox as new if it contains new On Sat, May 09, 2009 at 12:13:54AM -0400, Chris Jones wrote: Say, I have many mailboxes that have many new messages, but now I have no so much time to see all of them, so I quickly enter mailboxes one by one, then just pick the message I'm got most of interested, leave the remaining messges for viewing them when I have time. Serveral hours later, I have time, I want to see the new messages that I haven't seen last time, but now, all mailboxes haven't any flags, so I have to go through all of them to see if there are new message in them or not. If you use debian, the package mutt-patched can do that. -- GĂ©rard
Re: How to let mutt always mark mbox as new if it contains new
* Wu, Yue [05-11-09 01:38]: > On Sat, May 09, 2009 at 12:13:54AM -0400, Chris Jones wrote: > > > > I feel mutt's logic is 100% correct.. telling me there are _new_ posts > > on top of stuff I intially couldn't be bothered to delete and not take > > into account whatever garbage I didn't have the time & patience to get > > rid of. > > Say, I have many mailboxes that have many new messages, but now I have > no so much time to see all of them, so I quickly enter mailboxes one > by one, then just pick the message I'm got most of interested, leave > the remaining messges for viewing them when I have time. Serveral > hours later, I have time, I want to see the new messages that I > haven't seen last time, but now, all mailboxes haven't any flags, so I > have to go through all of them to see if there are new message in them > or not. The individual messages are still "flagged" as net but the mbox container files is not. You have lost nothing except a notice that the "container" is not "new". Opening the mbox "container" file will still show the unread files as "new" provided you have unset mark_old. -- Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://counter.li.org
Re: How to let mutt always mark mbox as new if it contains new
On Mon, May 11, 2009 at 09:03:39AM -0400, Patrick Shanahan wrote: > * Wu, Yue [05-11-09 01:38]: > > On Sat, May 09, 2009 at 12:13:54AM -0400, Chris Jones wrote: > > > > > > I feel mutt's logic is 100% correct.. telling me there are _new_ posts > > > on top of stuff I intially couldn't be bothered to delete and not take > > > into account whatever garbage I didn't have the time & patience to get > > > rid of. > > > > Say, I have many mailboxes that have many new messages, but now I have > > no so much time to see all of them, so I quickly enter mailboxes one > > by one, then just pick the message I'm got most of interested, leave > > the remaining messges for viewing them when I have time. Serveral > > hours later, I have time, I want to see the new messages that I > > haven't seen last time, but now, all mailboxes haven't any flags, so I > > have to go through all of them to see if there are new message in them > > or not. > > The individual messages are still "flagged" as net but the mbox > container files is not. You have lost nothing except a notice that > the "container" is not "new". This is exactly what the OP was complaining about, and I completely agree with him. It's highly inconvenient, if you have a lot of mbox folders with unread e-mail in them, to go back and figure out which ones you care about. NO OTHER MAILER HAS THIS PROBLEM, as far as I know... Mutt behaves as the OP (and I, and lots of other people) expect if maildir is used, but there are valid reasons not to use maildir, and mutt's behavior should be consistent regardless of selected mailbox format. This probably should not be very difficult to fix, at least part way; you could either use the header cache, or add a flag to the structure representing a visited mbox mailbox, to mark a folder containing unread mail as needing to be visited. That doesn't solve it for mailboxes which Mutt hasn't visited yet (i.e. after starting up if you're using the flag, or when there is no header cache if you're using that). It strikes me that you'd need to make Mutt threaded in order to parse unvisited mailboxes in the background; but I don't know how other mailers handle checking for unread mail on start-up. I just know that every mailer I've ever used other than Mutt gets it right. -- Derek D. Martinhttp://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience. pgpg8C1TTPlY1.pgp Description: PGP signature
Re: How to let mutt always mark mbox as new if it contains new
Hi, * Derek Martin wrote: > This is exactly what the OP was complaining about, and I completely > agree with him. It's highly inconvenient, if you have a lot of mbox > folders with unread e-mail in them, to go back and figure out which > ones you care about. NO OTHER MAILER HAS THIS PROBLEM, as far as I > know... Mutt behaves as the OP (and I, and lots of other people) > expect if maildir is used, but there are valid reasons not to use > maildir, and mutt's behavior should be consistent regardless of > selected mailbox format. Strange. I cannot reproduce this with $check_mbox_size unset, i.e. use atime vs. mtime to detect new mail. And since I cannot reproduce it, I cannot fix it. Attached is a patch that's supposed to reset times in case an mbox folder has new mail. I cannot really test this. > This probably should not be very difficult to fix, at least part way; > you could either use the header cache, or add a flag to the structure > representing a visited mbox mailbox, to mark a folder containing > unread mail as needing to be visited. Hmm. Muttt already has mechanisms to detect if a folder has new mail. For me, this works -- if it doesn't for you, we need to fix it. Maintaining the state internally during the session is the wrong way, IMHO. Rocco diff --git a/mbox.c b/mbox.c --- a/mbox.c +++ b/mbox.c @@ -1037,9 +1037,18 @@ bail: /* Come here in case of disaster /* close a mailbox opened in write-mode */ int mbox_close_mailbox (CONTEXT *ctx) { + int i, rset = 0; + + for (i = 0; !rset && i < ctx->msgcount; i++) + { +if (!ctx->hdrs[i]->read && !ctx->hdrs[i]->old) + rset = 1; + } mx_unlock_file (ctx->path, fileno (ctx->fp), 1); mutt_unblock_signals (); mx_fastclose_mailbox (ctx); + if (rset) +mutt_decrease_mtime (ctx->path, NULL); return 0; }
Re: How to let mutt always mark mbox as new if it contains new
On 2009-05-11, "Wu, Yue" wrote: > On Sat, May 09, 2009 at 12:13:54AM -0400, Chris Jones wrote: > > > > I think mutt's logic makes excellent sense .. Especially in this list, I > > routinely get mail that I couldn't care less about .. from regular > > posters I know are past redemption.. > > > > I don't see why I should go to the trouble of having to delete their > > contributions. > > > > I don't have much time, so I ignore them. > > > > I feel mutt's logic is 100% correct.. telling me there are _new_ posts > > on top of stuff I intially couldn't be bothered to delete and not take > > into account whatever garbage I didn't have the time & patience to get > > rid of. > > Say, I have many mailboxes that have many new messages, but now I have no so > much time to see all of them, so I quickly enter mailboxes one by one, then > just pick the message I'm got most of interested, leave the remaining messges > for viewing them when I have time. Serveral hours later, I have time, I want > to see the new messages that I haven't seen last time, but now, all mailboxes > haven't any flags, so I have to go through all of them to see if there are new > message in them or not. I often read my mail the same way. I have two mutt installations that I use regularly. At home, I use Cygwin's mutt-1.4.2.2i which happens to have been built with +BUFFY_SIZE. At work, I use a version (on Linux) built from the mutt development repository that is slightly newer than 1.5.18 and for which I have 'check_mbox_size' set. I use mbox mailboxes on both systems. Both behave the same with respect to this problem. When I start mutt and open the browser, any mailboxes containing unread messages are tagged with 'N'. When I open one of these mailboxes and read the new messages I'm interested in at the time, mutt removes the 'N' flag from that mailbox. This is a good thing because it tells me I have visited this mailbox. If that mailbox later receives another new message, mutt alerts me and marks the mailbox with an 'N'. Again good. If later in the day I've read all the interesting new mail, so that mutt's browser shows no mailboxes with an 'N', but I want to revisit those mailboxes that contain unread mail, I simply exit mutt and restart it. The browser now shows all mailboxes containing unread mail with an 'N'. If that's the behavior you want, any you're using mutt version 1.5.15 or newer with mbox-style mailboxes, you might try setting 'check_mbox_size' in your muttrc and see if that helps. Regards, Gary
Re: How to let mutt always mark mbox as new if it contains new
On Mon, May 11, 2009 at 04:48:20PM +0200, Rocco Rutte wrote: > Strange. I cannot reproduce this with $check_mbox_size unset, i.e. use > atime vs. mtime to detect new mail. And since I cannot reproduce it, I > cannot fix it. Attached is a patch that's supposed to reset times in > case an mbox folder has new mail. I cannot really test this. Rocco, you are awesome. I'm going to move this discussion to mutt-dev, and reply later, when I'm not supposed to be doing other things... But briefly, $check_mbox_size was a config variable that I was unaware of until this thread, which I believe was added fairly recently. I believe the code that was added for this, at least as of Mutt-1.5.18, has introduced a bug that causes the exact opposite problem. I'll follow up later to mutt-dev. Thanks -- Derek D. Martinhttp://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience. pgpYENUVIUQYT.pgp Description: PGP signature
Re: How to let mutt always mark mbox as new if it contains new
On Mon, May 11, 2009 at 09:49:16AM -0700, Gary Johnson wrote: > On 2009-05-11, "Wu, Yue" wrote: > > > > Say, I have many mailboxes that have many new messages, but now I have no > > so > > much time to see all of them, so I quickly enter mailboxes one by one, > > then > > just pick the message I'm got most of interested, leave the remaining > > messges > > for viewing them when I have time. Serveral hours later, I have time, I > > want > > to see the new messages that I haven't seen last time, but now, all > > mailboxes > > haven't any flags, so I have to go through all of them to see if there are > > new > > message in them or not. > > > If that's the behavior you want, any you're using mutt version > 1.5.15 or newer with mbox-style mailboxes, you might try setting > 'check_mbox_size' in your muttrc and see if that helps. Thank you, 'check_mbox_size' does the trick. I don't know how do other mailers handle the mbox that has new messages, but mutt is the only one that I've met have this strange behavior like Derek said(I was and am the user of emacs'gnus, opera's M2, even gmail's web interface hasn't this issue). Maybe check the mbox that has messages flaged as 'N' is a more rock way? -- Hi, Wu, Yue
Re: How to let mutt always mark mbox as new if it contains new
On 11May2009 08:25, Derek Martin wrote: | On Mon, May 11, 2009 at 09:03:39AM -0400, Patrick Shanahan wrote: | > The individual messages are still "flagged" as net but the mbox | > container files is not. You have lost nothing except a notice that | > the "container" is not "new". | | This is exactly what the OP was complaining about, and I completely | agree with him. It's highly inconvenient, if you have a lot of mbox | folders with unread e-mail in them, to go back and figure out which | ones you care about. NO OTHER MAILER HAS THIS PROBLEM, as far as I | know... Mutt behaves as the OP (and I, and lots of other people) | expect if maildir is used, but there are valid reasons not to use | maildir, and mutt's behavior should be consistent regardless of | selected mailbox format. | | This probably should not be very difficult to fix, at least part way; | you could either use the header cache, or add a flag to the structure | representing a visited mbox mailbox, to mark a folder containing | unread mail as needing to be visited. Best thing would be for mutt, on exiting the folder, to update the mtime to be greater than the atime after the close if there are "N" state messages. A quick call to utimes() is probably enough. | That doesn't solve it for mailboxes which Mutt hasn't visited yet | (i.e. after starting up if you're using the flag, or when there is no | header cache if you're using that). But mutt already gets that half right with the mtime/atime check. | It strikes me that you'd need to | make Mutt threaded in order to parse unvisited mailboxes in the | background; but I don't know how other mailers handle checking for | unread mail on start-up. I just know that every mailer I've ever used | other than Mutt gets it right. No need. For unvisited mboxen the behaviour is already ok. It is that mutt's sync of the folder on exit sets mtime==atime that causes the trouble. For some people that's what they want ("I've visited it so don't bug me until something _extra_ arrives") but for the OP and yourself mutt should have a mode to update the atime post close if there are outstanding messages in "N" state. Comments? -- Cameron Simpson DoD#743 http://www.cskk.ezoshosting.com/cs/ Do unto others ... then split. - Mary Anne Stasium
Re: How to let mutt always mark mbox as new if it contains new
Hi, * Cameron Simpson wrote: > No need. For unvisited mboxen the behaviour is already ok. It is that > mutt's sync of the folder on exit sets mtime==atime that causes the > trouble. For some people that's what they want ("I've visited it so > don't bug me until something _extra_ arrives") but for the OP and > yourself mutt should have a mode to update the atime post close if there > are outstanding messages in "N" state. There's no need for an additional option, the definition of "something extra" is already covered by the distinction between "old" and "unread" mail in mutt. If there's new mail, mutt should always tell you. If you want to come back to new mail later, set mark_old. Rocco
Re: How to let mutt always mark mbox as new if it contains new
Hi, * Wu, Yue wrote: > Thank you, 'check_mbox_size' does the trick. Hmm, how is the partition with the mboxes mounted? This option only exists for setups where access/modification time cannot be reliably used to detect new mail. Filesystems can be mounted to not update atime as that causes disk updates but provides little to no benefit for most applications so many people turn atime updates off. Rocco
Re: How to let mutt always mark mbox as new if it contains new
Hi, * Wu, Yue wrote: > Currently, I find that if I enter to a mbox, then quit from it, the mbox's N > mark will be removed, no matter whether there are news mails in it or not, not > what I think preference for me. Can I configure it? I have set the mark_old=no Hmm, is this by any chance the same as: http://dev.mutt.org/trac/ticket/1362 ? Rocco
Re: How to let mutt always mark mbox as new if it contains new
On 2009-05-12, Rocco Rutte wrote: > Hi, > > * Wu, Yue wrote: > > > Thank you, 'check_mbox_size' does the trick. > > Hmm, how is the partition with the mboxes mounted? This option only > exists for setups where access/modification time cannot be reliably used > to detect new mail. Filesystems can be mounted to not update atime as > that causes disk updates but provides little to no benefit for most > applications so many people turn atime updates off. In my case, at work, almost everything except /tmp is NFS-mounted, including $MAIL and $HOME. I've been using +BUFFY_SIZE and now 'check_mbox_size' for so long that I don't remember exactly the problem I was having without it, except that notifications of new mail and/or mailbox statuses were not working correctly. At home, I'm using Cygwin's mutt package and it just happens to have +BUFFY_SIZE configured. Regards, Gary
Re: How to let mutt always mark mbox as new if it contains new
Hi, * Wu, Yue wrote: > Currently, I find that if I enter to a mbox, then quit from it, the mbox's N > mark will be removed, no matter whether there are news mails in it or not, not > what I think preference for me. Can I configure it? I have set the mark_old=no Sorry for the noise. This is just for the record and archives. Whenever your new mail status on mbox folders is broken, you can give fix-atime a try. It's available from: ftp://ftp.mutt.org/mutt/contrib/ Rocco
Re: How to let mutt always mark mbox as new if it contains new
On Tue, May 12, 2009 at 09:40:52AM +0200, Rocco Rutte wrote: > Hi, > > * Wu, Yue wrote: > > > Thank you, 'check_mbox_size' does the trick. > > Hmm, how is the partition with the mboxes mounted? This option only > exists for setups where access/modification time cannot be reliably used > to detect new mail. Filesystems can be mounted to not update atime as > that causes disk updates but provides little to no benefit for most > applications so many people turn atime updates off. I have little acknowledge on it, so I can't give you the sure answer, sorry :( I'm on FreeBSD 7, ~/.mutt is on the /user filesystem, it's mounted by: > /dev/ad2s2e /usrufs rw 2 2 in the /etc/fstab. I don't know if atime is enabled by default or not. About the patch you advise, I'm really not familiar with programming relative stuff and got a little busy these days, so I'm afraid I can't have a try, sorry! -- Hi, Wu, Yue
Re: How to let mutt always mark mbox as new if it contains new
On Tue, May 12, 2009 at 07:04:39AM -0700, Gary Johnson wrote: > On 2009-05-12, Rocco Rutte wrote: > > Hi, > > > > * Wu, Yue wrote: > > > > > Thank you, 'check_mbox_size' does the trick. > > > > Hmm, how is the partition with the mboxes mounted? This option only > > exists for setups where access/modification time cannot be reliably used > > to detect new mail. Filesystems can be mounted to not update atime as > > that causes disk updates but provides little to no benefit for most > > applications so many people turn atime updates off. > > In my case, at work, almost everything except /tmp is NFS-mounted, > including $MAIL and $HOME. I've been using +BUFFY_SIZE and now > 'check_mbox_size' for so long that I don't remember exactly the > problem I was having without it, except that notifications of new > mail and/or mailbox statuses were not working correctly. > > At home, I'm using Cygwin's mutt package and it just happens to have > +BUFFY_SIZE configured. Just a comment. I compiled 1.5.18 "out of the box" on Cygwin and I do not have that set. I am not sure what it does, but would it be best set in the cygwin version. Brian. > Regards, > Gary > > -- "I have attempted to give you a glimpse...of what there may be of soul in chemistry. But it may have been in vain. Perchance the chemist is already damned and the guardian of the pearly gates has decreed that of all the black arts, chemistry is the blackest. But if the chemist has lost his soul, he will not have lost his courage and as he descends into the inferno, sees the rows of glowing furnaces and sniffs the homey fumes of brimstone, he will call out--: 'Asmodeus, hand me a test-tube' "* G. N. Lewis (1875-1946)* Brian Salter-Duke (Brian Duke) Email: b_duke(AT)bigpond(DOT)net(DOT)au
Re: How to let mutt always mark mbox as new if it contains new
On 2009-05-13, Brian Salter-Duke wrote: > On Tue, May 12, 2009 at 07:04:39AM -0700, Gary Johnson wrote: > > At home, I'm using Cygwin's mutt package and it just happens to > > have +BUFFY_SIZE configured. > > Just a comment. I compiled 1.5.18 "out of the box" on Cygwin and > I do not have that set. I am not sure what it does, but would it > be best set in the cygwin version. I don't know. I suppose if you're not experiencing any of the new-mail status/notification problems discussed in this thread, you don't need it. Regards, Gary
Re: How to let mutt always mark mbox as new if it contains new
Hi, * Brian Salter-Duke wrote: > On Tue, May 12, 2009 at 07:04:39AM -0700, Gary Johnson wrote: > > At home, I'm using Cygwin's mutt package and it just happens to have > > +BUFFY_SIZE configured. > Just a comment. I compiled 1.5.18 "out of the box" on Cygwin and I do not > have > that set. I am not sure what it does, but would it be best set in the > cygwin version. +BUFFY_SIZE indicates a compile-time option that is enabled. It was removed in favor of a runtime implementation that can be turned on and off with $check_mbox_size in 1.5.15. Rocco
Re: How to let mutt always mark mbox as new if it contains new
On Fri, May 08, 2009 at 10:24:30AM -0400, Patrick Shanahan wrote: > * Wu, Yue [05-08-09 10:19]: > > Currently, I find that if I enter to a mbox, then quit from it, the > > mbox's N mark will be removed, no matter whether there are news mails > > in it or not, not what I think preference for me. Can I configure it? > > I have set the mark_old=no > > Then you have configured it. Doesn't it work now? No, just new emails remain the new mark, but the mbox that contains them not. On Fri, May 08, 2009 at 10:24:30AM -0400, Patrick Shanahan wrote: -- Hi, Wu, Yue
Re: How to let mutt always mark mbox as new if it contains new
* Wu, Yue [05-08-09 11:20]: > > No, just new emails remain the new mark, but the mbox that contains > them not. Ah, then you must correct those that have already been marked "O". t~O;N all on the same line explanation: t tag/tag-pattern ~O pattern, messages marked Old ; apply to all tagged messages N the new "flag" hit the "enter" key Mutt has a "really good" man page and a manual attached normally to the "F1" key. -- Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://counter.li.org
Re: How to let mutt always mark mbox as new if it contains new
* Patrick Shanahan [05-08-09 12:21]: > * Wu, Yue [05-08-09 11:20]: > > > > No, just new emails remain the new mark, but the mbox that contains > > them not. > > Ah, then you must correct those that have already been marked "O". > > t~O;N > My bad, sb: T~0;N > > all on the same line > > explanation: : > t tag/tag-pattern T Tag-pattern > ~Opattern, messages marked Old > ; apply to all tagged messages > N the new "flag" > >hit the "enter" key > > > Mutt has a "really good" man page and a manual attached normally to > the "F1" key. > -- Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://counter.li.org
Re: How to let mutt always mark mbox as new if it contains new
On Fri, May 08, 2009 at 12:20:13PM -0400, Patrick Shanahan wrote: > * Wu, Yue [05-08-09 11:20]: > > > > No, just new emails remain the new mark, but the mbox that contains > > them not. > > Ah, then you must correct those that have already been marked "O". > > t~O;N > > > all on the same line > > explanation: > t tag/tag-pattern > ~Opattern, messages marked Old > ; apply to all tagged messages > N the new "flag" > >hit the "enter" key > > > Mutt has a "really good" man page and a manual attached normally to > the "F1" key. Do you me I should fix it manually? >From the manpage of muttrc, it says mark_old is for: > Controls whether or not mutt marks new unread messages as old if you exit a > mailbox without reading them. So it's for message, not for mbox. My issue is that when I enter into mbox then change to others, then the mbox's new mark will gone, no matter if the mbox contains new messages or not. Maybe I didn't describe myself clearly, so make you misunderstand? Sorry for my bad English. -- Hi, Wu, Yue
Re: How to let mutt always mark mbox as new if it contains new emails?
* Wu, Yue [05-08-09 10:19]: > Currently, I find that if I enter to a mbox, then quit from it, the > mbox's N mark will be removed, no matter whether there are news mails > in it or not, not what I think preference for me. Can I configure it? > I have set the mark_old=no Then you have configured it. Doesn't it work now? -- Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://counter.li.org