Re: trouble making my "messages needing a reply" pattern

2021-02-07 Thread Kevin J. McCarthy

On Mon, Feb 08, 2021 at 12:49:32PM +1100, Cameron Simpson wrote:

I've winnowed my failing pattern down to

   ~( !~>(~P) )

which is not accepted. A bare:


I think this is from a small bug with trailing whitespace inside 
parentheses.  Try

  ~(!~>(~P))

I'll work on fixing that quirk.

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


signature.asc
Description: PGP signature


trouble making my "messages needing a reply" pattern

2021-02-07 Thread Cameron Simpson
I've winnowed my failing pattern down to

~( !~>(~P) )

which is not accepted. A bare:

!~>(~P)

is accepted.

What I'm trying to do is colour yellow messages in threads which are 
either:
- flagged
or:
- personal, and not replied, and not from %info, and without an 
  immediate child from me

This is part of a larger pattern which tries to colour "bare" messages 
like the above and also collapsed threads which contain a message 
matching the above.

As an aside, in the patterns section of the manual ~Q is described as 
"replied", but seems to mean "has the replied flag". Conversely, ~>(~P) 
means replied-to-by-me, which is a topological test based on 
parent-child relationships and ignored the "r" flag.

I'm just modifying my reply macros to preemptively set the "r" flag on 
the source message, which feels a little like a hack. (My replies spin 
off an editor in tmux so that they can be detached, and the spawned mutt 
doesn't know about the source message directly, so it cannot tie setting 
the flag to actually dispatching the message later.)

Cheers,
Cameron Simpson 


Re: My experiences with Mutt to date: Suggestions for overcoming some issues

2021-02-07 Thread Richard Z
On Sun, Jan 24, 2021 at 10:04:50PM -0600, boB Stepp wrote:

> 1)  Mutt erratically loses connection with Gmail and I have to
> manually reconnect.  Sometimes this happens rather frequently as in
> multiple instances within an hour.  I am confident it is not my
> Internet connection, which is normally quite stable and fast.  For
> instance my streaming music is never interrupted, the family's TV
> shows continue unimpeded, etc., but my connectivity to Gmail is
> interrupted randomly.  If I have both Mutt and the web interface open,
> Mutt has its interruptions while the Gmail web interface appears to be
> updating normally.

Had the same problem, tried lowering imap_keepalive which didn't fix it
but apparently the combination

set imap_keepalive=180
set timeout=180

fixed it for me. Have one remaining problem - if sending an mail using
builtin SMTP takes long the imap connection is lost anyway.
However I use external SMTP programs most of the times.

Richard


Re: How to generate html mime message?

2021-02-07 Thread Peng Yu
I just want to generate the HTML mine message. The instruction
requires the set up of mutt, which I want to avoid. Is
`bin/plain2html` for generating HTML mime message from a plain text?
Can you make the plain2html module installable so that the following
command will work? Thanks.

$ bin/plain2html
Traceback (most recent call last):
  File "bin/plain2html", line 36, in 
from plain2html import settings
ModuleNotFoundError: No module named 'plain2html'


On 2/7/21, Amit Ramon  wrote:
> Hello Peng,
>
> While this might not be the answer for how to use pandoc, it is an answer
> to the question in the subject, so I hope it's right.
>
> I'm the author of https://github.com/amitramon/plainMail2HTML - this
> is a simple tool that allows for generating HTML mime part from any
> email sent from Mutt. Perhaps you'll find it useful.
>
> Cheers,
>
> Amit
>
> Peng Yu  [2021-02-07 09:26 -0600]:
>
>>Hi,
>>
>>https://unix.stackexchange.com/questions/108485/send-email-written-in-markdown-using-mutt
>>
>>I see the following muttrc command is used to compose an HTML message
>>on the above URL. I just want to inspect the mime message in the
>>command line without using the GUI.
>>
>>macro compose \e5 "F pandoc -s -f markdown -t html \ny^T^Utext/html;
>>charset=utf-8\n"
>>set wait_key=no
>>
>>Could anybody let me know how to create the mime message using mutt
>>given an html file already generated by pandoc from markdown?
>>
>>I understand "html; charset=utf-8" is to set the following Content-Type.
>>
>>Content-Type: text/html; charset=UTF-8
>>
>>But what does "y^T^U" do?
>>
>>--
>>Regards,
>>Peng
>
> --
>


