Re: flowed text (was: Adding delsp=yes to Content-Type)

2019-08-29 Thread José María Mateos

On Wed, Aug 28, 2019 at 01:37:02PM -0700, Kevin J. McCarthy wrote:
Mutt doesn't add the trailing spaces.  However, if you are replying to 
a flowed message, they won't be removed.  Whether to reflow the quoted 
content is up to you.  There may be some cases where it's not 
appropriate to do so.


This makes sense, now that you mention it. It wouldn't be appropriate to 
automatically reflow code blocks, etc. Thanks for the clarification.


Cheers,

--
José María (Chema) Mateos || https://rinzewind.org/


Re: flowed text (was: Adding delsp=yes to Content-Type)

2019-08-28 Thread Kevin J. McCarthy

On Thu, Aug 22, 2019 at 08:24:30PM -0400, José María Mateos wrote:
I'm back to trying to get flowed mode working for me, but I'm finding 
something funny: mutt is not adding the trailing space to every line 
when quoting.


Mutt doesn't add the trailing spaces.  However, if you are replying to a 
flowed message, they won't be removed.  Whether to reflow the quoted 
content is up to you.  There may be some cases where it's not 
appropriate to do so.


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: flowed text (was: Adding delsp=yes to Content-Type)

2019-08-22 Thread José María Mateos

On Thu, Aug 22, 2019 at 08:24:30PM -0400, José María Mateos wrote:

On Sun, Jul 07, 2019 at 10:02:51AM -0400, José María Mateos wrote:

And, as far as I can tell, this cannot be done correctly with flowed
text. Plus sometimes I send e-mails to lists that need to copy & paste
code and one needs to be extra careful with that. In the end, I didn't
find any obvious advantage to the flowed format (apart from the fact
that, yes, it degrades gracefully when one's reading the e-mail on a
phone or something like that) and I went back to this option.


I'm back to trying to get flowed mode working for me, but I'm finding
something funny: mutt is not adding the trailing space to every line when
quoting. I would have assumed this is done automatically, should I use
my editor to reformat the relevant quotations again?


And on top of that I forgot to set the proper vim variables to add 
trailing spaces to my own lines, so obviously my previous message didn't 
flow at all.


Cheers,

--
José María (Chema) Mateos || https://rinzewind.org


Re: flowed text (was: Adding delsp=yes to Content-Type)

2019-08-22 Thread José María Mateos

On Sun, Jul 07, 2019 at 10:02:51AM -0400, José María Mateos wrote:

And, as far as I can tell, this cannot be done correctly with flowed
text. Plus sometimes I send e-mails to lists that need to copy & paste
code and one needs to be extra careful with that. In the end, I didn't
find any obvious advantage to the flowed format (apart from the fact
that, yes, it degrades gracefully when one's reading the e-mail on a
phone or something like that) and I went back to this option.


I'm back to trying to get flowed mode working for me, but I'm finding
something funny: mutt is not adding the trailing space to every line when
quoting. I would have assumed this is done automatically, should I use
my editor to reformat the relevant quotations again?

Cheers,

--
José María (Chema) Mateos || https://rinzewind.org


Re: [Mutt] flowed text (was: Adding delsp=yes to Content-Type)

2019-07-07 Thread Mihai Lazarescu

On Sunday, July 07, 2019 at 10:02:51 -0400, José María Mateos wrote:


I stopped using flowed format because I like doing stuff like this:

1. A list, in which the paragraph gets aligned to the first letter of
  the block, so it's more noticeable. Otherwise it just looks like a
  regular paragraph with a number at the beginning.


For this I use the external formatting program wrapped in a 
script which can add or strip spaces at the end of lines based 
on the shortcut I use.


Bottom line, just by selecting the formatting shortcut I 
can easily strip spaces at the end of line in pre-formatted 
paragraphs as the one above to prevent their reflowing.



Plus sometimes I send e-mails to lists that need to copy &
paste code and one needs to be extra careful with that.


For this I have a shortcut that toggles vim paste mode.

Mihai


Re: flowed text (was: Adding delsp=yes to Content-Type)

2019-07-07 Thread José María Mateos
On Sun, Jul 07, 2019 at 09:59:15AM +1000, Cameron Simpson wrote:

> I'm curious about your experiments with composing flowed text. I'm
> using vim invoked thus:
> 
>  vim \
>  -c 'silent 1,/^$/s/  *$//' \
>  -c 'set filetype=mail' \
>  -c 'set formatoptions=waqj'
> 
> which produces a ... workable experience. It is a little prone to
> minor breakage and I do go back to check for the trailing spaces used
> to mark flowed lines.
>
> I'd be happy to find improvements.
>
> What did you try, and how did it fail? What was good?

Right now this is my vim configuration for mail (not flowed, but 
fixed-with):

setl tw=72
setl fo=watqj
setl nojs
setl nosmartindent
setl noautoindent
" Mark trailing spaces, so we know we are doing flowed format right
"match ErrorMsg '\s\+$'
" Better way
"setl list
set formatprg=par\ 72q

Right now this makes for a quite pleasant experience too; I have to 
reflow replies manually so that par does its magic, but that's fine. I 
stopped using flowed format because I like doing stuff like this:

1. A list, in which the paragraph gets aligned to the first letter of 
   the block, so it's more noticeable. Otherwise it just looks like a 
   regular paragraph with a number at the beginning.

And, as far as I can tell, this cannot be done correctly with flowed 
text. Plus sometimes I send e-mails to lists that need to copy & paste 
code and one needs to be extra careful with that. In the end, I didn't 
find any obvious advantage to the flowed format (apart from the fact 
that, yes, it degrades gracefully when one's reading the e-mail on a 
phone or something like that) and I went back to this option.

Cheers,

-- 
José María (Chema) Mateos || https://rinzewind.org/


flowed text (was: Adding delsp=yes to Content-Type)

2019-07-06 Thread Cameron Simpson

On 06Jul2019 10:39, José María Mateos  wrote:

On Sat, Jul 06, 2019 at 12:41:21AM -0400, sunnycemet...@gmail.com wrote:

Hopefully this message body flowed well for you.  ;)


It did flow well for me. Now I'm curious: I tried to get flowed messages
working for me but in the end I gave up because I couldn't compose
indented blocks as I like, so I went back to fixed width format.


I'm curious about your experiments with composing flowed text. I'm using 
vim invoked thus:


 vim \
 -c 'silent 1,/^$/s/  *$//' \
 -c 'set filetype=mail' \
 -c 'set formatoptions=waqj'

which produces a ... workable experience. It is a little prone to minor 
breakage and I do go back to check for the trailing spaces used to mark 
flowed lines.


I'd be happy to find improvements.

What did you try, and how did it fail? What was good?

Cheers,
Cameron Simpson