Re: mailboxes w/ human readable file sizes

2002-07-22 Thread David T-G

Jens --

...and then Jens Porup said...
% 
%  
%... %?M?#%03M(%3c)? ...
%  
% 
% ummwhat does all gobbledegook up there mean? I'd say it looked like

Heh :-)  As Rocco said, it's explained in the manual.


% Perl, except for I know Perl, and that isn't. (I am not conversant in
% the source code for mutt, I'm just a mutt user.)

Let's break it apart.

  ...   # the leading-up-to-this part of $index_fmt
  %?# a conditional flag: decide what to print ...
M   # ... based on %M (the number of msgs if collapsed)
  ? # if this is a collapsed tree, then
#%03M # print  and 3-digit count of messages and 
   # else
(%3c)   # print ( and 3-digit char-based size of message and )
  ? # end the conditional
  ...   # the after-this remaining part of $index_fmt

So I was, with some obfuscation, pointing to the %3c part, because you
may recall that we were discussing that the browser doesn't show K or M
but the index does.


% 
% I am mostly concerned about knowing how much disk usage I am using up
% for my mailboxes on the mail server, and this is much more easily 
% learned by a quick glance at human readable format sizes in K and M,
% rather than raw data in bytes.

You can probably get a better picture of that from the command line than
within mutt.  mutt isn't a file manager.


% 
% From the three responses to this question I've seen so far, two say
% it's possible with lots of gobbledegook, and one says it isn't possible
% and that I can fix it with a source code modification. In either event,
% could someone point me in the direction of a resource to learn how to
% do either?

When you finally do find it, please let us know.  I'd be quite interested
in such gobbledegook for the browser; it sounds like a nifty feature.


% 
% Regards,
% 
% Jens


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!




msg29787/pgp0.pgp
Description: PGP signature


Re: mailboxes w/ human readable file sizes

2002-07-19 Thread Gregor Zattler

Hi Jens,
* Jens Porup [EMAIL PROTECTED] [19. Jul. 2002]:
 
 I'd like to configure my mutt so that when I change mailboxes,
 it gives me the mailbox sizes in human readable format, like
 the -h flag in ls, for example. Size in bytes isn't particularly
 meaningful.
 
 Any suggestions? Is this possible in mutt?

I have:
set index_format=%4C|%Z|%-2.2[%a]-%[%d.%m.%y-%H:%M]|%-20.20n|%4c|%s
  ^^^

in my .muttrc. By default mutt is configured with a %4l which
gives the number of lines.

Ciao, Gregor
-- 
The future is here. It's just not widely distributed yet.
-- William Gibson



Re: mailboxes w/ human readable file sizes

2002-07-19 Thread David T-G

Jens --

...and then Jens Porup said...
% 
% I'd like to configure my mutt so that when I change mailboxes,
% it gives me the mailbox sizes in human readable format, like

Sounds like a good idea.


% the -h flag in ls, for example. Size in bytes isn't particularly
% meaningful.

Interesting...  I use

  ... %?M?#%03M(%3c)? ...

in my $index_fmt and it *does* shift to K or even M as messages get
bigger.  I'm a bit surprised that the browser doesn't behave the same
way.


% 
% Any suggestions? Is this possible in mutt?

Not at the moment, but there's a huge opportunity for a patch just
waiting to be taken ;-)


% 
% Jens
% [EMAIL PROTECTED]


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!




msg29772/pgp0.pgp
Description: PGP signature


mailboxes w/ human readable file sizes

2002-07-18 Thread Jens Porup


I'd like to configure my mutt so that when I change mailboxes,
it gives me the mailbox sizes in human readable format, like
the -h flag in ls, for example. Size in bytes isn't particularly
meaningful.

Any suggestions? Is this possible in mutt?

Jens
[EMAIL PROTECTED]