-- 
Regards,
Peng


Re: How to generate html mime message?

2021-02-07 Thread Amit Ramon

Hello Peng,

While this might not be the answer for how to use pandoc, it is an answer
to the question in the subject, so I hope it's right.

I'm the author of https://github.com/amitramon/plainMail2HTML - this
is a simple tool that allows for generating HTML mime part from any
email sent from Mutt. Perhaps you'll find it useful.

Cheers,

Amit

Peng Yu  [2021-02-07 09:26 -0600]:


Hi,

https://unix.stackexchange.com/questions/108485/send-email-written-in-markdown-using-mutt

I see the following muttrc command is used to compose an HTML message
on the above URL. I just want to inspect the mime message in the
command line without using the GUI.

macro compose \e5 "F pandoc -s -f markdown -t html \ny^T^Utext/html;
charset=utf-8\n"
set wait_key=no

Could anybody let me know how to create the mime message using mutt
given an html file already generated by pandoc from markdown?

I understand "html; charset=utf-8" is to set the following Content-Type.

Content-Type: text/html; charset=UTF-8

But what does "y^T^U" do?

--
Regards,
Peng


--


Re: How to generate html mime message?

2021-02-07 Thread Jakub Jindra

Hi Peng,

the y^T^U means:

The first "command" of the macro is `F` which is default binding for  
. This is how You process message through pandoc and it 
asks a question about overwriting the original message in tempfile 
that's why there's a `y` to confirm the question. When you execute it on 
your own you'll see:


WARNING!  You are about to overwrite /path/to/tmpmailefile continue?  
([no]/yes):

`^T` is default key binding for 

`^U` is readline default binding to kill line (basically remove original 
content of Content-type)


It is be easier to read and more portable when You replace key bindings 
for the functions:

```
macro compose \e5 \
"pandoc -s -f markdown -t html\
text/html; charset=utf-8"

```

Best,
Jakub

On 2021-02-07 09:26, Peng Yu wrote:

Hi,

https://unix.stackexchange.com/questions/108485/send-email-written-in-markdown-using-mutt

I see the following muttrc command is used to compose an HTML message
on the above URL. I just want to inspect the mime message in the
command line without using the GUI.

macro compose \e5 "F pandoc -s -f markdown -t html \ny^T^Utext/html;
charset=utf-8\n"
set wait_key=no

Could anybody let me know how to create the mime message using mutt
given an html file already generated by pandoc from markdown?

I understand "html; charset=utf-8" is to set the following Content-Type.

Content-Type: text/html; charset=UTF-8

But what does "y^T^U" do?

--
Regards,
Peng


--
Jakub Jindra


signature.asc
Description: PGP signature


How to generate html mime message?

2021-02-07 Thread Peng Yu
Hi,

https://unix.stackexchange.com/questions/108485/send-email-written-in-markdown-using-mutt

I see the following muttrc command is used to compose an HTML message
on the above URL. I just want to inspect the mime message in the
command line without using the GUI.

macro compose \e5 "F pandoc -s -f markdown -t html \ny^T^Utext/html;
charset=utf-8\n"
set wait_key=no

Could anybody let me know how to create the mime message using mutt
given an html file already generated by pandoc from markdown?

I understand "html; charset=utf-8" is to set the following Content-Type.

Content-Type: text/html; charset=UTF-8

But what does "y^T^U" do?

-- 
Regards,
Peng


Passphrase error

2021-02-07 Thread Rob Pyott
Hello Mutt team!

I installed Mutt on AntiX Linux and can read my Yahoo mail. When sending 
though, I’m asked for a passphrase. I don’t have one, so then I get “no key 
specified” and I can’t send. 

My muttrc is basic with nothing on passphrase or SMIME. 

Any suggestions?  Thanks!