Re: pretty-print mutt emails

2021-11-22 Thread Anders Damsgaard

* Globe Trotter via Mutt-users  [2021-11-22 00:47:10 
+]:


What is the recommended way to pretty-print mutt emails? I found a sourceforge 
perl script called muttprint but that was last updated in 2008, and I was 
wondering what folks here recommended?

Thanks!


Hi,

I use the following sh(1) script to format the message as troff and
convert to pdf: https://adamsgaard.dk/tmp/muttprint-groff.sh

It's a bit ugly in places, but it works for me.  This is an example:
https://adamsgaard.dk/tmp/muttprint-example.pdf

I bind it in my muttrc with the following:

set print_command="$HOME/.config/mutt/muttprint-groff.sh"

best regards,
Anders


Re: multiple color schemes

2021-09-09 Thread Anders Damsgaard

* Jon LaBadie  [2021-09-08 01:20:27 -0400]:


I've always preferred a black letters on white background scheme.
However, after cataract surgery I'm considering using a dark
background scheme.

Has anyone a technique for defining multiple color schemes and
toggling among them while using mutt?

I already keep my color scheme in a separate file and source
that file from ~/.muttrc.  To extend that, I created two
files for light and dark schemes and separate macros (,l and ,d)
to source them while running mutt.

I'd like to reduce that to a single macro that toggles between
the files or one that allows selecting from multiple scheme
files, perhaps in round robin fashion.

--
Jon H. LaBadie mut...@jgcomp.com
11226 South Shore Rd.  (703) 787-0688 (H)
Reston, VA  20190  (703) 935-6720 (C)


Hi Jon,

What about keeping mutt to default foreground and background colors, and
switching the terminal color scheme instead?  I have this set up, and it
allows me to change the color scheme across any terminal programs I use.
While white fg on black bg is my usual preference, black fg on white bg
is more readable to me when I'm outside and there is more ambient glare
on the display.

I use the following mutt colors definitions:

color normal default  default
color indicator  default  color7
color status default  default
color index  bold  default  default  ~N|~F|~T|~D
mono  index  bold  ~N|~F|~T|~D

My terminal is a patched version of st (https://st.suckless.org), where
I added Ctrl-Shift-x to flip between two color schemes:

https://src.adamsgaard.dk/st/files.html
git://src.adamsgaard.dk/st

Color schemes (colorname and altcolorname arrays) and other options are
set in config.h at compile time.

Just my two cents!

Cheers, Anders


Re: It's still 2020. :-(

2021-01-04 Thread Anders Damsgaard

Hi Alan,

* Alan Mackenzie  [2021-01-04 10:18:36 +]:


Hello, mutt.

I'm using mutt 2.0.2 (from Gentoo).

On mutt's list of incoming mails (my inbox), it displays the date of all
new mails as January 2020, even though the date header displayed in each
individual mail is correctly January 2021.

If this has already been fixed in 2.0.3 or 2.0.4, then sorry for the
noise.


No problem here with 2.0.3.  Are you sure this is not related to
the mail server?  If you sync the files to a local maildir, you can
check the header in one of the plaintext mail files.

Anders

--
Anders Damsgaard
https://adamsgaard.dk
gopher://adamsgaard.dk


Re: Macro question

2020-12-10 Thread Anders Damsgaard

* Tom Tunguz  [2020-12-10 20:11:47 -0800]:


Hi,

I'm just getting into mutt and really enjoying it. I'm trying to create a
macro to add someone to the cc window that appears after closing the editor
(vim in my case) and mutt shows the to, cc, BCC, subject fields. I'd like
to hit control + g and add an email address.

My current macro is this but it's not working. Can anyone help me fix this?

macro editor \cg "c mut t...@gmail.com"


Hi Tom,

I think you need to bind the "compose" menu instead.  Also, \cg seems to
be reserved, so use something else.  Finally, the email address seems
malformed.

The following works:

macro compose \cb "c mutt "

Cheers, Anders

--
Anders Damsgaard
https://adamsgaard.dk
gopher://adamsgaard.dk


Re: mutt for office 365 mfa

2020-06-10 Thread Anders Damsgaard

* Scott Brozell  [2020-06-10 14:09:17 -0400]:


Hi,

The organization i work for has forced on us office 365 multi factor
authentication.  In addition to outlook duo they are supporting
evolution and have setup a tenant and application id for it.
Is it possible to use those with mutt ?

thanks,
scott



Hi Scott

I've run into a similar situation.  My non-ideal workaround is to have a
machine always running evolution, forwarding all mail to a normal imap
account that I access with isync/mutt.  I'd be interested to hear
if anyone has a better solution.

Cheers, Anders
--
Anders Damsgaard
https://adamsgaard.dk
gopher://adamsgaard.dk


Re: large IMAP mailboxes (OutLook)

2019-11-12 Thread Anders Damsgaard

* Matthias Apitz  [2019-11-12 21:22:00 +0100]:


There is no caching of the mails in any database and update the cached
information off-line.


If you haven't already, try setting $header_cache and
$message_cachedir. According to the mutt manual, you are likely to
achieve the best performance if the cache variables point to directories
(you can also store cache in files). If using directories for the caching,
make sure they exist on the file system before launching mutt. You can
safely use the same dir for both.

Best, Anders
--
Anders Damsgaard
https://adamsgaard.dk


Re: Aliases

2018-11-19 Thread Anders Damsgaard

Hi Steve,

Maybe you are already aware of this plugin, but 
https://github.com/vim-scripts/mutt-aliases allows you to autocomplete 
aliases from insert mode in vim, which is useful if you `set 
edit_headers` in your muttrc. In your example you would input group1 as 
the recipients (`To: `) field in mutt, and type `joe@@` in the `Cc: ` 
field in vim.


Cheers, Anders

--
Anders Damsgaard
--
Academia: https://adamsgaard.dk
Photography: https://andersdamsgaard.com
PGP public key: https://adamsgaard.dk/ad-public-key.txt


signature.asc
Description: PGP signature