Re: Trouble getting indicator to point to first message

2000-03-21 Thread Aleksey Tsalolikhin

On Tue, Mar 21, 2000 at 01:45:53PM +0100, Gero Treuner wrote:
> On Mon, Mar 20, 2000 at 03:39:20PM -0500, David T-G wrote:
> > ...and then Mikko Hänninen said...
> > % Not really an option, but a supported method would be to set up a
> > % folder hook in your .muttrc, which matches all folders:
> > % 
> > %   folder-hook . 'push "1"'
> 
> If Aleksey meant to start with the "oldest" new message, then use
> 
>   folder-hook . 'push "1\n"'

Nope, I meant to start with the oldest message, period.  I'm clearing
a backlog. ;)

Yours fondly,
-at



Re: Trouble getting indicator to point to first message

2000-03-21 Thread Gero Treuner

On Mon, Mar 20, 2000 at 03:39:20PM -0500, David T-G wrote:
> ...and then Mikko Hänninen said...
> % Not really an option, but a supported method would be to set up a
> % folder hook in your .muttrc, which matches all folders:
> % 
> %   folder-hook . 'push "1"'

If Aleksey meant to start with the "oldest" new message, then use

  folder-hook . 'push "1\n"'

> This is all I could come up with, too, but it's IMHO a kludge.

I vaguely remember to have seen code to suppress screen updates while
executing macros. Maybe the case of a fresh opened mailbox had been
forgotten? It's in the source ...


Gero



Re: Trouble getting indicator to point to first message

2000-03-21 Thread Greg Matheson

On Tue, Mar 21, 2000 at 07:52:00AM +0100, Byrial Jensen wrote:

> I would prefer to name the jump function directly instead of
> relying on the key binding of "1":

> folder-hook . 'push 1'

Thanks for that. I had some macros to get back to the appropriate
mailbox in the mailbox screen when I exit from the index, but
they involved writing to a file and reading from it. With folder
hooks, they become like this:

folder-hook =ttl 'macro index h c?\t":e exec jump\n4"\n'\n
folder-hook =mua 'macro index h c?\t":e exec jump\n5"\n'\n

I don't know why the :e exec is necessary, but it is working and
if I have just :exec it doesn't work. I couldn't get it working
with the angle bracket notation.

-- 
Greg Matheson Practitioners just do it. Reflective
Chinmin College, Taiwan   practitioners just think they did it. 
[EMAIL PROTECTED]



Re: Trouble getting indicator to point to first message

2000-03-20 Thread Byrial Jensen

On Mon, Mar 20, 2000 at 15:39:20 -0500, David T-G wrote:
> Do I incorrectly remember a point_new variable that would cause mutt to
> jump to the first new message, which is what most people want anyway but
> some don't, which is now obviously not there?  Or did I make it up? :-)

I'm not sure, but I think that there once was such a variable which
was considered superfluous and removed.

-- 
Byrial



Re: Trouble getting indicator to point to first message

2000-03-20 Thread Byrial Jensen

On Mon, Mar 20, 2000 at 22:52:31 +0200, Mikko Hänninen wrote:
> 
> Why is it a kludge?  It works, it's quite simple, and it doesn't seem to
> add a significant overhead in the folder processing..  Maybe that you
> need to use "push" is a bit kludgey, since I couldn't figure out a way
> to invoke the jump function without it (I get "jump: unknown command"
> and ": unknown command").

I would prefer to name the jump function directly instead of
relying on the key binding of "1":

folder-hook . 'push 1'

or just as David DeSimone suggested:

folder-hook . 'push '

-- 
Byrial



Re: Trouble getting indicator to point to first message

2000-03-20 Thread Byrial Jensen

On Mon, Mar 20, 2000 at 17:22:01 -0500, David T-G wrote:
> Well, it's noticeable to me; mutt opens up the folder, paints the index,
> and then has to re-paint it from message 1.  Even with "modern" fast
> dialup lines, which don't always apply even for me here in the states,
> it's quite noticeable.

> It just seems to me that there should be a way to not point to the first
> new message if you don't want to.

With the source everything is possible. :-)

One way is to edit curs_main.c, find the function ci_first_message(),
delete all code lines but the last so the function looks like this:

static int ci_first_message (void)
{
  return 0;
}

Then recompile and be happy.

-- 
Byrial



Re: Trouble getting indicator to point to first message

2000-03-20 Thread David DeSimone

Mikko Hänninen <[EMAIL PROTECTED]> wrote:
>
> folder-hook .  'push "1"'

A bit more efficient:

folder-hook .  'push '

-- 
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: Trouble getting indicator to point to first message

2000-03-20 Thread Mikko Hänninen

David T-G <[EMAIL PROTECTED]> wrote on Mon, 20 Mar 2000:
> Well, it's noticeable to me; mutt opens up the folder, paints the index,
> and then has to re-paint it from message 1.  Even with "modern" fast
> dialup lines, which don't always apply even for me here in the states,
> it's quite noticeable.

Okay, then I agree you have a point here.  I guess I've just been
spoiled by not having to use remote access over dialup modem connections
at all in about 1.5 years...

> It just seems to me that there should be a way to not point to the first
> new message if you don't want to.

True, although the desire to do so seems to be quite rare.

> Since I signed on at in the 0.88 days, I must have made it up entirely.
> Bummer; I was sure it was there :-)

Maybe it was a patch...  Or my grep may have missed it.


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 /
"If you're not impossible to tolerate, you're not trying hard enough."



