Re: Scheduling deferred sending of emails

2023-07-31 Thread Jakub Jindra via Mutt-users

Hello Sébastian,

I remember replying to a similar post on Unix Stackexchange in the past:
https://unix.stackexchange.com/a/554369/85046

Best,
JJ

On 2023-07-29 12:07, Sébastien Hinderer wrote:

Dear all,

I would like to be able to respond to emails quickly to have it done but
defer the actual sending of the response to slow down conversations.
Ideally at the moment of sending I would specify a date and time after
which I am fine with the mail being sent. For example, I respond to an
email on Friday afternoon but can express that I want it to be actually
sent anytime after next Monday 9pm. That could be by adding a special
header to the email or by responding to questions at send time, I don't
mind and it's not really the usesr interface I'd like to discuss here.

What I rather would like to discuss is rather whether and how this could
be implemented in the MUA/MTA framework mutt belongs to. I believe that
more integrated solutions like Thunderbird do have such scheduled
deferred sending features, but I have no idea how this can be achieved in
presence of both an MUA and an MTA because the feature seems to be at
the interface between the two: there needs to be a way for the MUA to
tell the MTA about the deferred sending and of course the MTA does not
only need to undestand it, it also needs to actually implement it.

I had a superficial look to exim4 which I use as an MTA but didn't find
anything related, but perhaps my search has been too shallow.

I also considered adding another MTA between mutt and Exim4 which would
keep the deferred mails until the scheduled date and pass them to Exim4
only at that moment but it felt a bit a pity to have to use one
dedicated software component just for that as, I assume, it would
widely resemble a traditional MTA, having a lot in common with it.

Any idea will be more than welcome.

Best wishes,

Seb.


signature.asc
Description: PGP signature


Re: remove "To" from recipient field

2022-07-26 Thread Jakub Jindra

Hi,

I've did a little digging and I think it is not possible with mutt. 
There's a index_format expando %Fp in neomutt [1] doing exactly what you 
want, whereas it's missing in mutt [2].


I'm not a mutt user 


1. https://neomutt.org/guide/reference#3-201-%C2%A0index_format
2. http://www.mutt.org/doc/manual/#index-format

Best,
JJ

On 2022-07-26 20:34, Fourhundred Thecat wrote:

Hello,

when I am in Sent folder, the recipient is displayed as "To John". Can I
get rid of the "To" ? It is not helpful, and just eats up valuable space.



--
Jakub Jindra


Re: Two questions regarding header display

2022-06-05 Thread Jakub Jindra

Hi Jason,

You're looking for config option [1]header_color_partial

1. http://www.mutt.org/doc/manual/#header-color-partial

set header_color_partial = yes
color hdrdefault FG  BG
color header FG  BG  "REGEX"
color header FG1 BG1 "REGEX1"

tune the colors FG, BG and REGEX to your needs.

Best,
JJ

On 2022-06-05 00:06, Jason Franklin wrote:

Greetings:

I have two questions regarding header display...

First, can the pager display header names in bold if the terminal
supports it?

Second some senders have weird capitalization of headers. Is it possible
to display some canonical representation of any given standard header?

To clarify, if the header is sent as "reply-to", I would like to always
see "Reply-To" in the pager.

Thanks!

--
Jason


--
Jakub Jindra


signature.asc
Description: PGP signature


Re: Set variable depending on environment (or similar)

2022-01-20 Thread Jakub Jindra

source `echo .muttrc-$HOSTNAME`

allows you to have all hostname specific for all hosts in a single 
directory


On 2022-01-20 13:07, Tapani Tarvainen wrote:

On Thu, Jan 20, 2022 at 09:52:08AM +, Chris Green (c...@isbd.net) wrote:


I run mutt on two systems with near identical muttrc files, it would
be very handy to be able to make the muttrc files identical to
simplify maintenance.

Essentially the *only* difference between the two muttrc files is my
E-Mail address used in alternates and my_hdr commands.

On one system I can use the system's hostname to form my address but
not on the other.  Is there a way to set a variable according to the
value of another variable (or command output)?


How about something like

source .muttrc-local

with the host-specific settings in the .muttrc-local file?

--
Tapani Tarvainen


--
Jakub Jindra


signature.asc
Description: PGP signature


Re: Background edit in new terminal window

2021-02-20 Thread Jakub Jindra

Hi,

If you're familiar with tmux you can try solution from [1]this github 
issue.

I believe this should work with mutt as well.

1. https://github.com/neomutt/neomutt/issues/2713

Best,
JJ

On 2021-02-20 09:12, Matthias Apitz wrote:

El día sábado, febrero 20, 2021 a las 12:54:46p. m. +0530, Chinmaya Nagpal 
escribió:


Hi,

I'd like to be able to launch an editor in a new terminal window and
continue browsing my emails, like the contrib/bgedit-detectgui.sh script
does but with my editor wrapped in a terminal window instead of with gvim.


And what about storing the mail in question into a temp. mbox file,
launching an additional terminal window with an additional mutt session
with this file.

matthias

--
Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
¡Con Cuba no te metas!  «»  Don't mess with Cuba!  «»  Leg Dich nicht mit Kuba 
an!
http://www.cubadebate.cu/noticias/2020/12/25/en-video-con-cuba-no-te-metas/


signature.asc
Description: PGP signature


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


Re: color of unknown object

2020-12-07 Thread Jakub Jindra

Hi Matthias,

that might be:
color compose header fgcolor bgcolor

Best,
JJ

On 2020-12-07 08:01, Matthias Apitz wrote:


Hello,
I'm struggling with a color problem in mutt 2.0.2: In the last menu
before sending the mail:

-
y:Send  q:Abort  t:To  c:CC  s:Subj  a:Attach file  d:Descrip  ?:Help
From: Matthias Apitz 
  To: Matthias Apitz 
  Cc:
 Bcc:
 Subject: t
Reply-To: Matthias Apitz 
 Fcc: =outboxC720
Security: Sign (PGP/MIME)
 Sign as: 
-


the background of the header tags like ' From: ' is set to black (as
the foreground color) from the beginning of the line to the first blank
after the colon and the text is not readable, because foreground and background
are identically. What is the name of this object for the value in
~/.muttrc?

Thanks

matthias


--
Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
Без книги нет знания, без знания нет коммунизма (Влaдимир Ильич Ленин)
Without books no knowledge - without knowledge no communism (Vladimir Ilyich 
Lenin)
Sin libros no hay saber - sin saber no hay comunismo. (Vladimir Ilich Lenin)


--
Jakub Jindra
DevOps Engineer
www.socialbakers.com


signature.asc
Description: PGP signature