blob: c5138b30938b3a304e6a5aa84addaf1dcdd4c848 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<meta name="viewport" content="width=device-width, initial-scale=1.0" >
<link rel="stylesheet" href="/style.css" />
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Bloggings</title>
</head>
<body>
<header>
<h1>Bloggings</h1>
<a href="/static/index.php">Back</a>
</header>
<main>
<article>
<h2>Neomutt</h2>
<h5>2021-03-20</h5>
<p>Neomutt is an updated version of Mutt, a text based email client.</p>
<p><a href="https://neomutt.org/" target="_blank">Site de Neomutt</a></p>
<img src="/images/blog/neomutt-screenshot.png">
<h4>Configuration files</h4>
<ul>
<li class="articlelink"><a href="/txt/neomuttrc.txt">neomuttrc</a></li>
<li class="articlelink"><a href="/txt/account_philip.txt">account</a></li>
<li class="articlelink"><a href="/txt/venelles.txt">theme</a></li>
<li class="articlelink"><a href="/txt/mailcap.txt">mailcap</a></li>
</ul>
<ul>
<li class="articlelink"><a href="/txt/display_filter.txt">Display filter</a></li>
<li class="articlelink"><a href="/txt/get-mailboxes.txt">List mailboxes</a></li>
<li class="articlelink"><a href="/txt/translate.txt">Translate emails</a></li>
<li class="articlelink"><a href="/txt/mutt-trim.txt">Smarten up emails before replying</a></li>
<li class="articlelink"><a href="/txt/print_unicode.txt">Printing emails in unicode</a></li>
</ul>
<h4>External applications</h4>
<ul>
<li class="articlelink"><a href="https://github.com/baruchel/txt2pdf">txt2pdf</a> Convert text to PDF with Unicode</li>
<li class="articlelink"><a href="https://isync.sourceforge.io/">mbsync</a> I use mbsync to download emails</li>
<li class="articlelink"><a href="https://marlam.de/msmtp/">msmtp</a> I use msmtp to send emails</li>
<li class="articlelink"><a href="https://sr.ht/~bptato/chawan/">Chawan</a> I use Chawan in mailcap to convert html emails</li>
<li class="articlelink"><a href="https://gnupg.org/">GPG</a> signature and encryption</li>
<li class="articlelink"><a href="https://www.geeksforgeeks.org/deepl-command-line-language-translator-tool-for-linux/">DeepL-cli</a> for translating</li>
<li class="articlelink"><a href="https://github.com/soimort/translate-shell">Translate Shell</a> for translating</li>
<li class="articlelink"><a href="https://github.com/firecat53/urlscan">Urlscan</a> manage links in emails</li>
<li class="articlelink"><a href="https://notmuchmail.org/">Notmuch</a> Notmuch email system for searching (I don't use it)</li>
<li class="articlelink"><a href="https://github.com/lefcha/imapfilter">Imapfilter</a> tool for filtering mail</li>
</ul>
<h4>Personal Notes</h4>
<p>To enable verification of the GPG signature from the keyservers when
reading an e-mail, make sure that the ~/.gnupg/gpg.conf file contains these lines:</p>
<code>keyserver hkps://hkps.pool.sks-keyservers.net
keyserver-options auto-key-retrieve
</code>
<p>I use msmtp to send e-mails from my Arch linux laptop. In msmtprc,
</p>
<code>tls_trust_file /etc/ssl/certs/ca-certificates.crt</code>
<p>doesn't work for me, instead I use</p>
<code>tls_fingerprint</code></pre>
<p>To obtain the fingerprint :</p>
<code>msmtp --serverinfo --tls --tls-certcheck=off --host=host.domain.tld
--port=587 | egrep -o "([0-9A-Za-z]{2}:){31}[0-9A-Za-z]{2}"
</code>
<p>I have a cron job that updates the fingerprint regularily.</p>
<code>#!/bin/bash
# update tls_fingerprint entry in ~/.msmtprc
cd $HOME
# get the server fingerprint
KEY=$(msmtp --serverinfo --tls --tls-certcheck=off --host=mail.domain.tld --port=587 | grep -E -o "([0-9A-Za-z]{2}:){31}[0-9A-Za-z]{2}")
# replace tls_fingerprint line in .msmtprc
sed -i "s/^tls_fingerprint.*/tls_fingerprint $KEY/g" .msmtprc
</code>
<p>
I use Chawan (cha) in my mailcap to convert html mail to text, otherwise xdg-desktop for the default applications
(see mailcap above)
</p>
<p> </p>
</article>
</main>
<footer>
<p>§</p>
</footer>
</body>
</html>
|