Re: Show unread mail
On Wed, Aug 28, 2002 at 11:38:33PM -0700, John Iverson wrote: * On Wed, 28 Aug 2002, Will Yardley wrote: with mbox, it doesn't show up as having new mail again until new new mail arrives. So I guess we should consider this a design limitation? well that depends on your point of view, I once had a very hot discussion about the same problem and the final resolution (after I read the Maildir specs from qmail distro) was that: mutt is again correct sice specs says: 1) MDA delivers mail to new/ subdir 2) MUA checks whether there is something in new/, (mutt displays N if there is something) and *is* urged to move everything from new/ to cur/ ASAP so once mutt opens Maildir and closes it, all (even unread) mails are moved to cur/, with mailboxes, once you open-close a mailbox, timestamp of the mailbox is updated and you loose the info about new mail. to find unread mail in Maildir you have to scan cur/ and look for all unread messages (I think thy have something like O near to the end of their filename), with mailbox you have to grep for '^Status: O' to see which messages are unread, and this could be quite CPU intensive, IMHO that's why it's still left out of mutt, would be nice to be able to switch it on/off on demand though ok, I've left mutt out to do its job and for checking the folders I use gkrellm which does efectively what I described: it scans Maildirs/mailboxes message after message periodically and can report, new a/o unread messages nicely John martin -- Brian: You have to be different! The Crowd: Yes, we are all different! Small lonely voice: I'm not! -- Life of Brian, Monty Python msg30492/pgp0.pgp Description: PGP signature
displaying folder name in xterm title
hi mutters, is there a way to change xterm's title according to the folder currently opened in a mutt so that it updates correctly whenever the folder inside of mutt is changed? probably some folder-hook magic that can execute shell commands and issue appropriate echo with escape sequences and folder's name to change the title? thanx, martin -- King of Swamp Castle: This is supposed to be a happy occasion. Let's not bicker and argue about who killed who. -- Monty Python and the Holy Grail msg29372/pgp0.pgp Description: PGP signature
Re: Maildir + new + old
On Tue, Oct 23, 2001 at 01:44:13AM -0400, David T-G wrote: Martin -- ...and then Martin Man said... % On Mon, Oct 22, 2001 at 09:10:22PM +0200, Thomas Roessler wrote: % On 2001-10-22 17:56:20 +0200, Martin Man wrote: % % just switched over to maildirs and realized that mutt moves all % messages from new/ subdir to cur/ after opening and closing given Maildir/, % messages are correctly marked as old, but because they're moved out of new/ % some monitoring programs (gkrellm) which poll the new/ directory can't % count % them as unread messages. ... % % am I the forst who is missing this functionality in mutt ??? can't believe % it.. Are you the first? Probably not. Will many mutt folks see it your way? Probably not. Could you write your own feature patch and announce it and work around the problem? I dunno; how's your coding? :-) not bad, patch is already produced but it doesn't work as expected, because Maildir messages don't have Status: field, ... certainly I found at cr.yp.to/proto/maildir.html description of colon appended flags which indicate this, No, I haven't read the specs, either, but I (IMHO) think that 'unread' has nothing to do with 'new', and so it's proper to move old unread messages to /cur and leave new unread messages in /new; if you want 'em to stay, then don't mark 'em old! matter of taste but qmail's maildir(5) says quote Files in cur are just like files in new. The big difference is that files in cur are no longer new mail: they have been seen by the user's mail-reading program. ^^^ /quote sure I was wrong here..., sorry If you're coding up some program, as your example said, it would pay to be *very* familiar with the standard and implement it fully and to the letter. sure I'm going to patch those, unread mail checking should be done by counting messages in new/ and adding the numer of messages in cur/ which don't have an S flag appended in filename after `:` colon, ... curiously lot of programs I've taken a look at are simply counting messages in new (gkrellm, gnome mail applet, etc.), I'm going to patch-fix them HTH HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! once again thanx and sorry for blaming the best MUA :-)) martin -- 2CC0 4AF6 92DA 5CBF 5F09 7BCB 6202 7024 6E06 0223
Maildir + new + old
hi all, just switched over to maildirs and realized that mutt moves all messages from new/ subdir to cur/ after opening and closing given Maildir/, messages are correctly marked as old, but because they're moved out of new/ some monitoring programs (gkrellm) which poll the new/ directory can't count them as unread messages. so just quick question (without me RTFM Maildir specs :-(() is that correct behavior ?? shouldn't the old unread messages stay in new/, when I set mark_old=no then messages are appropriately left in a new/ subdir, but then I loose the ability to distinguish new and old, I think really two-liner patch will solve it... what do you think ???, or am I missing something as usually :-)) ?? thanx, martin -- 2CC0 4AF6 92DA 5CBF 5F09 7BCB 6202 7024 6E06 0223
Re: Maildir + new + old
On Mon, Oct 22, 2001 at 10:11:17AM -0600, Charles Cazabon wrote: Martin Man [EMAIL PROTECTED] wrote: so just quick question (without me RTFM Maildir specs :-(() is that correct behavior ?? shouldn't the old unread messages stay in new/, set nomark_old # Don't mark unread new msgs as old sure, this way I loose the track of new/old messages, all unread will be marked as new, won't they ??? I was thinking about some option that will do: if message was unread - mark it as old but leave in new/ subdir once the message was read - move it to cur/ Charles -- --- Charles Cazabon [EMAIL PROTECTED] GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ --- thanx, martin -- 2CC0 4AF6 92DA 5CBF 5F09 7BCB 6202 7024 6E06 0223
Re: Maildir + new + old
On Mon, Oct 22, 2001 at 09:10:22PM +0200, Thomas Roessler wrote: On 2001-10-22 17:56:20 +0200, Martin Man wrote: just switched over to maildirs and realized that mutt moves all messages from new/ subdir to cur/ after opening and closing given Maildir/, messages are correctly marked as old, but because they're moved out of new/ some monitoring programs (gkrellm) which poll the new/ directory can't count them as unread messages. Then these programs should be fixed. sure, have to go read specs, what's the correct behavior, I still think the logical way is to leave unread messages in new/ folder, no matter whether they're brand new or old (in terms of mutt), ..., they're simply unread and therefore new, ... someone knows what the specs says, btw: could the qmail suggesstions even be considered specs, imagine you're coding that program and you have to go into new/ to see brand new messages and then search through cur/ to see which messages are considered old (unread), you'd go crazy I think, remebering those nice old day of int21 in m$dog... am I the forst who is missing this functionality in mutt ??? can't believe it.. -- Thomas Roesslerhttp://log.does-not-exist.org/ thanx, martin -- 2CC0 4AF6 92DA 5CBF 5F09 7BCB 6202 7024 6E06 0223
[patch] maildir_keep_old
hi all, attached is a patch which adds boolean option $subj, which (when set) causes old (unread) messages to stay in new/ so that they can be properly treated as new messages without parsing the content of each file in cur/ subdirecory, ... feel free to apply a/o include the patch somewhere thanx, martin P.S. sorry for unnecessary crossposting but www.mutt.org doesn't precisely say where and how to contribute the new code :-( -- 2CC0 4AF6 92DA 5CBF 5F09 7BCB 6202 7024 6E06 0223 --- init.h.orig Mon Oct 22 23:42:41 2001 +++ init.h Mon Oct 22 23:47:07 2001 @@ -907,6 +907,19 @@ ** order to make Mutt treat all unread messages as new only, you can ** unset this variable. */ + { maildir_keep_old,DT_BOOL, R_BOTH, OPTMAILDIRKEEPOLD, 0 }, + /* + ** .pp + ** Controls whether or not Mutt moves the old (unread) messages to cur/ + ** maildir subfolder. By default, Mutt will + ** move old messages to cur/ subdirectory, though many maildir-aware + ** programs are then unable to treat them as new without parsing the content + ** of cur/ subdirectory. + ** If you set this option to true, the old message will be kept in new/ + ** subdirectory and marked with O flag (See mark_old option) until they are + ** really read. This + ** option is valid only for maildir-style mailboxes. + */ { markers, DT_BOOL, R_PAGER, OPTMARKERS, 1 }, /* ** .pp --- mh.c.orig Mon Oct 1 11:57:41 2001 +++ mh.cMon Oct 22 23:30:24 2001 @@ -1112,8 +1112,8 @@ maildir_flags (suffix, sizeof (suffix), h); snprintf (partpath, sizeof (partpath), %s/%s%s, - (h-read || h-old) ? cur : new, - newpath, suffix); + (h-read || (h-old !option (OPTMAILDIRKEEPOLD)) ? + cur : new, newpath, suffix); snprintf (fullpath, sizeof (fullpath), %s/%s, ctx-path, partpath); snprintf (oldpath, sizeof (oldpath), %s/%s, ctx-path, h-path); --- mutt.h.orig Mon Oct 22 23:42:41 2001 +++ mutt.h Mon Oct 22 23:30:24 2001 @@ -358,6 +358,7 @@ OPTMAILDIRTRASH, OPTMARKERS, OPTMARKOLD, + OPTMAILDIRKEEPOLD, OPTMENUSCROLL, /* scroll menu instead of implicit next-page */ OPTMETAKEY, /* interpret ALT-x as ESC-x */ OPTMETOO,