Martin Neitzel | 21 Sep 10:13 2010
Picon

format=flowed

Those

	Content-Type: text/plain; format=flowed

emails I receive are driving me more and more nuts.

42 EUR (or whatever that happens to be in your currency)
out of my own pocket for whoever makes nail support
RFC 3676.   28 EUR if you "only" do the RFC 2646 version.

I'm not interested in creating format=flowed emails.  I just
want to be able to read them nicely in nail.

						Martin

PS: No, I'm *not* a fan of format=flawed (or even MIME altogether).
I just am forced to deal with it.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
Perry Hutchison | 24 Sep 02:32 2010

Re: format=flowed

> From: Martin Neitzel <neitzel@...>
> Subject: [nail-devel] format=flowed
>
> Those
> 	Content-Type: text/plain; format=flowed
> emails I receive are driving me more and more nuts.
...
> I'm not interested in creating format=flowed emails.
> I just want to be able to read them nicely in nail.
...
> PS: No, I'm *not* a fan of format=flawed (or even MIME
> altogether).  I just am forced to deal with it.

Dunno when I might have time to look into it in detail, or
even read those RFCs, but for a (very rough) first cut you
could try setting PAGER to point to an executable script
consisting of

  #!/bin/bash
  fmt -80 | less

(replacing /bin/bash with your shell of choice).

Granted it will format the header along with the body, and
it will do this to every message you examine with PAGER set
like that (not just those which specify format=flowed).

The next iteration probably involves looking through the
code for references to PAGER -- these being places where
a message is being displayed --  and applying fmt(1) only
(Continue reading)

neitzel | 24 Sep 05:32 2010
Picon

Re: format=flowed

phutchis@... (Perry Hutchison) wrote:

> for a (very rough) first cut you
> could try setting PAGER to point to an executable script
> consisting of
>
>   #!/bin/bash
>   fmt -80 | less
>
> (replacing /bin/bash with your shell of choice).

Yeah, I do call things like "| 'fmt|less'"  to rescue when things
get too ugly.  You also can get by without an extra script by
doing a
	set PAGER="sh -c 'fmt | less'"
in nail.

"fold -s" actually does a slightly better job.  While it wouldn't
refill "too narrow" paragraphs, it cures those pesky overlong lines
with words wrapping around the screen borders, but keeping lists/tabular
material still as-is.  I get lots of programmed report mails from
cron jobs etc., way more than human prose.

So, setting PAGER indiscriminatelty may not be viable for me.  I'll
give it try, though, and certainly thanks for the reminder!

							Martin

PS:  I already googled for filter implementations for dealing with
format=flowed but wasn't lucky so far .
(Continue reading)


Gmane