Re: [RFC] [PATCH v1 0/2] Improve the display of headers.

2017-01-05 Thread Servilio Afre Puentes
Hi David,

I like the idea of aligning the headers, but won't padding with spaces
from the left break code that expects at the beginning of the line?

Servilio
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: [RFC] [PATCH v1 0/2] Improve the display of headers.

2017-01-05 Thread David Edmondson
On Thu, Jan 05 2017, Servilio Afre Puentes wrote:

> I like the idea of aligning the headers, but won't padding with spaces
> from the left break code that expects at the beginning of the line?

It would. Do you know of such code? The one piece that I noticed (that
coloured the headers) I re-worked.
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


format-flowed in compose mode

2017-01-05 Thread david wen riccardi-zhu
I'm not a developer and I'm still rather new to Emacs.

Also, as far as I understand, notmuch uses gnus for compose mode.

But I'm stuck and wondering if anyone has a solution:

When sending mail from Emacs, the text does not appear to respect line
breaks when read on a mobile phone. Instead, there appear to be random
line breaks in the text, which makes reading emails rather frustrating.

My understanding is that some time ago, an RFC was passed to make email
compatible for viewing on mobile devices. This solution is
format=flowed. For background, see: http://joeclark.org/ffaq.html

I've been trying to implement this solution in gnus, but haven't come across a 
solution.

Google suggests I'm not the only one experiencing this issue, see:
http://stackoverflow.com/questions/41299350/how-can-i-send-messages-with-format-flowed-with-the-notmuch-message-client
https://www.reddit.com/r/emacs/comments/55ydkd/gnus_and_formatflowed/

The EmacsWiki has a page on gnus and format=flowed, but I've found it pretty 
hard to decipher:
https://www.emacswiki.org/emacs/GnusFormatFlowed.

The wiki suggests that format-flowed is enabled in gnus, which doesn't
seem to make sense with my experience so far.

It also suggests that "if you want dynamic reflowing, simply unfold encoded
lines to full length and setup article buffers to wrap."

I have no idea what this means (see the reddit thread for more
confusion).

It also seems to suggest using use-hard-newlines, while at the same time
suggesting that it makes no difference. I actually gave this a shot, and
the wiki was right: it made no difference.

My only remaining lead is that perhaps the issue isn't with gnus at all,
but with my smtp client, msmtp. See:
https://github.com/djcb/mu/issues/569. It's from the mu github, but
assuming mu4e also uses gnus and/or doesn't "send the mail", then perhaps
that's a potential answer.

To recap:
1. If notmuch handles composition, then this is either a bug report or a
feature request.
2. If notmuch does not handle composition, I'd appreciate insight from
anyone who has managed to resolve this issue.
3. Or, any hints as to whether it's worth sending this email to the
gnus/emacs/msmtp mailing lists.

Thanks!

David

-- 
dwrz|朱为文
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


[BUG] notmuch-emacs highlights '>' quoted wrapped lines incorrectly

2017-01-05 Thread Jani Nikula

When the show view in notmuch-emacs highlights quoted text, any long,
folded lines in quotes prefixed using '>' fail to be highlighted. Quotes
prefixed using '> ' work fine. See below.

BR,
Jani.


Quoting using '> ' works fine:
> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
> tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
> veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea 
> commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
> velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat 
> cupidatat non proident, sunt in culpa qui officia deserunt
> mollit anim id est laborum.

Quoting using '>' highlights any wrapped lines incorrectly:
>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 
>incididunt ut labore et dolore magna aliqua. Ut enim ad minim
>veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea 
>commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
>velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat 
>cupidatat non proident, sunt in culpa qui officia deserunt
>mollit anim id est laborum.

___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: [BUG] notmuch-emacs highlights '>' quoted wrapped lines incorrectly

2017-01-05 Thread David Edmondson
On Thu, Jan 05 2017, Jani Nikula wrote:

> When the show view in notmuch-emacs highlights quoted text, any long,
> folded lines in quotes prefixed using '>' fail to be highlighted. Quotes
> prefixed using '> ' work fine. See below.

Maybe fiddle with `coolj-line-prefix-regexp', which is "^\\(>+ \\)*" by
default (note the space).

"^\\(>+ ?\\)*" gets it working, but I didn't think through all of the
consequences.

> BR,
> Jani.
>
>
> Quoting using '> ' works fine:
>> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
>> tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
>> veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea 
>> commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
>> velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat 
>> cupidatat non proident, sunt in culpa qui officia deserunt
>> mollit anim id est laborum.
>
> Quoting using '>' highlights any wrapped lines incorrectly:
>>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
>>tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
>>veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea 
>>commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
>>velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat 
>>cupidatat non proident, sunt in culpa qui officia deserunt
>>mollit anim id est laborum.
>
> ___
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch


Re: format-flowed in compose mode

2017-01-05 Thread David Bremner
david wen riccardi-zhu  writes:
>
> To recap:
> 1. If notmuch handles composition, then this is either a bug report or a
> feature request.
> 2. If notmuch does not handle composition, I'd appreciate insight from
> anyone who has managed to resolve this issue.

Notmuch uses message-mode (from gnus) to compose messages. So in
principle if you can figure out how to do what you want in Gnus, the
same settings should work in notmuch. I don't have any experience with
format=flowed, but there is some (somewhat terse) discussion in the
message-mode manual

https://www.gnu.org/software/emacs/manual/html_node/emacs-mime/Flowed-text.html#Flowed-text

Good luck,

David
___
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch