Re: Odd quirk in folder_format display
On Mon, Jun 21, 2021 at 10:15:45PM +0100, Chris Green wrote: > I have quite a few levels of directories below my ~/mail directory. > > For some reason when I navigate through some of them the numbers of > messages are displayed whereas in others they aren't. > ... and of course I've now spotted the reason:- %m, %n, and %N only work for monitored mailboxes. -- Chris Green
Odd quirk in folder_format display
I have quite a few levels of directories below my ~/mail directory. For some reason when I navigate through some of them the numbers of messages are displayed whereas in others they aren't. Here is my Ju (junk) folder as displayed in mutt:- -- Mutt: Directory [Ju], File mask: !^\.[^.] -> ../ canals/ digikam/ dokuwiki/ leafnode/ postponed/ rsync/ xfce/ ... and here is my In (inboxes) folder:- -- Mutt: Directory [In], File mask: !^\.[^.] -> ../ cl/190 default/ 852 freegle/40 inbox/ 300 odin/ 30 tinnews/00 ... and here are (some of) their contents:- chris@esprimo$ cd ~/mail/In /home/chris/mail/In chris@esprimo$ ls -l total 24 drwx-- 5 chris chris 4096 Feb 26 18:10 cl drwx-- 5 chris chris 4096 Sep 25 2020 default drwx-- 5 chris chris 4096 Feb 19 13:53 freegle drwx-- 5 chris chris 4096 Sep 25 2020 inbox drwx-- 5 chris chris 4096 Sep 25 2020 odin drwx-- 5 chris chris 4096 Feb 27 00:25 tinnews chris@esprimo$ ls -l cl total 12 drwx-- 2 chris chris 4096 Jun 15 09:14 cur drwx-- 2 chris chris 4096 Jun 21 10:18 new drwx-- 2 chris chris 4096 Jun 21 05:01 tmp chris@esprimo$ cd ~/mail/Ju /home/chris/mail/Ju chris@esprimo$ ls -l total 28 drwx-- 5 chris chris 4096 Apr 17 20:38 canals drwx-- 5 chris chris 4096 Nov 24 2020 digikam drwx-- 5 chris chris 4096 Nov 18 2020 dokuwiki drwx-- 5 chris chris 4096 Apr 10 12:03 leafnode drwx-- 5 chris chris 4096 Jun 21 19:39 postponed drwx-- 5 chris chris 4096 Nov 18 2020 rsync drwx-- 5 chris chris 4096 Nov 19 2020 xfce chris@esprimo$ ls -l canals total 12 drwx-- 2 chris chris 4096 Jun 21 19:36 cur drwx-- 2 chris chris 4096 Jun 21 19:36 new drwx-- 2 chris chris 4096 Jun 21 17:49 tmp I don't understand why I'm not seeing message counts in the Ju folder. There are similar 'some work, some don't work' folders elsewhere in my mail folders. -- Chris Green
Re: strip of some filename chars in folder_format setting
On 24Apr2017 18:02, Marcus C. Gottwaldwrote: Cameron Simpson wrote (Tue 2017-Apr-18 08:51:01 +1000): ... and I stick the X-Label value on the right of the listing. Thank you for having mentioned this. I have been adding X-Label headers for years (via procmail, for many but not all incoming emails), mostly using them for "~y" in manually typed index limits and for a few save-hooks, but I never thought of getting them displayed in the index. My index_format has now been extended by "%* %?y? %y?": If there is an X-Label, it will be shown right-justified (prepended with two spaces for visual separation), and if there is no X-Label, the index row will look just like before. And in turn, thank you for sharing your new format setting. I've just changed mine based on that: -set index_format="%D %-15.15F %S %?M?(%M) ?%?H?[%H] ?%s%> %y %4c" +set index_format="%D %-15.15F %S %?M?(%M) ?%?H?[%H] ?%s%* %?y? %y? %4c" having read up on the difference between "%>" (right justify) and "%*" (soft fill) and decided that I prioritise the X-Label over the subject line. Cheers, Cameron Simpson Chaos reigns within. Reflect, repent, and reboot. Order shall return. - Haiku Error Messages http://www.salonmagazine.com/21st/chal/1998/02/10chal2.html
Re: strip of some filename chars in folder_format setting
Cameron Simpson wrote (Tue 2017-Apr-18 08:51:01 +1000): > ... and I stick the X-Label value on the right of the listing. Thank you for having mentioned this. I have been adding X-Label headers for years (via procmail, for many but not all incoming emails), mostly using them for "~y" in manually typed index limits and for a few save-hooks, but I never thought of getting them displayed in the index. My index_format has now been extended by "%* %?y? %y?": If there is an X-Label, it will be shown right-justified (prepended with two spaces for visual separation), and if there is no X-Label, the index row will look just like before. Cheers, Marcus -- Marcus C. Gottwald ·· https://cheers.de
Re: strip of some filename chars in folder_format setting
On 12/04/17, Kevin J. McCarthy wrote: > On Wed, Apr 12, 2017 at 03:26:51PM +0200, Oliver Graute wrote: > > how can I strip of the first 23 chars of my filename string in the > > folder_format setting? > > I don't believe the built-in format specifiers give this functionality. > You may want to try using a filter: > https://dev.mutt.org/doc/manual.html#formatstrings-filters thx for this filer hint. to transform format string 11 N Apr 12 08:19 =usern...@provider.com/Mailinglists.mutt-users/ into 11 N Apr 12 08:19 Mailinglists.mutt-users/ just set this into .muttrc set folder_format = "$HOME/Scripte/cut.sh '%2C %t %N %d %f'|"$ write a little script with sed replacement cat cut.sh #!/bin/bash echo "$1" | sed 's/=usern...@provider.com\///' Best Regards, Oliver pgpiP8T0ecuL9.pgp Description: PGP signature
Re: strip of some filename chars in folder_format setting
On 17Apr2017 10:04, derek martin <inva...@pizzashack.org> wrote: On Wed, Apr 12, 2017 at 03:26:51PM +0200, Oliver Graute wrote: how can I strip of the first 23 chars of my filename string in the folder_format setting? so that: 11 N Apr 12 08:19 =usern...@provider.com/Mailinglists.mutt-users/ looks like this 11 N Apr 12 08:19 Mailinglists.mutt-users/ An alternative, which may or may not help with other aspects of managing your mail, is to reorganize your mail folders. For example, if you made Mailinglist a directory rather than a prefix, you could set folder = ~/$YOUR_MAIL_ROOT/usern...@provider.com/Mailinglists and then add a Mailboxes for mutt-users and your other mailing lists. If you had a number of these folders for different providers, you could perhaps use a macro to change the value of folder. Or, it may be simplest to forgo using a deep directory tree entirely and just put all your mail folders in the same mail root directory. And another alternative is to aggressively set the X-Label: header when you file your email. Almost all my mail rules set this, and I stick the X-Label value on the right of the listing. Example (artificially narrowed to fit in this message, this is more readable in a normal terminal): 12Apr2017 03:53 derek martinN ├>Mutt-Dev 1.7K 11Apr2017 02:21 Kevin J. McCart - ┌> Mutt-Dev 1.9K 10Apr2017 04:58 Derek Schrock - [PATCH] Add option $beep 13Apr2017 23:31 Brendan Cully N mutt: 4 new changesets M 13Apr2017 06:02 Will YardleyN ┌> Mutt-Users 0.7K 13Apr2017 05:12 Charles Cazabon N ┌> Mutt-Users 1.4K See the "Mutt-Dev" and "Mutt-Users" on the right? I do have my mail folder set in the header line, where there is more room. My settings are as follows: set folder_format="%4C %t %N %f" set index_format="%D %-15.15F %S %?M?(%M) ?%?H?[%H] ?%s%> %y %4c" The mail filing rule I use to get that "Mutt-Dev" above is this: muttMutt-Devsender:owner-mutt-...@mutt.org My motivation for the X-Label is that I file similar topics in shared folders (mutt/mail, python, unix/shell, etc) so the label tells me the list associated with it. But you can put all sorts of stuff in there; for non-lists I use "Personal" and so forth as seems useful. Combined with Derek's suggestion this might go some distance to your wishes. Cheers, Cameron Simpson <c...@zip.com.au>
Re: strip of some filename chars in folder_format setting
On Wed, Apr 12, 2017 at 03:26:51PM +0200, Oliver Graute wrote: > how can I strip of the first 23 chars of my filename string in the > folder_format setting? > > so that: > > 11 N Apr 12 08:19 =usern...@provider.com/Mailinglists.mutt-users/ > > looks like this > > 11 N Apr 12 08:19 Mailinglists.mutt-users/ An alternative, which may or may not help with other aspects of managing your mail, is to reorganize your mail folders. For example, if you made Mailinglist a directory rather than a prefix, you could set folder = ~/$YOUR_MAIL_ROOT/usern...@provider.com/Mailinglists and then add a Mailboxes for mutt-users and your other mailing lists. If you had a number of these folders for different providers, you could perhaps use a macro to change the value of folder. Or, it may be simplest to forgo using a deep directory tree entirely and just put all your mail folders in the same mail root directory. -- 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. pgpjGEUtw287b.pgp Description: PGP signature
Re: strip of some filename chars in folder_format setting
On Wed, Apr 12, 2017 at 03:26:51PM +0200, Oliver Graute wrote: > how can I strip of the first 23 chars of my filename string in the > folder_format setting? I don't believe the built-in format specifiers give this functionality. You may want to try using a filter: https://dev.mutt.org/doc/manual.html#formatstrings-filters -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA signature.asc Description: PGP signature
strip of some filename chars in folder_format setting
Hello list, how can I strip of the first 23 chars of my filename string in the folder_format setting? set folder_format = "%2C %t %N %d %f"$ so that: 11 N Apr 12 08:19 =usern...@provider.com/Mailinglists.mutt-users/ looks like this 11 N Apr 12 08:19 Mailinglists.mutt-users/ Best regards, Oliver
folder_format not working for imap folders
My folder_format seems to be ignored for my imap folders: set folder_format=%d %N %f Nothing at all shows left of the folder name. What I have set in muttrc: set spoolfile=imaps://domain.net set folder=imaps://domain.net mailboxes +=imaps://domain.net mailboxes +=INBOX etc Dave
Re: $folder_format with IMAP
On Saturday 03/26/11 06:42:16 CST, Aaron Toponce wrote: It seems that may printf() sequences that are available for $folder_format aren't working when using IMAP. I'm guessing that many of these are for local folders only? Flags like %d for example. In fact, the only working string that seems to display anything for me is the following: set folder_format=%3C %3N %f Has anyone else notices this? Is there something else that I need to set? I'm coming up short with anything that would say one way or the other. Thanks, Same with me, I think they are available in printf() but mostly the values of those flags are empty. - adu -- oooO: (..): :\.(:::Oooo:: ::\_)::(..):: :::)./::: ::(_/
$folder_format with IMAP
It seems that may printf() sequences that are available for $folder_format aren't working when using IMAP. I'm guessing that many of these are for local folders only? Flags like %d for example. In fact, the only working string that seems to display anything for me is the following: set folder_format=%3C %3N %f Has anyone else notices this? Is there something else that I need to set? I'm coming up short with anything that would say one way or the other. Thanks, -- . o . o . o . . o o . . . o . . . o . o o o . o . o o . . o o o o . o . . o o o o . o o o signature.asc Description: Digital signature
Re: Mutt 1.5.18 (2008-12-10) and folder_format
* Dave Wood d...@unrealize.co.uk [12-13-08 23:23]: Just testing 1.5.18 and noticed that now %s is showing in KBytes instead of bytes. Is there a new format for bytes? No, I'm still on 1.5.13 and KBytes are shown, but it is %c, not %s. %s represents the message subject in $index_format. -- 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: Mutt 1.5.18 (2008-12-10) and folder_format
On Sun, Dec 14, 2008 at 07:35:51AM -0500, Patrick Shanahan wrote: * Dave Wood d...@unrealize.co.uk [12-13-08 23:23]: Just testing 1.5.18 and noticed that now %s is showing in KBytes instead of bytes. Is there a new format for bytes? No, I'm still on 1.5.13 and KBytes are shown, but it is %c, not %s. %s represents the message subject in $index_format. from TFM, 3.59. folder_format Type: string Default: %2C %t %N %F %2l %-8.8u %-8.8g %8s %d %f ... %s size in bytes festus -- It is not unusual for those at the wrong end of the club to have a clearer picture of reality than those who wield it. Noam Chomsky pgpSOWTwZriKx.pgp Description: PGP signature
Re: Mutt 1.5.18 (2008-12-10) and folder_format
On Sun, Dec 14, 2008 at 04:21:07AM +, Dave Wood wrote: Just testing 1.5.18 and noticed that now %s is showing in KBytes instead of bytes. Is there a new format for bytes? You'll get K only if the mailbox is smaller than a megabyte, otherwise you'll get M. I brought up the issue 6 months ago, and the lack of response suggests that it's not a widespread problem. -- George
Re: Mutt 1.5.18 (2008-12-10) and folder_format
On Sun, Dec 14, 2008 at 06:09:18PM +, Dave Wood wrote: On (08:49 14/12/08), George Davidovich m...@optimis.net put forth the proposition: On Sun, Dec 14, 2008 at 04:21:07AM +, Dave Wood wrote: Just testing 1.5.18 and noticed that now %s is showing in KBytes instead of bytes. Is there a new format for bytes? You'll get K only if the mailbox is smaller than a megabyte, otherwise you'll get M. I brought up the issue 6 months ago, and the lack of response suggests that it's not a widespread problem. Well it's not a huge problem for me I guess, but it would be nice to some extra formatting options like display in bytes or K/M. Agreed, but the recognition of a problem and a possible fix generally precede discussions of workarounds and their relative merits, let alone new feature requests. Me, I've removed %s from folder_format entirely. I expect to get bitten one day, but for day to day maildir browsing (where everything is 0.5K), file size information isn't that important. Similarly, I've removed %b from index_format for IMAP browsing, choosing instead to rely on the clunky but reliably correct information provided by using the toggle-mailboxes ('y') command. Not entirely unlike real solutions, but who's counting? -- George
Mutt 1.5.18 (2008-12-10) and folder_format
Just testing 1.5.18 and noticed that now %s is showing in KBytes instead of bytes. Is there a new format for bytes? -- The Kennedy Constant: Don't get mad -- get even.
Re: folder_format %N not working after upgrade to 1.5.16
On Fri 06.Jul.07 10:38, Kevin Coyner wrote: I'm running a Debian unstable system and during a recent upgrade went from mutt 1.5.15 to 1.5.16. During this upgrade I lost the %N sequence in the file browser display. Previously it would show the number of (N)ew messages in each folder. Now it just shows zeros. [...] Any one see this happen before? Yes, there is at least one bug filed (by myself) about this issue. Let's hope Brendan finds the time to sort it out before the 1.6 release. Cheers. -- redondos signature.asc Description: Digital signature
folder_format %N not working after upgrade to 1.5.16
I'm running a Debian unstable system and during a recent upgrade went from mutt 1.5.15 to 1.5.16. During this upgrade I lost the %N sequence in the file browser display. Previously it would show the number of (N)ew messages in each folder. Now it just shows zeros. Nothing has changed in my muttrc file. Here is the line I was using for folder_format: set folder_format = %t %3C .. %d | %3N | %f I'm using imap but there have been no problems with it. When I go into folders, there definitely are (N)ew messages, so it's not like they don't exist. But for some reason, they are not showing up in the file browser display in 1.5.16. Any one see this happen before? Thanks Kevin -- Kevin Coyner GnuPG key: 1024D/8CE11941 signature.asc Description: Digital signature
size in kbytes instead of bytes in folder_format ?
Hi mutters, do you know if there is a way to show the size of the folders in KB instead of Bytes (without patching the sources ;) ? Sometimes it's hard to understand if a mailbox is big 1MB or 10MB. I suppose I'm not allowed to do arithmetic operations in $folder_format, Am I? Cheers, -- Alessio 'mOLOk' Bolognino Arch Linux Trusted User Public Key http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0xFE0270FB GPG Key ID = 1024D / FE0270FB 2007-04-11 Key Fingerprint = 9AF8 9011 F271 450D 59CF 2D7D 96C9 8F2A FE02 70FB pgprZG6Qjnxjm.pgp Description: PGP signature
Re: size in kbytes instead of bytes in folder_format ?
=- Alessio 'mOLOk' Bolognino wrote on Wed 27.Jun'07 at 19:04:13 +0200 -= do you know if there is a way to show the size of the folders in KB instead of Bytes (without patching the sources ;) ? Ugrade to 1.5.16 I suppose I'm not allowed to do arithmetic operations in $folder_format, Am I? No (yet ;). -- © Rado S. -- You must provide YOUR effort for your goal! EVERY effort counts: at least to show your attitude. You're responsible for ALL you do: you get what you give.
Re: read/unread message output in folder_format?
Quoting Ajeet: I misunderstood. You want the number of messages to show up in the folder view? This is not possible I think. If you need this, you should see the mutt-sidebar patch. The sidebar displays all the mail boxes with the number of messages in them and the number of new messages in brackets. It's not something I *need*, I just thought it'd be a nice feature to have and that I was missing something. Thanks for letting me know about the sidebar patch; maybe I'll check it out anyway. -- Glen Barber
read/unread message output in folder_format?
Hi folks. I have finally put together a folder (mailbox) setup that I like, however, it is missing one feature. In the main view, I would like to see how many messages are read/unread, similar to the %e/%E (for threads) in index_format, or even %C (pager_format). Anyone have any ideas how I can do this? -- Glen Barber
Setting folder_format for attachments only
Hi there! It happens that I have to attach several files to a mail, some of which have quite long filenames. In order to read the filenames wholly, I often have to enlarge my Xterm, and this is not what I want. Now, I'd like to either have the possibility to scroll to the left and right side in the folder view (would be nice anyway), or to set a folder_format for directories different to ~/Mail/. I tried this and several variants of it: folder-hook !.*Mail.* 'set folder_format=%3C %t %N %8s %f' It looks like it's matching for ALL folders, including ~/Mail/. Does anybody know how to handle this? I am using Mutt 1.3.99i (2002-05-02) TIA HAND André -- Real programmers use cat a.out
Re: Setting folder_format for attachments only
* Andre Bonhote [EMAIL PROTECTED] [2002-05-24 09:14]: folder-hook !.*Mail.* 'set folder_format=%3C %t %N %8s %f' It looks like it's matching for ALL folders.. please explain the pattern! i am sure we can find the problem more easily then... -- Real programmers use cat a.out *yawn* Sven -- $ cat food litter
flagged messages in folder_format?
just checked the manual, and it appears that there isn't a way to indicate whether or not a mailbox has flagged messages in it while in the file browser (folder_format has no equivalent to index_format's %S). is there a workaround for this? i'd love to be able to flag messages that i need to deal with later and then see which mailboxes contain such important messages. -- Ryan Singer :: http://feltpresence.com I call architecture frozen music. - Goethe
Re: flagged messages in folder_format? - grep
* Ryan Singer [EMAIL PROTECTED] [020312 15:45]: just checked the manual, and it appears that there isn't a way to indicate whether or not a mailbox has flagged messages in it while in the file browser (folder_format has no equivalent to index_format's %S). correct. mutt won't be able to see them from outside. so mutt won't know - and therefore cannot indicate them. is there a workaround for this? select a folder - and let mutt look inside! :-) i'd love to be able to flag messages that i need to deal with later and then see which mailboxes contain such important messages. grep -l -s -F 'X-Status: F' ~/Mail/* just an idea.. Sven -- grep -c -s -F 'X-Status: F' $MAIL 839
folder_format
Hello again! I test the folder_format with the string: set folder_format= %\%C %N %t %d %\ %s %. %f %\ I like how it fell, but I'm want to correct some mistakes: - The %N and %t string don't work... %N puts on screen a mark for boxes with new mail, %t puts a mark for boxes with tagged mail... How can I make this functions work? - I want to put the %s script in KB format, I try this: %s/1024, but not work... There are a way to do this? - I want to align the number of messages on the left... Can I do this? ex: 8 9 10 11 I think it's all... Thanks for help! (and sorry my poor english :) -- Michel - Curitiba - Brasil Ariman is waiting for you...
Size on KB on folder_format
Hi there! Does anyone know how to show the mbox/mailboxes size on KB on the folder_format? Cheers, -- David Collantes - http://wwwbusucfedu/david/ College of Business Administration, University of Central Florida An empty stomach is not a good political advisor smime.p7s Description: application/pkcs7-signature
Subscriber address change, was Re: Folder_Format Question?
FYI, mutt-user-people. . . - Forwarded message from Josh Meekhof [EMAIL PROTECTED] - To: Ailbhe Leamy [EMAIL PROTECTED] From: Josh Meekhof [EMAIL PROTECTED] Subject: Re: Folder_Format Question? Josh Meekhof is no longer with Techniki Informatica. - End forwarded message - -- Homepage: http://ailbhe.ossifrage.net/
Folder_Format Question?
Hi Folks, I'm new to the world of mutt (and liking it :-) I'm in need of some assistance with my .muttrc file. It's my understanding that '%N' should display an 'N when selecting another folder to read that has new mail in it, but for some reason the following: set folder_format = %2C %N %t %d %25f (%s bytes) doesn't seem to be working? I'm using Mutt v1.2.5i. Can anyone shed some light on what I'm missing to get this feature to work? -- --- Gord Mc.Pherson (Gordzilla) Help free Dmitry Sklyarov, Visit http://freesklyarov.org and get involved! GPG Key Fingerprint:56329C4D F5356F27 1FD35BC9 7C5FC319 C6427B28 Registered Linux User: 132434 -- You can register at http://counter.li.org Last system reboot was: 42 days 0 hours 25 minutes ago. Seti@home Statistic:1398 WU's processed in 2.519 years.
Re: Folder_Format Question?
On (07/09/01 10:29), Gord Mc.Pherson wrote: I'm new to the world of mutt (and liking it :-) I'm in need of some assistance with my .muttrc file. It's my understanding that '%N' should display an 'N when selecting another folder to read that has new mail in it, but for some reason the following: set folder_format = %2C %N %t %d %25f (%s bytes) doesn't seem to be working? I'm using Mutt v1.2.5i. Can anyone shed some light on what I'm missing to get this feature to work? mailboxes /var/spool/mail/username =mailbox1 (etc etc) Ailbhe
$folder_format and IMAP
What would other IMAP users feel about moving the "IMAP +" field which is put in the %F field in $folder_format to somewhere else? I have two problems with it in the %F field:- 1 - With the default $folder_format it's much to far from the folder name, e.g. I get:- - 1 IMAP ../ 2 IMAP Trash 3 IMAP bike 4 IMAP +buying. 5 IMAP family. 6 IMAP +friends. 7 IMAP internet. 8 IMAP +isbd. 9 IMAP linux. 10 IMAP regs 11 IMAP +riding. 12 IMAP sam 13 IMAP selling 14 IMAP subdir. 15 IMAP test which makes it quite difficult to spot which folders have the + against them. 2 - I'd prefer *not* to have the %F field appear at all when I'm viewing local folders, it doesn't tell me anything I want to know. I know I could sort this out using folder_hook but the defaults are a little 'un-ideal' to my mind. Could we maybe have a special format specifier for the IMAP field? Oh, and one other little moan looking at the above IMAP folder directory, those '.' characters indicating a folder with sub-folders, is there any way to choose a more visible character? -- Chris Green ([EMAIL PROTECTED]) Home: [EMAIL PROTECTED] Work: [EMAIL PROTECTED] WWW: http://www.isbd.co.uk/
Re: printf like sequences for folder_format
On Thu, May 11, 2000 at 06:44:16PM +0300, Mikko Hänninen wrote: Marius Gedminas [EMAIL PROTECTED] wrote on Thu, 11 May 2000: I mean there's no percent display. With mbox you see: `Reading foo... 310 (10%)', with Maildir you only see the number of messages. Psychologically this makes the waiting seem longer ;) Oh right. It shouldn't be difficult to add a display like that to Maildir though? I mean, you can find out how many files there are in advance, and you don't even need to worry about the messages being different sizes since only the mail headers get read, anyway. not even the header needs to be read when just searching for the number of new / old mail... simply count the files in ./new and the files in ./cur ... the sum of them is the total count of messages and in ./new are the new ones... I've got some information to my private eMail address about where these printf like sequences are interpreted. If someone is interested I'll bounce the mail. As I am consumed quite much with my scanner driver project I don't think I'll have enough time to understand/change the mutt sources. If there should really be noone willing to try it, I'll go and do it... but don't expect it to be today or tomorrow... cu. -- Christian Ordig | Homepage: http://thor.prohosting.com/~chrordig/ Germany |eMail: Christian Ordig [EMAIL PROTECTED] PGP signature
Re: printf like sequences for folder_format
On Wed, May 10, 2000 at 11:33:43PM +0300, Mikko Hänninen wrote: [... Maildir is not for everyone ...] less convenient (no progress indication while opening and no line counting). Huh? I get progress indication when opening a Maildir folder, every 10 messages, which means the counter is basically just a blur... I mean there's no percent display. With mbox you see: `Reading foo... 310 (10%)', with Maildir you only see the number of messages. Psychologically this makes the waiting seem longer ;) No line counting? That's just a procmail rule away. Although if you don't want to use procmail (or maildrop), I guess it's a problem then. (Actually, I think all my saved mails have Lines: headers, so it's not an issue for me). Maildir sure has many of advantages (like faster saving when you delete a single message from the beginning of a folder, etc.), but they are not applicable to my situation. Mbox seems better for mail archives (faster, smaller, and they are mostly read-only anyway). Marius Gedminas -- "Linux: the operating system with a CLUE... Command Line User Environment". (seen in a posting in comp.software.testing)
Re: printf like sequences for folder_format
Marius Gedminas [EMAIL PROTECTED] wrote on Thu, 11 May 2000: I mean there's no percent display. With mbox you see: `Reading foo... 310 (10%)', with Maildir you only see the number of messages. Psychologically this makes the waiting seem longer ;) Oh right. It shouldn't be difficult to add a display like that to Maildir though? I mean, you can find out how many files there are in advance, and you don't even need to worry about the messages being different sizes since only the mail headers get read, anyway. Mbox seems better for mail archives (faster, smaller, and they are mostly read-only anyway). Indeed, Maildir is not a mail archive format, it wasn't designed as such. Doesn't mean that I can't use it like that, though. :-) Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / "Personally, I want my computer's memory to be more reliable than mine." /.
Re: printf like sequences for folder_format
On Wed, May 10, 2000 at 05:19:47PM +0200, Wilhelm Wienemann wrote: Hello Christian! On Tue, 09 May 2000, Christian Ordig wrote: I start mutt by calling "mutt -y" to see which of my folders has new mail. The format the folders are displayed isn't really what I want... I am not really interested in permissions or owner of the folders, but more in how many mails are in the folder and how many of them are unread... Maybe the '[n]frm' tool on your box will do what you want. nfrm Mail/mutt-user Well... I'd like to see it in mutt... externaly I could also hack together a short Perl script, to count the files in ~/Mail/mutt-users/new and ~/Mail/mutt-users/cur add them together and show how many new mails and how many total mails are in this folder... but the point was, I wanna see it in the menu (called "browser"?) I get when starting mutt with command line "mutt -y" will show you how many *new* articles are in your mbox $HOME/Mail/mutt-user and well... I don't use any mbox style folders ... -- Christian Ordig | Homepage: http://thor.prohosting.com/~chrordig/ Germany |eMail: Christian Ordig [EMAIL PROTECTED] PGP signature
Re: printf like sequences for folder_format
On Tue, May 09, 2000 at 11:53:05PM +0200, Gero Treuner wrote: Hi! I know this would user quite a lot of time parsing the folders, but since I am using Maildir style eMail folders this would be speeded up quite much. Is there any way to achieve this? The docs only tell me about the folder- permission and owner stuff for the folder_format setting. You have a point here, and that could be a killer feature for mbox format ;-) right... but who really uses mbox when it comes to have more than 1000 or 2000 messages in a folder? On the other hand nobody would be forced switching it on... ;_) Unfortunately it is still waiting to be implemented. Write me if you need pointers where to start in the mutt sources. Maybe this is the wrong mailing list for discussing this... I think the mutt-devel list would fit better... How about the traffic on this list? (I only have a MODEM ;-) I'd be glad about any hint... Thanks -- Christian Ordig | Homepage: http://thor.prohosting.com/~chrordig/ Germany |eMail: Christian Ordig [EMAIL PROTECTED] PGP signature
Re: printf like sequences for folder_format
On Wed, May 10, 2000 at 06:50:56PM +0200, Christian Ordig wrote: You have a point here, and that could be a killer feature for mbox format ;-) right... but who really uses mbox when it comes to have more than 1000 or 2000 messages in a folder? I do. I've tried Maildirs and found them to be slower to open (about twice for the first time and only very slightly slower when everything is in the cache), bigger (a single folder with 3100 messages took 13 Mb in mbox, and 21 Mb in Maildir format -- on ext2 fs with 4K blocks), and less convenient (no progress indication while opening and no line counting). Perhaps I'll switch to Maildir when I'll start using Reiserfs (or NFS). Marius Gedminas -- Favourite MS-DOS error message: "Drive C: not ready, close door."
Re: %N in $folder_format
David DeSimone [EMAIL PROTECTED] wrote on Mon, 13 Mar 2000: Can anyone come up with an explanation for this? I can't. Me either. Sounds like it was time for some debugging... Well, I suppose, I should first see if I can reproduce the problem on my system. If I have free time later today I might give it a go. This folder was mbox format, not over NFS... do I remember right? Which OS and filesystem type? Even if that really shouldn't matter. Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / ERROR! CAT reader seems to be conflicting with the mouse.
Re: %N in $folder_format
On Mon, Mar 13, 2000 at 08:11:16PM +0200, Mikko H?nninen wrote: David DeSimone [EMAIL PROTECTED] wrote on Mon, 13 Mar 2000: Can anyone come up with an explanation for this? I can't. Me either. Sounds like it was time for some debugging... Well, I suppose, I should first see if I can reproduce the problem on my system. If I have free time later today I might give it a go. This folder was mbox format, not over NFS... do I remember right? Which OS and filesystem type? Even if that really shouldn't matter. OS: Debian woody (Linux 2.2.13, i386) mutt 1.1.5 MTA is Postfix 19991231. Delivering to mailboxes with Procmail using locking rules. FS is ext2. -- Drew Bloechl [EMAIL PROTECTED]
Re: %N in $folder_format
On Mon, Mar 13, 2000 at 10:26:09AM -0800, Drew Bloechl wrote: OS: Debian woody (Linux 2.2.13, i386) mutt 1.1.5 MTA is Postfix 19991231. Delivering to mailboxes with Procmail using locking rules. FS is ext2. Duh. I didn't know I had to specify them with "mailboxes". I feel stupid now. -- Drew Bloechl [EMAIL PROTECTED]
Re: %N in $folder_format
On Thu, Mar 09, 2000 at 11:26:49PM -0500, David T-G wrote: Is your shell, perhaps, checking for new mail as well? Anything that accesses the folder, as I recall, will reset the new function. Thus, --enable-buffy-size might just be the ticket after all. I have a few things checking for mail. I did recompile with --enable-buffy-size and verified that it was in there with mutt -v, but that %N is still blank. Is there something else I have to do to get it to work? I assume the check is automatic on entering "browser" mode. -- Drew Bloechl [EMAIL PROTECTED]
Re: %N in $folder_format
Drew Bloechl [EMAIL PROTECTED] wrote on Fri, 10 Mar 2000: I have a few things checking for mail. I did recompile with --enable-buffy-size and verified that it was in there with mutt -v, but that %N is still blank. A couple of other things to check that I can think of: 1) When you enter these folders which are supposed to have new mail, does Mutt actually show any messages as new? Is it just the file browser or also the folder index too? 2) Are you actually using the right $folder_format setting? Use :set ?folder_format ... to display the current value, when in Mutt. 3) You could try to use a different folder format for testing, eg. Maildir. Maildirs aren't as sensitive as mbox folders and it's easy to also manipulate them from the shell to have a desired "new-ness state" (ie. by moving a message file under the "new" subdir). Is there something else I have to do to get it to work? I assume the check is automatic on entering "browser" mode. It should be automatic, yes, and not require any special actions. Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / Time was invented by an Irish guy named O'Clock.
Re: %N in $folder_format
On Fri, Mar 10, 2000 at 07:53:48PM +0200, Mikko H?nninen wrote: A couple of other things to check that I can think of: 1) When you enter these folders which are supposed to have new mail, does Mutt actually show any messages as new? Is it just the file browser or also the folder index too? Yes, in the index there are messages marked as new. That part of it has always worked. 2) Are you actually using the right $folder_format setting? Use folder_format="%3C %N %-32.32f %-16.16d %s" 3) You could try to use a different folder format for testing, eg. Maildir. Maildirs aren't as sensitive as mbox folders and it's easy to also manipulate them from the shell to have a desired "new-ness state" (ie. by moving a message file under the "new" subdir). Well, I'd prefer not to. I'd rather keep mbox format with no "N" in the browser than have to switch over to Maildir. -- Drew Bloechl [EMAIL PROTECTED]
Re: %N in $folder_format
Mikko Hänninen [EMAIL PROTECTED] wrote on Fri, 10 Mar 2000: that that new mail recognition didn't work unless I set $keep_empty, ... that should, of course, be $save_empty, not $keep_empty. Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / Change is inevitable, except from a vending machine.
Re: %N in $folder_format
Drew Bloechl [EMAIL PROTECTED] wrote: Yes, in the index there are messages marked as new. That part of it has always worked. When reading the folder, Mutt can tell which messages are new, by reading the Status: headers. However, that's only done when opening a folder; when you just want to know if a folder has new mail in it, it's much faster to simply check the time-stamp on the file, for mbox folders. So, Mutt checks the time to determine if it should put an 'N' for that folder. You can check this yourself to see what the system has stored as a time-stamp on the file: ls -l /path/to/folder == This gives you the "modified" time. ls -lu /path/to/folder == This gives you the "accessed" time. If the folder was modified at a later time than it was accessed, the folder is assumed to have new mail in it. Try this yourself on some folders that have had new mail delivered to them, and see if you can figure out why they aren't being set the way Mutt thinks they should be. If the times are showing up as equal, you can use a script like this to print out the exact times: perl -e '@stat = stat("/path/to/mfolder"); print "Mod = $stat[9], Acc = $stat[8]\n";' This prints the exact times, to the second, which you can compare. This is what Mutt actually does. Using this technique, perhaps you can determine what the problem is. -- David DeSimone | "The doctrine of human equality reposes on this: [EMAIL PROTECTED] | that there is no man really clever who has not Hewlett-Packard | found that he is stupid." -- Gilbert K. Chesterson UX WTEC Engineer |PGP: 5B 47 34 9F 3B 9A B0 0D AB A6 15 F1 BB BE 8C 44
Re: %N in $folder_format
On Fri, Mar 10, 2000 at 01:17:12PM -0600, David DeSimone wrote: If the folder was modified at a later time than it was accessed, the folder is assumed to have new mail in it. Try this yourself on some folders that have had new mail delivered to them, and see if you can figure out why they aren't being set the way Mutt thinks they should be. $ ls -l Mail/livid-dev ; ls -lu Mail/livid-dev -rw---1 drew drew 3219213 Mar 10 02:23 Mail/livid-dev -rw---1 drew drew 3219213 Mar 8 12:05 Mail/livid-dev This particular folder has an mtime greater than its atime, but mutt doesn't seem to realize that with or without BUFFY_SIZE. -- Drew Bloechl [EMAIL PROTECTED]
Re: %N in $folder_format
Drew Bloechl [EMAIL PROTECTED] wrote on Fri, 10 Mar 2000: This particular folder has an mtime greater than its atime, but mutt ... I'm at a loss to explain that, but... doesn't seem to realize that with or without BUFFY_SIZE. If you use BUFFY_SIZE, it makes Mutt ignore the access/modification times and only compares folder sizes to detect new mail. (IIRC) Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / Bumper sticker: I brake for no apparent reason.
Re: %N in $folder_format
On Fri, Mar 10, 2000 at 09:10:46PM +0200, Mikko H?nninen wrote: Are these folders where there is new mail but which aren't shown with newly created with new mail, ie. they didn't exist before new mail was added to them by whatever delivery program? I remember once finding that that new mail recognition didn't work unless I set $keep_empty, especially with the --enable-buffy-size option. No, these are fairly old (and large) folders. -- Drew Bloechl [EMAIL PROTECTED]
%N in $folder_format
In my .muttrc I have: set folder_format="%3C %N %-32.32f %-16.16d %s" However, the space with the %N is always blank when I do 'c' and '?' to browse mailboxes. Is there something special I have to do to get this to work? FWIW I'm delivering mail into these folders with procmail. -- Drew Bloechl [EMAIL PROTECTED]
Re: %N in $folder_format
Drew Bloechl wrote: : In my .muttrc I have: : : set folder_format="%3C %N %-32.32f %-16.16d %s" : : However, the space with the %N is always blank when I do 'c' and '?' : to browse mailboxes. Is there something special I have to do to get : this to work? FWIW I'm delivering mail into these folders with : procmail. Your incomming mailbox (mailboxes) is placed on NFS-mounted file system? Try --enable-buffy-size in configure-time. -- Andrew W. Nosenko([EMAIL PROTECTED])
Re: %N in $folder_format
On Fri, Mar 10, 2000 at 12:08:42AM +0200, Andrew W. Nosenko wrote: Drew Bloechl wrote: : In my .muttrc I have: : : set folder_format="%3C %N %-32.32f %-16.16d %s" : : However, the space with the %N is always blank when I do 'c' and '?' : to browse mailboxes. Is there something special I have to do to get : this to work? FWIW I'm delivering mail into these folders with : procmail. Your incomming mailbox (mailboxes) is placed on NFS-mounted file system? Try --enable-buffy-size in configure-time. Nope. Local disk. ~/Mail. -- Drew Bloechl [EMAIL PROTECTED]