Re: Trouble getting indicator to point to first message

2000-03-20 Thread David T-G

Mikko --

...and then Mikko Hänninen said...
% David T-G <[EMAIL PROTECTED]> wrote on Mon, 20 Mar 2000:
% > %   folder-hook . 'push "1"'
% > 
% > This is all I could come up with, too, but it's IMHO a kludge.
% 
% Why is it a kludge?  It works, it's quite simple, and it doesn't seem to
% add a significant overhead in the folder processing..  Maybe that you

Well, it's noticeable to me; mutt opens up the folder, paints the index,
and then has to re-paint it from message 1.  Even with "modern" fast
dialup lines, which don't always apply even for me here in the states,
it's quite noticeable.


% need to use "push" is a bit kludgey, since I couldn't figure out a way
% to invoke the jump function without it (I get "jump: unknown command"
% and ": unknown command").

It just seems to me that there should be a way to not point to the first
new message if you don't want to.


% 
% > Do I incorrectly remember a point_new variable that would cause mutt to
% > jump to the first new message, which is what most people want anyway but
% > some don't, which is now obviously not there?  Or did I make it up? :-)
% 
% Well, at least on my 1.1.9 I get "point_new: unknown variable" when I
% try to do ":set ?point_new"...  And a quick grep from all the manuals
% I had (going back to version 0.85) didn't turn up anything either.

Since I signed on at in the 0.88 days, I must have made it up entirely.
Bummer; I was sure it was there :-)


% 
% 
% Regards,
% Mikko


:-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.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: Trouble getting indicator to point to first message

2000-03-20 Thread Mikko Hänninen

David T-G <[EMAIL PROTECTED]> wrote on Mon, 20 Mar 2000:
> %   folder-hook . 'push "1"'
> 
> This is all I could come up with, too, but it's IMHO a kludge.

Why is it a kludge?  It works, it's quite simple, and it doesn't seem to
add a significant overhead in the folder processing..  Maybe that you
need to use "push" is a bit kludgey, since I couldn't figure out a way
to invoke the jump function without it (I get "jump: unknown command"
and ": unknown command").

> Do I incorrectly remember a point_new variable that would cause mutt to
> jump to the first new message, which is what most people want anyway but
> some don't, which is now obviously not there?  Or did I make it up? :-)

Well, at least on my 1.1.9 I get "point_new: unknown variable" when I
try to do ":set ?point_new"...  And a quick grep from all the manuals
I had (going back to version 0.85) didn't turn up anything either.


Regards,
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 /
There is nothing in the world stronger than gentleness.



Re: Trouble getting indicator to point to first message

2000-03-20 Thread David T-G

Hi, folks --

...and then Mikko Hänninen said...
% Aleksey Tsalolikhin <[EMAIL PROTECTED]> wrote on Mon, 20 Mar 2000:
% > of message 1 when I start mutt.  Is there an option to have
% > the indicator go to message 1 at startup that I've missed
% 
% Not really an option, but a supported method would be to set up a
% folder hook in your .muttrc, which matches all folders:
% 
%   folder-hook . 'push "1"'

This is all I could come up with, too, but it's IMHO a kludge.

Do I incorrectly remember a point_new variable that would cause mutt to
jump to the first new message, which is what most people want anyway but
some don't, which is now obviously not there?  Or did I make it up? :-)


:-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.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: Trouble getting indicator to point to first message

2000-03-20 Thread Mikko Hänninen

Aleksey Tsalolikhin <[EMAIL PROTECTED]> wrote on Mon, 20 Mar 2000:
>   However, the indicator goes to message 300, instead
> of message 1 when I start mutt.  Is there an option to have
> the indicator go to message 1 at startup that I've missed
> in the manual? If not, is there any other way to accomplish
> this, please?

Not really an option, but a supported method would be to set up a
folder hook in your .muttrc, which matches all folders:

  folder-hook . 'push "1"'

Seemed to work fine when I quickly tested that just now.


Hope this helps,
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 /
Support bacteria -- it's the only culture some people have.



Trouble getting indicator to point to first message

2000-03-20 Thread Aleksey Tsalolikhin

Hi,

I want to read my mail FIFO (ie oldest mail first).
I don't have any "set sort" commands in my .muttrc, so
mutt's defaulting to "date", which is just fine.

However, the indicator goes to message 300, instead
of message 1 when I start mutt.  Is there an option to have
the indicator go to message 1 at startup that I've missed
in the manual? If not, is there any other way to accomplish
this, please?

$ mutt -v
Mutt 1.0.1i (2000-01-18)
Copyright (C) 1996-2000 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: SunOS 5.6 [using slang 10400]
Compile options:
-DOMAIN
-HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  -USE_FCNTL  -USE_FLOCK
-USE_IMAP  -USE_POP  -HAVE_REGCOMP  +USE_GNU_REGEX  +HAVE_COLOR  
-BUFFY_SIZE 
-EXACT_ADDRESS  +ENABLE_NLS
SENDMAIL="/usr/lib/sendmail"
MAILPATH="/var/mail"
SHAREDIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
ISPELL="/usr/local/bin/ispell"
To contact the developers, please mail to <[EMAIL PROTECTED]>.
$ uname -a
SunOS tashkent 5.6 Generic_105181-16 sun4u sparc SUNW,Ultra-5_10
$

Sincerely Yours,
Aleksey Tsalolikhin