Re: printf like sequences for folder_format

2000-05-12 Thread Christian Ordig

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

2000-05-11 Thread Marius Gedminas

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

2000-05-11 Thread Mikko Hänninen

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

2000-05-10 Thread Christian Ordig

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

2000-05-10 Thread Christian Ordig

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

2000-05-10 Thread Marius Gedminas

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."