Jerry Peek | 2 Jun 2005 06:43
Gravatar

Useful article: "Rendering Everything as Text"

Though this article covers mutt instead of nmh, some techniques apply:

   http://www.linuxdevcenter.com/pub/a/linux/2005/05/26/textonly.html

It's about viewing HTML, graphics, and Word files in a terminal.

Jerry
--

-- 
Jerry Peek, jpeek <at> jpeek.com, http://www.jpeek.com/

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

Jerrad Pierce | 3 Jun 2005 11:05
Picon
Favicon

BUG: arg order not respected

given
	show 107 96

show shows 96 and then 107, instead of respecting the order provided.
--

-- 
H4sICNoBwDoAA3NpZwA9jbsNwDAIRHumuC4NklvXTOD0KSJEnwU8fHz4Q8M9i3sGzkS7BBrm
OkCTwsycb4S3DloZuMIYeXpLFqw5LaMhXC2ymhreVXNWMw9YGuAYdfmAbwomoPSyFJuFn2x8
Opr8bBBidccAAAA=
--
MOTD on Prickle-Prickle, the 8th of Confusion, in the YOLD 3171:
Gimme a J, gimme an E, gimme an R, gimme another, gimme an A, gimme a D What's that spell? Jeranotherad! Yay!

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

Jerrad Pierce | 3 Jun 2005 11:14
Picon
Favicon

BUG: cur updated too early on show

If I

   show all

and quit "prematurely" cur is now last, and not the file being displayed when
I quit (or even the cur before I quit). This is probably due to an optimization
to pass the expanded sequence all to the pager to avoid multiple invocations.
Most pagers are light weight and this is usually not a problem on modern
systems. I, however have no easy solution.
--

-- 
H4sICNoBwDoAA3NpZwA9jbsNwDAIRHumuC4NklvXTOD0KSJEnwU8fHz4Q8M9i3sGzkS7BBrm
OkCTwsycb4S3DloZuMIYeXpLFqw5LaMhXC2ymhreVXNWMw9YGuAYdfmAbwomoPSyFJuFn2x8
Opr8bBBidccAAAA=
--
MOTD on Prickle-Prickle, the 8th of Confusion, in the YOLD 3171:
Gimme a J, gimme an E, gimme an R, gimme another, gimme an A, gimme a D What's that spell? Jeranotherad! Yay!

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

Neil W Rickert | 4 Jun 2005 16:23
Favicon

Re: BUG: arg order not respected

Jerrad Pierce <belg4mit <at> MIT.EDU> wrote on Jun 3, 2005:

>given
>	show 107 96

>show shows 96 and then 107, instead of respecting the order provided.

That's a feature, not a bug.

Similarly,

	show 107 96 107

will only show 107 once.  The message list is always sorted, and
duplicated removed, before any use is made of it.

 -NWR

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

Bill Wohler | 4 Jun 2005 18:49
Picon
Picon
Gravatar

Re: BUG: arg order not respected

Neil W Rickert <rickert+nmh <at> cs.niu.edu> writes:

> Jerrad Pierce <belg4mit <at> MIT.EDU> wrote on Jun 3, 2005:
>
>>given
>>	show 107 96
>
>>show shows 96 and then 107, instead of respecting the order provided.
>
> That's a feature, not a bug.
>
> Similarly,
>
> 	show 107 96 107
>
> will only show 107 once.  The message list is always sorted, and
> duplicated removed, before any use is made of it.

Interestingly, although I know this is a feature as well, I could not
find it documented in the show, scan (where it would also apply), or
mh man pages. However, the uniqueness is documented in the mh-sequence
man page:

  Repeated specifications of the same message have the same effect as
  a single specification of the message.

--

-- 
Bill Wohler <wohler <at> newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.
(Continue reading)

Jon Steinhart | 4 Jun 2005 18:53

Re: BUG: arg order not respected

> given
> 	show 107 96
> 
> show shows 96 and then 107, instead of respecting the order provided.

This is not a bug, it's just the way it works.

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

Bill Wohler | 4 Jun 2005 19:36
Picon
Picon
Gravatar

Re: BUG: cur updated too early on show

Jerrad Pierce <belg4mit <at> MIT.EDU> writes:

> If I
>
>    show all
>
> and quit "prematurely" cur is now last, and not the file being displayed when
> I quit (or even the cur before I quit). This is probably due to an optimization
> to pass the expanded sequence all to the pager to avoid multiple invocations.
> Most pagers are light weight and this is usually not a problem on modern
> systems. I, however have no easy solution.

show works as documented:

    CONTEXT
           If a folder is given, it will become the current folder.
           The last message shown will become the current message.

As far as show is concerned, it has shown the last message since it
passed them all to the showproc.

You can achieve the behavior you want by calling show individually on
each message in the sequence with the following script:

   msgs=$ <at> 
   for i in `scan -format '%(msg)' $msgs`; do show $i; done

--

-- 
Bill Wohler <wohler <at> newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
(Continue reading)

pmaydell | 5 Jun 2005 11:46
Picon

Re: BUG: cur updated too early on show

Jerrad Pierce wrote:
>If I   show all
>and quit "prematurely" cur is now last, and not the file being displayed when
>I quit (or even the cur before I quit).

The 'unseen' sequence is similarly affected, which I've always
found mildly annoying (it's much harder to recreate from memory than
cur, for a start...)

-- PMM

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

Ralph Corderoy | 5 Jun 2005 15:23
Picon

Re: BUG: arg order not respected


Hi Jerrad,

> given
> 	show 107 96
> 
> show shows 96 and then 107, instead of respecting the order provided.

I've found this annoying occasionally too;  and there's no option to
turn it off.

Instead, I either use multiple shows, or refile, maybe with -link, into
another (temporary) folder so I can get them in the order I want.

Cheers,

Ralph.

_______________________________________________
Nmh-workers mailing list
Nmh-workers <at> nongnu.org
http://lists.nongnu.org/mailman/listinfo/nmh-workers


Gmane