literate-dotfiles/docs/mail.html

1791 lines
88 KiB
HTML
Raw Permalink Normal View History

2020-01-11 22:04:45 +01:00
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
2022-05-09 10:05:23 +02:00
<!-- 2022-05-09 lun. 10:04 -->
2020-01-11 22:04:45 +01:00
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Mail Configuration</title>
<meta name="author" content="Dehaeze Thomas" />
2021-04-25 19:10:57 +02:00
<meta name="generator" content="Org Mode" />
2021-01-01 20:12:34 +01:00
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
2020-01-11 22:04:45 +01:00
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
2021-10-25 14:37:10 +02:00
</div><div id="content" class="content">
2020-01-11 22:04:45 +01:00
<h1 class="title">Mail Configuration</h1>
2021-10-25 14:37:10 +02:00
<div id="table-of-contents" role="doc-toc">
2020-01-11 22:04:45 +01:00
<h2>Table of Contents</h2>
2021-10-25 14:37:10 +02:00
<div id="text-table-of-contents" role="doc-toc">
2020-01-11 22:04:45 +01:00
<ul>
2021-01-01 20:12:34 +01:00
<li><a href="#mbsync"><code>mbsync</code> - Synchronize Mailboxes</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgbd99b25">Global Defaults</a></li>
<li><a href="#orgb60beb7">Gmail Account</a></li>
<li><a href="#org35a0cca">ESRF Account</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</li>
2021-01-01 20:12:34 +01:00
<li><a href="#msmtp"><code>msmtp</code> - Send Mails</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org4d44d07">Defaults</a></li>
<li><a href="#org592aacf">Gmail Account</a></li>
<li><a href="#org080d6d4">ESRF Account</a></li>
<li><a href="#org868bd6b">Default Account</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</li>
2021-01-01 20:12:34 +01:00
<li><a href="#mu"><code>mu</code> - Mail Indexer</a></li>
<li><a href="#neomutt"><code>neomutt</code> - Mail Client</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgeaf49f3">Bindings</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org5c23d10">Unding all the key bindings</a></li>
<li><a href="#orgb024637">Quit Neomutt</a></li>
<li><a href="#org3a8186d">Generic</a></li>
<li><a href="#org66ff01d">Index and Pager</a></li>
<li><a href="#orgcda258c">Limit</a></li>
<li><a href="#org74064fd">Search</a></li>
<li><a href="#org66d80c0">Attachments</a></li>
<li><a href="#org61ac062">Compose</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org2366a23">Attach with Ranger Script</a></li>
<li><a href="#org8cb1259">Send HTML mails using Markdown</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org700fb65">Browser</a></li>
<li><a href="#org7a3660e">Generic</a></li>
<li><a href="#org854c3e5">Sidebar</a></li>
<li><a href="#org5e2baa3">Reload Configuration</a></li>
<li><a href="#org3acb20d">urlview - Open URL in emails</a></li>
<li><a href="#org43c90e9">Searching using Mu</a></li>
<li><a href="#orgc1ed8c2">Link to Orgmode</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgfa8f034">Link mail to orgmode - Script</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</li>
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org9117139">Colors</a></li>
<li><a href="#orgc29edef">Contacts with Mu</a></li>
<li><a href="#org6ec07f1">Paths</a></li>
<li><a href="#org221159f">Print</a></li>
<li><a href="#orgf4c1889">Accounts</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org53fa91a">Gmail</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org198cc1b">Configuration</a></li>
<li><a href="#org611d2f8">Signature</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#orgc5b7833">ESRF</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org4c4c1fb">Configuration</a></li>
<li><a href="#orgf895905">Signature</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</li>
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#orge0397c4">Basic Options</a></li>
<li><a href="#org322b191">View Options</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org7e61cbc">Status Bar</a></li>
<li><a href="#org7c4e486">Index View Options</a></li>
<li><a href="#org98c570b">Pager View Options</a></li>
<li><a href="#org8f1ca42">Compose View Options</a></li>
<li><a href="#org81a2b65">Forward</a></li>
<li><a href="#org6f5a08c">Headers</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org16ab6f1">Sidebar</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org4d92dd9">General Config</a></li>
<li><a href="#org7f77af5">Mailboxes to show in the sidebar.</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#org9478e31">Attachments</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#orgb6538f1">Attachment View Options</a></li>
<li><a href="#orgac93184">Open Attachment</a></li>
<li><a href="#org11b72bc">Attach multiple files at once</a></li>
<li><a href="#org1b18bf4">Forgotten Attachment</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</li>
2022-05-09 10:05:23 +02:00
<li><a href="#orgd1da97d">Scripts and other config files</a>
2020-01-11 22:04:45 +01:00
<ul>
2022-05-09 10:05:23 +02:00
<li><a href="#org9179fe8">Search Mail</a></li>
<li><a href="#orgc3d3627">Send Mail Script</a></li>
<li><a href="#org7eba6bf">Sync Mail Script</a></li>
<li><a href="#org313ac8f">Openfile Scripts</a></li>
<li><a href="#org5e8881f">urlview Config</a></li>
<li><a href="#orgd9e9819">Mailcap</a></li>
2020-01-11 22:04:45 +01:00
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<p>
Installation:
</p>
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-bash"><span class="org-type">sudo</span> apt install mbsync msmtp maildir-utils neomutt lynx
</pre>
</div>
2020-01-11 22:04:45 +01:00
2021-01-01 20:12:34 +01:00
<div id="outline-container-mbsync" class="outline-2">
<h2 id="mbsync"><code>mbsync</code> - Synchronize Mailboxes</h2>
<div class="outline-text-2" id="text-mbsync">
2020-01-11 22:04:45 +01:00
<p>
<a href="http://isync.sourceforge.net/">http://isync.sourceforge.net/</a>
</p>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgbd99b25" class="outline-3">
<h3 id="orgbd99b25">Global Defaults</h3>
<div class="outline-text-3" id="text-orgbd99b25">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Automatically create missing mailboxes, both locally and on the server</span>
Create Both
<span class="org-comment-delimiter"># </span><span class="org-comment">Save the synchronization state files in the relevant directory</span>
SyncState *
2021-04-25 19:10:57 +02:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Permanently remove all messages [on the Far/Near] marked for deletion.</span>
2021-01-08 01:43:48 +01:00
Expunge Both
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgb60beb7" class="outline-3">
<h3 id="orgb60beb7">Gmail Account</h3>
<div class="outline-text-3" id="text-orgb60beb7">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">IMAPAccount gmail
Host imap.gmail.com
User dehaeze.thomas@gmail.com
PassCmd <span class="org-string">"pass email/dehaeze.thomas@gmail.com"</span>
SSLType IMAPS
AuthMechs LOGIN
CertificateFile /etc/ssl/certs/ca-certificates.crt
2020-01-11 22:04:45 +01:00
</pre>
</div>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">IMAPStore gmail-remote
Account gmail
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
MaildirStore gmail-local
Path ~/.mail/gmail/
Inbox ~/.mail/gmail/Inbox
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
Channel gmail-Home
2021-04-25 19:10:57 +02:00
Far :gmail-remote:INBOX
Near :gmail-local:Inbox
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
Channel gmail-Drafts
2021-04-25 19:10:57 +02:00
Far :gmail-remote:<span class="org-string">"[Gmail]/Drafts"</span>
Near :gmail-local:Drafts
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
Channel gmail-Sent
2021-04-25 19:10:57 +02:00
Far :gmail-remote:<span class="org-string">"[Gmail]/Sent Mail"</span>
Near :gmail-local:Sent
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
Channel gmail-Trash
2021-04-25 19:10:57 +02:00
Far :gmail-remote:<span class="org-string">"[Gmail]/Trash"</span>
Near :gmail-local:Trash
2020-01-11 22:04:45 +01:00
2021-10-25 14:37:10 +02:00
Channel gmail-Archive
Far :gmail-remote:<span class="org-string">"[Imap]/Archive"</span>
2021-04-25 19:10:57 +02:00
Near :gmail-local:Archive
2020-01-11 22:04:45 +01:00
</pre>
</div>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Catch-all for everything else: note that the `Patterns` have to exclude both</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">the remote and local names for all the folders we want to exclude (except</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">"INBOX", which is special-cased, it would seem).</span>
Channel gmail
2021-04-25 19:10:57 +02:00
Far :gmail-remote:
Near :gmail-local:
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Exclude everything under the internal [Gmail] folder, except the interesting folders</span>
Patterns *
Patterns !INBOX
Patterns ![Gmail]*
Patterns !Drafts
Patterns !Sent Mail
Patterns !Trash
2021-10-25 14:37:10 +02:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Patterns ![Imap]/Archive</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">For doing a quick sync of just the INBOX with `mbsync gmail-download`.</span>
Channel gmail-download
2021-04-25 19:10:57 +02:00
Far :gmail-remote:INBOX
Near :gmail-local:Inbox
Create Near
Expunge Near
2021-01-08 01:43:48 +01:00
Sync Pull
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org35a0cca" class="outline-3">
<h3 id="org35a0cca">ESRF Account</h3>
<div class="outline-text-3" id="text-org35a0cca">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">IMAPAccount esrf
Host imaps.esrf.fr
User dehaeze
PassCmd <span class="org-string">"pass email/thomas.dehaeze@esrf.fr"</span>
SSLType IMAPS
AuthMechs LOGIN
2020-01-11 22:04:45 +01:00
</pre>
</div>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">IMAPStore esrf-remote
Account esrf
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
MaildirStore esrf-local
Path ~/.mail/esrf/
Inbox ~/.mail/esrf/Inbox
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
Channel esrf-Home
2021-04-25 19:10:57 +02:00
Far :esrf-remote:INBOX
Near :esrf-local:Inbox
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
Channel esrf-Drafts
2021-04-25 19:10:57 +02:00
Far :esrf-remote:Drafts
Near :esrf-local:Drafts
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
Channel esrf-Archive
2021-04-25 19:10:57 +02:00
Far :esrf-remote:Archive
Near :esrf-local:Archive
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
Channel esrf-Sent
2021-04-25 19:10:57 +02:00
Far :esrf-remote:Sent
Near :esrf-local:Sent
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
Channel esrf-Trash
2021-04-25 19:10:57 +02:00
Far :esrf-remote:Trash
Near :esrf-local:Trash
2020-01-11 22:04:45 +01:00
</pre>
</div>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">Channel esrf
2021-04-25 19:10:57 +02:00
Far :esrf-remote:
Near :esrf-local:
2020-01-11 22:04:45 +01:00
</pre>
</div>
<p>
2022-05-09 10:05:23 +02:00
For doing a quick sync of just the INBOX with <code>mbsync esrf-download</code>.
2020-01-11 22:04:45 +01:00
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">Channel esrf-download
2021-04-25 19:10:57 +02:00
Far :esrf-remote:INBOX
Near :esrf-local:Inbox
Create Near
Expunge Near
2021-01-08 01:43:48 +01:00
Sync Pull
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-msmtp" class="outline-2">
<h2 id="msmtp"><code>msmtp</code> - Send Mails</h2>
<div class="outline-text-2" id="text-msmtp">
2020-01-11 22:04:45 +01:00
<p>
<a href="https://marlam.de/msmtp/">https://marlam.de/msmtp/</a>
</p>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org4d44d07" class="outline-3">
<h3 id="org4d44d07">Defaults</h3>
<div class="outline-text-3" id="text-org4d44d07">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">defaults
auth on
tls on
tls_certcheck off
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org592aacf" class="outline-3">
<h3 id="org592aacf">Gmail Account</h3>
<div class="outline-text-3" id="text-org592aacf">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">account gmail
host smtp.gmail.com
port <span class="org-highlight-numbers-number">587</span>
protocol smtp
from dehaeze.thomas@gmail.com
user dehaeze.thomas@gmail.com
passwordeval <span class="org-string">"pass email/dehaeze.thomas@gmail.com"</span>
2022-05-09 10:05:23 +02:00
proxy_host localhost
proxy_port <span class="org-highlight-numbers-number">8080</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org080d6d4" class="outline-3">
<h3 id="org080d6d4">ESRF Account</h3>
<div class="outline-text-3" id="text-org080d6d4">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">account esrf
host smtps.esrf.fr
port <span class="org-highlight-numbers-number">465</span>
protocol smtp
from thomas.dehaeze@esrf.fr
user dehaeze
tls_starttls off
passwordeval <span class="org-string">"pass email/thomas.dehaeze@esrf.fr"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org868bd6b" class="outline-3">
<h3 id="org868bd6b">Default Account</h3>
<div class="outline-text-3" id="text-org868bd6b">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-conf">account default : esrf
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-mu" class="outline-2">
<h2 id="mu"><code>mu</code> - Mail Indexer</h2>
<div class="outline-text-2" id="text-mu">
2020-01-11 22:04:45 +01:00
<p>
2020-03-22 23:04:07 +01:00
<code>Mu</code> (<a href="https://github.com/djcb/mu">github</a>) it used as a &ldquo;maildir indexer/searcher&rdquo;.
Useful commands are described in the <a href="http://www.djcbsoftware.nl/code/mu/cheatsheet.html">Cheat-sheet</a>.
</p>
<p>
For instance, to find mails with <code>pdf</code> attachments:
2020-01-11 22:04:45 +01:00
</p>
2020-03-22 23:04:07 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash">mu <span class="org-type">find</span> <span class="org-string">'mime:application/pdf'</span>
2020-03-22 23:04:07 +01:00
</pre>
</div>
2020-01-11 22:04:45 +01:00
</div>
</div>
2021-01-01 20:12:34 +01:00
<div id="outline-container-neomutt" class="outline-2">
<h2 id="neomutt"><code>neomutt</code> - Mail Client</h2>
<div class="outline-text-2" id="text-neomutt">
2020-01-11 22:04:45 +01:00
<p>
<a href="https://neomutt.org/">https://neomutt.org/</a>
</p>
<p>
Documentation:
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash">man neomutt
man neomuttrc
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgeaf49f3" class="outline-3">
<h3 id="orgeaf49f3">Bindings</h3>
<div class="outline-text-3" id="text-orgeaf49f3">
2020-01-11 22:04:45 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org5c23d10" class="outline-4">
<h4 id="org5c23d10">Unding all the key bindings</h4>
<div class="outline-text-4" id="text-org5c23d10">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind generic,pager,editor,index a noop
bind generic,pager,editor,index b noop
bind generic,pager,editor,index c noop
bind generic,pager,editor,index d noop
bind generic,pager,editor,index e noop
bind generic,pager,editor,index f noop
bind generic,pager,editor,index g noop
bind generic,pager,editor,index h noop
bind generic,pager,editor,index i noop
bind generic,pager,editor,index j noop
bind generic,pager,editor,index k noop
bind generic,pager,editor,index l noop
bind generic,pager,editor,index m noop
bind generic,pager,editor,index n noop
bind generic,pager,editor,index o noop
bind generic,pager,editor,index p noop
bind generic,pager,editor,index q noop
bind generic,pager,editor,index r noop
bind generic,pager,editor,index s noop
bind generic,pager,editor,index t noop
bind generic,pager,editor,index u noop
bind generic,pager,editor,index v noop
bind generic,pager,editor,index w noop
bind generic,pager,editor,index x noop
bind generic,pager,editor,index y noop
bind generic,pager,editor,index z noop
bind generic,pager,editor,index A noop
bind generic,pager,editor,index B noop
bind generic,pager,editor,index C noop
bind generic,pager,editor,index D noop
bind generic,pager,editor,index E noop
bind generic,pager,editor,index F noop
bind generic,pager,editor,index G noop
bind generic,pager,editor,index H noop
bind generic,pager,editor,index I noop
bind generic,pager,editor,index J noop
bind generic,pager,editor,index K noop
bind generic,pager,editor,index L noop
bind generic,pager,editor,index M noop
bind generic,pager,editor,index N noop
bind generic,pager,editor,index O noop
bind generic,pager,editor,index P noop
bind generic,pager,editor,index Q noop
bind generic,pager,editor,index R noop
bind generic,pager,editor,index S noop
bind generic,pager,editor,index T noop
bind generic,pager,editor,index U noop
bind generic,pager,editor,index V noop
bind generic,pager,editor,index W noop
bind generic,pager,editor,index X noop
bind generic,pager,editor,index Y noop
bind generic,pager,editor,index Z noop
bind generic,pager,editor,index &lt;Tab&gt; noop
bind generic,pager,editor,index &lt;Space&gt; noop
bind generic,pager,editor,index &lt;PageUp&gt; noop
bind generic,pager,editor,index &lt;PageDown&gt; noop
bind generic,pager,editor,index &lt;Home&gt; noop
bind generic,pager,editor,index &lt;End&gt; noop
bind generic,pager,editor,index &lt;Insert&gt; noop
bind generic,pager,editor,index &lt;Delete&gt; noop
bind generic,pager,editor,index &lt;Up&gt; noop
bind generic,pager,editor,index &lt;Down&gt; noop
bind generic,pager,editor,index &lt;Left&gt; noop
bind generic,pager,editor,index &lt;Right&gt; noop
bind generic,pager,editor,index &lt;Enter&gt; noop
bind generic,pager,editor,index &lt;Return&gt; noop
bind generic,pager,editor,index | noop
bind generic,pager,editor,index <span class="org-highlight-numbers-number">1</span> noop
bind generic,pager,editor,index <span class="org-highlight-numbers-number">2</span> noop
bind generic,pager,editor,index <span class="org-highlight-numbers-number">3</span> noop
bind generic,pager,editor,index <span class="org-highlight-numbers-number">4</span> noop
bind generic,pager,editor,index <span class="org-highlight-numbers-number">5</span> noop
bind generic,pager,editor,index <span class="org-highlight-numbers-number">6</span> noop
bind generic,pager,editor,index <span class="org-highlight-numbers-number">7</span> noop
bind generic,pager,editor,index <span class="org-highlight-numbers-number">8</span> noop
bind generic,pager,editor,index <span class="org-highlight-numbers-number">9</span> noop
bind generic,pager,editor,index <span class="org-highlight-numbers-number">0</span> noop
bind generic,pager,editor,index ! noop
bind generic,pager,editor,index @ noop
bind generic,pager,editor,index $ noop
bind generic,pager,editor,index % noop
bind generic,pager,editor,index ^ noop
bind generic,pager,editor,index &amp; noop
bind generic,pager,editor,index * noop
bind generic,pager,editor,index ( noop
bind generic,pager,editor,index ) noop
bind generic,pager,editor,index \Ca noop
bind generic,pager,editor,index \Cb noop
bind generic,pager,editor,index \Cc noop
bind generic,pager,editor,index \Cd noop
bind generic,pager,editor,index \Ce noop
bind generic,pager,editor,index \Cf noop
bind generic,pager,editor,index \Cg noop
bind generic,pager,editor,index \Ch noop
bind generic,pager,editor,index \Ci noop
bind generic,pager,editor,index \Cj noop
bind generic,pager,editor,index \Ck noop
bind generic,pager,editor,index \Cl noop
bind generic,pager,editor,index \Cm noop
bind generic,pager,editor,index \Cn noop
bind generic,pager,editor,index \Co noop
bind generic,pager,editor,index \Cp noop
bind generic,pager,editor,index \Cq noop
bind generic,pager,editor,index \Cr noop
bind generic,pager,editor,index \Cs noop
bind generic,pager,editor,index \Ct noop
bind generic,pager,editor,index \Cu noop
bind generic,pager,editor,index \Cv noop
bind generic,pager,editor,index \Cw noop
bind generic,pager,editor,index \Cx noop
bind generic,pager,editor,index \Cy noop
bind generic,pager,editor,index \Cz noop
bind generic,pager,editor,index \CA noop
bind generic,pager,editor,index \CB noop
bind generic,pager,editor,index \CC noop
bind generic,pager,editor,index \CD noop
bind generic,pager,editor,index \CE noop
bind generic,pager,editor,index \CF noop
bind generic,pager,editor,index \CG noop
bind generic,pager,editor,index \CH noop
bind generic,pager,editor,index \CI noop
bind generic,pager,editor,index \CJ noop
bind generic,pager,editor,index \CK noop
bind generic,pager,editor,index \CL noop
bind generic,pager,editor,index \CM noop
bind generic,pager,editor,index \CN noop
bind generic,pager,editor,index \CO noop
bind generic,pager,editor,index \CP noop
bind generic,pager,editor,index \CQ noop
bind generic,pager,editor,index \CR noop
bind generic,pager,editor,index \CS noop
bind generic,pager,editor,index \CT noop
bind generic,pager,editor,index \CU noop
bind generic,pager,editor,index \CV noop
bind generic,pager,editor,index \CW noop
bind generic,pager,editor,index \CX noop
bind generic,pager,editor,index \CY noop
bind generic,pager,editor,index \CZ noop
bind generic,pager,editor,index \C&lt;Tab&gt; noop
bind generic,pager,editor,index \C&lt;Space&gt; noop
bind generic,pager,editor,index \C&lt;PageUp&gt; noop
bind generic,pager,editor,index \C&lt;PageDown&gt; noop
bind generic,pager,editor,index \C&lt;Home&gt; noop
bind generic,pager,editor,index \C&lt;End&gt; noop
bind generic,pager,editor,index \C&lt;Insert&gt; noop
bind generic,pager,editor,index \C&lt;Delete&gt; noop
bind generic,pager,editor,index \C&lt;Up&gt; noop
bind generic,pager,editor,index \C&lt;Down&gt; noop
bind generic,pager,editor,index \C&lt;Left&gt; noop
bind generic,pager,editor,index \C&lt;Right&gt; noop
bind generic,pager,editor,index \C&lt;Enter&gt; noop
bind generic,pager,editor,index \C&lt;Return&gt; noop
bind generic,pager,editor,index \C1 noop
bind generic,pager,editor,index \C2 noop
bind generic,pager,editor,index \C3 noop
bind generic,pager,editor,index \C4 noop
bind generic,pager,editor,index \C5 noop
bind generic,pager,editor,index \C6 noop
bind generic,pager,editor,index \C7 noop
bind generic,pager,editor,index \C8 noop
bind generic,pager,editor,index \C9 noop
bind generic,pager,editor,index \C0 noop
bind generic,pager,editor,index \C! noop
bind generic,pager,editor,index \C$ noop
bind generic,pager,editor,index \C% noop
bind generic,pager,editor,index \C^ noop
bind generic,pager,editor,index \C&amp; noop
bind generic,pager,editor,index \C* noop
bind generic,pager,editor,index \C( noop
bind generic,pager,editor,index \C) noop
bind generic,pager,editor,index &lt;Esc&gt;a noop
bind generic,pager,editor,index &lt;Esc&gt;b noop
bind generic,pager,editor,index &lt;Esc&gt;c noop
bind generic,pager,editor,index &lt;Esc&gt;d noop
bind generic,pager,editor,index &lt;Esc&gt;e noop
bind generic,pager,editor,index &lt;Esc&gt;f noop
bind generic,pager,editor,index &lt;Esc&gt;g noop
bind generic,pager,editor,index &lt;Esc&gt;h noop
bind generic,pager,editor,index &lt;Esc&gt;i noop
bind generic,pager,editor,index &lt;Esc&gt;j noop
bind generic,pager,editor,index &lt;Esc&gt;k noop
bind generic,pager,editor,index &lt;Esc&gt;l noop
bind generic,pager,editor,index &lt;Esc&gt;m noop
bind generic,pager,editor,index &lt;Esc&gt;n noop
bind generic,pager,editor,index &lt;Esc&gt;o noop
bind generic,pager,editor,index &lt;Esc&gt;p noop
bind generic,pager,editor,index &lt;Esc&gt;q noop
bind generic,pager,editor,index &lt;Esc&gt;r noop
bind generic,pager,editor,index &lt;Esc&gt;s noop
bind generic,pager,editor,index &lt;Esc&gt;t noop
bind generic,pager,editor,index &lt;Esc&gt;u noop
bind generic,pager,editor,index &lt;Esc&gt;v noop
bind generic,pager,editor,index &lt;Esc&gt;w noop
bind generic,pager,editor,index &lt;Esc&gt;x noop
bind generic,pager,editor,index &lt;Esc&gt;y noop
bind generic,pager,editor,index &lt;Esc&gt;z noop
bind generic,pager,editor,index &lt;Esc&gt;A noop
bind generic,pager,editor,index &lt;Esc&gt;B noop
bind generic,pager,editor,index &lt;Esc&gt;C noop
bind generic,pager,editor,index &lt;Esc&gt;D noop
bind generic,pager,editor,index &lt;Esc&gt;E noop
bind generic,pager,editor,index &lt;Esc&gt;F noop
bind generic,pager,editor,index &lt;Esc&gt;G noop
bind generic,pager,editor,index &lt;Esc&gt;H noop
bind generic,pager,editor,index &lt;Esc&gt;I noop
bind generic,pager,editor,index &lt;Esc&gt;J noop
bind generic,pager,editor,index &lt;Esc&gt;K noop
bind generic,pager,editor,index &lt;Esc&gt;L noop
bind generic,pager,editor,index &lt;Esc&gt;M noop
bind generic,pager,editor,index &lt;Esc&gt;N noop
bind generic,pager,editor,index &lt;Esc&gt;O noop
bind generic,pager,editor,index &lt;Esc&gt;P noop
bind generic,pager,editor,index &lt;Esc&gt;Q noop
bind generic,pager,editor,index &lt;Esc&gt;R noop
bind generic,pager,editor,index &lt;Esc&gt;S noop
bind generic,pager,editor,index &lt;Esc&gt;T noop
bind generic,pager,editor,index &lt;Esc&gt;U noop
bind generic,pager,editor,index &lt;Esc&gt;V noop
bind generic,pager,editor,index &lt;Esc&gt;W noop
bind generic,pager,editor,index &lt;Esc&gt;X noop
bind generic,pager,editor,index &lt;Esc&gt;Y noop
bind generic,pager,editor,index &lt;Esc&gt;Z noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;Tab&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;Space&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;PageUp&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;PageDown&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;Home&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;End&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;Insert&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;Delete&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;Up&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;Down&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;Left&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;Right&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;Enter&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;&lt;Return&gt; noop
bind generic,pager,editor,index &lt;Esc&gt;1 noop
bind generic,pager,editor,index &lt;Esc&gt;2 noop
bind generic,pager,editor,index &lt;Esc&gt;3 noop
bind generic,pager,editor,index &lt;Esc&gt;4 noop
bind generic,pager,editor,index &lt;Esc&gt;5 noop
bind generic,pager,editor,index &lt;Esc&gt;6 noop
bind generic,pager,editor,index &lt;Esc&gt;7 noop
bind generic,pager,editor,index &lt;Esc&gt;8 noop
bind generic,pager,editor,index &lt;Esc&gt;9 noop
bind generic,pager,editor,index &lt;Esc&gt;0 noop
bind generic,pager,editor,index &lt;Esc&gt;! noop
bind generic,pager,editor,index &lt;Esc&gt;@ noop
bind generic,pager,editor,index &lt;Esc&gt;$ noop
bind generic,pager,editor,index &lt;Esc&gt;% noop
bind generic,pager,editor,index &lt;Esc&gt;^ noop
bind generic,pager,editor,index &lt;Esc&gt;&amp; noop
bind generic,pager,editor,index &lt;Esc&gt;* noop
bind generic,pager,editor,index &lt;Esc&gt;( noop
bind generic,pager,editor,index &lt;Esc&gt;) noop
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgb024637" class="outline-4">
<h4 id="orgb024637">Quit Neomutt</h4>
<div class="outline-text-4" id="text-orgb024637">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind index,pager,compose Q exit
macro index q <span class="org-string">"&lt;shell-escape&gt;if [ $TMUX ]; then tmux detach; fi&lt;enter&gt;"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org3a8186d" class="outline-4">
<h4 id="org3a8186d">Generic</h4>
<div class="outline-text-4" id="text-org3a8186d">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind generic Q exit
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind generic &lt;Return&gt; select-entry
bind generic l select-entry
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind generic,index k previous-entry
bind generic,index j next-entry
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind generic,index <span class="org-highlight-numbers-number">0</span> first-entry
bind generic,index $ last-entry
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind generic,index \<span class="org-highlight-numbers-number">031</span> previous-entry <span class="org-comment-delimiter"># </span><span class="org-comment">Mouse wheel</span>
bind generic,index \<span class="org-highlight-numbers-number">005</span> next-entry <span class="org-comment-delimiter"># </span><span class="org-comment">Mouse wheel</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind generic,index gg first-entry
bind generic,index G last-entry
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind generic,index,pager \Cu half-up
bind generic,index,pager \Cd half-down
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind generic,index,pager \Ce next-line
bind generic,index,pager \Cy previous-line
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org66ff01d" class="outline-4">
<h4 id="org66ff01d">Index and Pager</h4>
<div class="outline-text-4" id="text-org66ff01d">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind pager k previous-line
bind pager j next-line
2020-01-11 22:04:45 +01:00
2021-10-25 14:37:10 +02:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Display mode information</span>
bind pager i display-toggle-weed
2021-01-08 01:43:48 +01:00
bind index &lt;space&gt; collapse-thread
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind index,pager K previous-entry
bind index,pager J next-entry
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind index l display-message
bind index &lt;Return&gt; display-message
bind pager l view-attachments
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind pager gg top
bind pager <span class="org-highlight-numbers-number">0</span> top
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind pager G bottom
bind pager $ bottom
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
macro index h <span class="org-string">"&lt;change-folder&gt;?"</span> <span class="org-string">"Go back to the list of mailboxes"</span>
bind pager h exit
bind pager q exit
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
macro index c <span class="org-string">"&lt;change-folder&gt;?&lt;toggle-mailboxes&gt;"</span> <span class="org-string">"change folder"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind index,pager u undelete-message
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind index,pager P print-message
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Compose a new email (not a reply) to the sender</span>
bind index,pager @ compose-to-sender
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Marl All message as read</span>
macro index \Cr \
<span class="org-string">"&lt;tag-pattern&gt;~N&lt;enter&gt;&lt;tag-prefix&gt;&lt;clear-flag&gt;N&lt;untag-pattern&gt;.&lt;enter&gt;"</span> \
<span class="org-string">"mark all new as read"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
<div class="org-src-container">
2021-02-10 18:02:02 +01:00
<pre class="src src-conf">bind index z collapse-thread
bind index Z collapse-all
2020-01-11 22:04:45 +01:00
</pre>
</div>
<p>
Write/Reply/Forward mail
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind index,pager p recall-message
bind index,pager m mail
bind index,pager M resend-message
bind index,pager r reply
bind index,pager R group-reply
bind index,pager b bounce-message
bind index,pager f forward-message
2020-01-11 22:04:45 +01:00
</pre>
</div>
<p>
Sync Mailbox
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind index,pager s sync-mailbox
2020-01-11 22:04:45 +01:00
</pre>
</div>
<p>
Sync email
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">macro index,pager o <span class="org-string">"&lt;shell-escape&gt;$HOME/.config/neomutt/bin/get_new_mail.sh&lt;enter&gt;"</span>
macro index,pager O <span class="org-string">"&lt;shell-escape&gt;$HOME/.config/neomutt/bin/get_new_mail.sh -a&lt;enter&gt;"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
<p>
Make quick html view macro
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">macro index,pager H <span class="org-string">"&lt;view-attachments&gt;&lt;search&gt;html&lt;enter&gt;&lt;view-mailcap&gt;&lt;exit&gt;"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
<p>
Open mail with Vim
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">macro index,pager V <span class="org-string">"&lt;view-attachments&gt;&lt;search&gt;plain&lt;enter&gt;&lt;view-mailcap&gt;&lt;exit&gt;"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-conf">bind index U toggle-new
2020-01-11 22:04:45 +01:00
</pre>
</div>
<p>
Labels
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind index,pager y edit-label
bind index,pager Y modify-labels
2020-01-11 22:04:45 +01:00
</pre>
</div>
2021-02-10 18:02:02 +01:00
<p>
Copy and move mails
</p>
<div class="org-src-container">
<pre class="src src-conf">macro index C <span class="org-string">"&lt;copy-message&gt;?&lt;toggle-mailboxes&gt;"</span> <span class="org-string">"copy a message to a mailbox"</span>
macro index M <span class="org-string">"&lt;save-message&gt;?&lt;toggle-mailboxes&gt;"</span> <span class="org-string">"move a message to a mailbox"</span>
</pre>
</div>
2020-01-11 22:04:45 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgcda258c" class="outline-4">
<h4 id="orgcda258c">Limit</h4>
<div class="outline-text-4" id="text-orgcda258c">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind index L limit
macro index a &lt;limit&gt;all&lt;enter&gt;
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org74064fd" class="outline-4">
<h4 id="org74064fd">Search</h4>
<div class="outline-text-4" id="text-org74064fd">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind generic,index,pager / search
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind index,pager n search-next
bind index,pager N search-opposite
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org66d80c0" class="outline-4">
<h4 id="org66d80c0">Attachments</h4>
<div class="outline-text-4" id="text-org66d80c0">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind attach l view-attach
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind attach h exit
bind attach q exit
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind attach &lt;return&gt; view-mailcap
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
macro attach W &lt;save-entry&gt;&lt;kill-line&gt;~/Downloads/&lt;enter&gt;y <span class="org-string">"Save entry"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
2020-01-12 17:28:30 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org61ac062" class="outline-4">
<h4 id="org61ac062">Compose</h4>
<div class="outline-text-4" id="text-org61ac062">
2020-01-12 17:28:30 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind compose p postpone-message
2020-01-12 17:28:30 +01:00
2021-01-08 01:43:48 +01:00
bind compose R rename-attachment
2020-01-12 17:28:30 +01:00
2021-01-08 01:43:48 +01:00
bind compose a attach-file
2020-01-12 17:28:30 +01:00
</pre>
</div>
<p>
Open another instance of neomutt in readonly mode while composing
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">macro compose M <span class="org-string">"&lt;shell-escape&gt;$TERMINAL -e \"neomutt -R\"&lt;enter&gt;"</span>
2020-01-12 17:28:30 +01:00
</pre>
</div>
2020-01-11 22:04:45 +01:00
<p>
Attach multiple files using ranger
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">macro compose A <span class="org-string">"&lt;shell-escape&gt;bash $HOME/.config/neomutt/bin/rangerpick&lt;enter&gt;&lt;enter-command&gt;source /tmp/rangerpick&lt;enter&gt;&lt;shell-escape&gt;bash $HOME/.config/neomutt/bin/rangerpick clean&lt;enter&gt;"</span> <span class="org-string">"Attach with Ranger"</span>
2020-11-03 16:27:09 +01:00
</pre>
</div>
<p>
Attach file by drooping from GUI
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">macro compose B <span class="org-string">"&lt;shell-escape&gt;bash $HOME/.config/neomutt/bin/rangerpick dragon&lt;enter&gt;&lt;enter-command&gt;source /tmp/rangerpick&lt;enter&gt;&lt;shell-escape&gt;bash $HOME/.config/neomutt/bin/rangerpick clean&lt;enter&gt;"</span> <span class="org-string">"Attach with Ranger"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org2366a23" class="outline-5">
<h5 id="org2366a23">Attach with Ranger Script</h5>
<div class="outline-text-5" id="text-org2366a23">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=/tmp/rangerpick
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
ranger --choosefiles $<span class="org-variable-name">tmpfile</span> &amp;&amp; sed -i <span class="org-string">'s/\s/\\ /g'</span> $<span class="org-variable-name">tmpfile</span> &amp;&amp; <span class="org-type">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">awk</span><span class="org-string"><span class="org-sh-quoted-exec"> 'BEGIN {printf "%s", "push "} {printf "%s", "&lt;attach-file&gt;"</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">0</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">"&lt;enter&gt;"}' </span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">tmpfile</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">)</span></span><span class="org-string">"</span> &gt; $<span class="org-variable-name">tmpfile</span>
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"dragon"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
2022-05-09 10:05:23 +02:00
dragon --target --print-path --keep &gt; $<span class="org-variable-name">tmpfile</span> &amp;&amp; sed -i <span class="org-string">'s/\s/\\ /g'</span> $<span class="org-variable-name">tmpfile</span> &amp;&amp; <span class="org-type">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">awk</span><span class="org-string"><span class="org-sh-quoted-exec"> 'BEGIN {printf "%s", "push "} {printf "%s", "&lt;attach-file&gt;"</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">0</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">"&lt;enter&gt;"}' </span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">tmpfile</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">)</span></span><span class="org-string">"</span> &gt; $<span class="org-variable-name">tmpfile</span>
2021-01-08 01:43:48 +01:00
<span class="org-keyword">elif</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-highlight-numbers-number">1</span> == <span class="org-string">"clean"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-type">ls</span> $<span class="org-variable-name">tmpfile</span>
<span class="org-keyword">fi</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org8cb1259" class="outline-5">
<h5 id="org8cb1259">Send HTML mails using Markdown</h5>
<div class="outline-text-5" id="text-org8cb1259">
2020-01-11 22:04:45 +01:00
<p>
Write html emails using markdown
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">macro compose M "F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=us-ascii\n"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org700fb65" class="outline-4">
<h4 id="org700fb65">Browser</h4>
<div class="outline-text-4" id="text-org700fb65">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind browser l select-entry
macro browser h <span class="org-string">"&lt;top-page&gt;&lt;select-entry&gt;"</span>
2020-01-12 17:28:30 +01:00
2021-01-08 01:43:48 +01:00
bind browser t tag-entry
2020-01-12 17:28:30 +01:00
2021-01-08 01:43:48 +01:00
bind browser q exit
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org7a3660e" class="outline-4">
<h4 id="org7a3660e">Generic</h4>
<div class="outline-text-4" id="text-org7a3660e">
2020-01-11 22:04:45 +01:00
<p>
Enter Command
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind generic,index,pager : enter-command
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org854c3e5" class="outline-4">
<h4 id="org854c3e5">Sidebar</h4>
<div class="outline-text-4" id="text-org854c3e5">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">bind index,pager \Cp sidebar-prev
bind index,pager \Cn sidebar-next
bind index,pager \Co sidebar-open
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind index,pager \Ch sidebar-toggle-visible
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org5e2baa3" class="outline-4">
<h4 id="org5e2baa3">Reload Configuration</h4>
<div class="outline-text-4" id="text-org5e2baa3">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">macro generic,index,pager,editor ,&lt;Space&gt; <span class="org-string">":source ~/.config/neomutt/neomuttrc\n"</span> <span class="org-string">"Reload mutt's configuration file"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org3acb20d" class="outline-4">
<h4 id="org3acb20d">urlview - Open URL in emails</h4>
<div class="outline-text-4" id="text-org3acb20d">
2020-01-11 22:04:45 +01:00
<p>
Use <code>urlview</code> to extract urls from the mail.
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">macro attach,compose,index,pager \cw <span class="org-string">"\</span>
<span class="org-string"> :set my_tmp_pipe_decode=\$pipe_decode\n\</span>
<span class="org-string"> :set pipe_decode\n\</span>
<span class="org-string"> &lt;pipe-message&gt;urlview\n\</span>
<span class="org-string"> :set pipe_decode=\$my_tmp_pipe_decode\n\</span>
<span class="org-string"> :unset my_tmp_pipe_decode\n"</span> \
<span class="org-string">'call urlview to extract URLs out of a message'</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org43c90e9" class="outline-4">
<h4 id="org43c90e9">Searching using Mu</h4>
<div class="outline-text-4" id="text-org43c90e9">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-conf">macro index,pager \Cf <span class="org-string">"&lt;shell-escape&gt;$HOME/.config/neomutt/bin/search_mail.sh&lt;enter&gt;&lt;change-folder-readonly&gt;~/.mail/search&lt;enter&gt;"</span> \
<span class="org-string">"test"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">macro index,pager \Cf "&lt;shell-escape&gt;mu find --clearlinks --format=links --linksdir=~/.mail/search " \</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">"mu find"</span>
2021-01-08 01:43:48 +01:00
macro index,pager gf <span class="org-string">"&lt;change-folder-readonly&gt;~/.mail/search&lt;enter&gt;"</span> \
<span class="org-string">"mu find results"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgc1ed8c2" class="outline-4">
<h4 id="orgc1ed8c2">Link to Orgmode</h4>
<div class="outline-text-4" id="text-orgc1ed8c2">
2020-01-12 17:28:30 +01:00
<p>
<a href="https://www.donarmstrong.com/posts/org_mode_mutt_capture/">https://www.donarmstrong.com/posts/org_mode_mutt_capture/</a>
<a href="https://upsilon.cc/~zack/blog/posts/2010/02/integrating_Mutt_with_Org-mode/">https://upsilon.cc/~zack/blog/posts/2010/02/integrating_Mutt_with_Org-mode/</a>
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">macro index,pager S <span class="org-string">"&lt;pipe-message&gt;$HOME/.config/neomutt/bin/mutt-save-org-link.py\n"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgfa8f034" class="outline-5">
<h5 id="orgfa8f034">Link mail to orgmode - Script</h5>
<div class="outline-text-5" id="text-orgfa8f034">
2021-10-25 14:37:10 +02:00
<p>
<a href="https://orgmode.org/manual/The-capture-protocol.html#The-capture-protocol">https://orgmode.org/manual/The-capture-protocol.html#The-capture-protocol</a>
</p>
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-python"><span class="org-keyword">import</span> sys
<span class="org-keyword">import</span> email
2021-10-25 14:37:10 +02:00
<span class="org-keyword">from</span> email <span class="org-keyword">import</span> policy
2021-01-08 01:43:48 +01:00
<span class="org-keyword">import</span> subprocess
<span class="org-keyword">import</span> urllib.parse
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Parse the email from standard input</span>
<span class="org-variable-name">message_bytes</span> = sys.stdin.<span class="org-builtin">buffer</span>.read()
2021-10-25 14:37:10 +02:00
<span class="org-variable-name">message</span> = email.message_from_bytes(message_bytes, policy=policy.default)
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Grab the relevant message headers</span>
2021-10-25 14:37:10 +02:00
<span class="org-variable-name">message_id</span> = urllib.parse.quote(message[<span class="org-string">'message-id'</span>][<span class="org-highlight-numbers-number">1</span>:-<span class="org-highlight-numbers-number">1</span>])
<span class="org-variable-name">subject</span> = message[<span class="org-string">'subject'</span>]
<span class="org-variable-name">message_to</span> = message[<span class="org-string">'to'</span>]
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Ask emacsclient to save a link to the message</span>
2021-10-25 14:37:10 +02:00
subprocess.Popen([
2021-01-08 01:43:48 +01:00
<span class="org-string">'emacsclient'</span>,
2021-10-25 14:37:10 +02:00
f<span class="org-string">'org-protocol://capture?template=ps&amp;url={message_id}&amp;title={subject}&amp;body={message_to}'</span>
2021-01-08 01:43:48 +01:00
])
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org9117139" class="outline-3">
<h3 id="org9117139">Colors</h3>
<div class="outline-text-3" id="text-org9117139">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-10-25 14:37:10 +02:00
<pre class="src src-conf">color attachment color109 color235
color bold color229 color235
color error color167 color235
color hdrdefault color246 color235
color indicator color223 color237
color markers color243 color235
color normal color223 color235
color prompt color223 color235
color quoted color250 color235
color quoted1 color108 color235
color quoted2 color250 color235
color quoted3 color108 color235
color quoted4 color250 color235
color quoted5 color108 color235
color search color235 color208
color signature color108 color235
color status color245 color235
color tilde color243 color235
color tree color142 color235
color underline color223 color239
color sidebar_divider color250 color235
color sidebar_new color142 color235
color index color142 color235 ~N
color index color108 color235 ~O
color index color109 color235 ~P
color index color214 color235 ~F
color index color175 color235 ~Q
<span class="org-variable-name">color index color167 color235 ~</span>=
color index color235 color223 ~T
color index color235 color167 ~D
color header color214 color235 <span class="org-string">"^(To:|Cc:|Bcc:|From:)"</span>
color header color142 color235 <span class="org-string">"^Subject:"</span>
color header color108 color235 <span class="org-string">"^X-Spam-Status:"</span>
color header color108 color235 <span class="org-string">"^Received:"</span>
color body color142 color235 <span class="org-string">"[a-z]{3,256}://[-a-zA-Z0-9@:%._\\+~#=/?&amp;,]+"</span>
color body color208 color235 <span class="org-string">"[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"</span>
color body color208 color235 <span class="org-string">"mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"</span>
color body color235 color214 <span class="org-string">"[;:]-*[)&gt;(&lt;lt;|]"</span>
color body color229 color235 <span class="org-string">"\\*[- A-Za-z]+\\*"</span>
color body color214 color235 <span class="org-string">"^-.*PGP.*-*"</span>
color body color142 color235 <span class="org-string">"^gpg: Good signature from"</span>
color body color167 color235 <span class="org-string">"^gpg: Can't.*$"</span>
color body color214 color235 <span class="org-string">"^gpg: WARNING:.*$"</span>
color body color167 color235 <span class="org-string">"^gpg: BAD signature from"</span>
color body color167 color235 <span class="org-string">"^gpg: Note: This key has expired!"</span>
color body color214 color235 <span class="org-string">"^gpg: There is no indication that the signature belongs to the owner."</span>
color body color214 color235 <span class="org-string">"^gpg: can't handle these multiple signatures"</span>
color body color214 color235 <span class="org-string">"^gpg: signature verification suppressed"</span>
color body color214 color235 <span class="org-string">"^gpg: invalid node with packet of type"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgc29edef" class="outline-3">
<h3 id="orgc29edef">Contacts with Mu</h3>
<div class="outline-text-3" id="text-orgc29edef">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-variable-name">set query_command</span>=<span class="org-string">"mu cfind '%s' -o mutt-ab"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
bind editor &lt;Tab&gt; complete-query
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org6ec07f1" class="outline-3">
<h3 id="org6ec07f1">Paths</h3>
<div class="outline-text-3" id="text-org6ec07f1">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-variable-name">set folder</span> = ~/.mail <span class="org-comment-delimiter"># </span><span class="org-comment">mail location</span>
<span class="org-variable-name">set alias_file</span> = ~/.config/neomutt/alias <span class="org-comment-delimiter"># </span><span class="org-comment">where to store aliases</span>
<span class="org-variable-name">set header_cache</span> = ~/.config/neomutt/cache/headers <span class="org-comment-delimiter"># </span><span class="org-comment">where to store headers</span>
<span class="org-variable-name">set message_cachedir</span> = ~/.config/neomutt/cache/bodies <span class="org-comment-delimiter"># </span><span class="org-comment">where to store bodies</span>
<span class="org-variable-name">set certificate_file</span> = ~/.config/neomutt/certificates <span class="org-comment-delimiter"># </span><span class="org-comment">where to store certs</span>
<span class="org-variable-name">set mailcap_path</span> = ~/.config/neomutt/mailcap <span class="org-comment-delimiter"># </span><span class="org-comment">entries for filetypes</span>
<span class="org-variable-name">set tmpdir</span> = ~/.config/neomutt/temp <span class="org-comment-delimiter"># </span><span class="org-comment">where to keep temp files</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org221159f" class="outline-3">
<h3 id="org221159f">Print</h3>
<div class="outline-text-3" id="text-org221159f">
2020-01-11 22:04:45 +01:00
<p>
<a href="https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt">https://unix.stackexchange.com/questions/20456/pretty-print-mails-from-mutt</a>
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">set print_command="/usr/bin/muttprint %s -p ctb110c1u"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgf4c1889" class="outline-3">
<h3 id="orgf4c1889">Accounts</h3>
<div class="outline-text-3" id="text-orgf4c1889">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-conf"><span class="org-variable-name">set spoolfile</span> = <span class="org-string">"+esrf/Inbox"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Default inbox</span>
2021-01-08 01:43:48 +01:00
<span class="org-variable-name">set realname</span> = <span class="org-string">"Dehaeze Thomas"</span>
2022-05-09 10:05:23 +02:00
<span class="org-variable-name">set from</span> = <span class="org-string">"thomas.dehaeze@esrf.fr"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
folder-hook gmail/* source ~/.config/neomutt/accounts/gmail
folder-hook esrf/* source ~/.config/neomutt/accounts/esrf
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
macro index,pager ge <span class="org-string">"&lt;change-folder&gt;+esrf/Inbox&lt;enter&gt;"</span> <span class="org-string">"go to inbox"</span>
macro index,pager gm <span class="org-string">"&lt;change-folder&gt;+gmail/Inbox&lt;enter&gt;"</span> <span class="org-string">"go to inbox"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org53fa91a" class="outline-4">
<h4 id="org53fa91a">Gmail</h4>
<div class="outline-text-4" id="text-org53fa91a">
2020-01-11 22:04:45 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org198cc1b" class="outline-5">
<h5 id="org198cc1b">Configuration</h5>
<div class="outline-text-5" id="text-org198cc1b">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-variable-name">set from</span> = <span class="org-string">"dehaeze.thomas@gmail.com"</span>
<span class="org-variable-name">set sendmail</span> = <span class="org-string">"~/.config/neomutt/bin/send_mail.sh gmail"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Other special folders.</span>
2021-10-25 14:37:10 +02:00
<span class="org-variable-name">set mbox</span> = <span class="org-string">"+gmail/Archive"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Archive Box</span>
2021-01-08 01:43:48 +01:00
<span class="org-variable-name">set postponed</span> = <span class="org-string">"+gmail/Drafts"</span>
2020-01-11 22:04:45 +01:00
2021-10-25 14:37:10 +02:00
unset record <span class="org-comment-delimiter"># </span><span class="org-comment">Don't copy send message to Sent folder: Gmail does that for us</span>
2021-01-08 01:43:48 +01:00
<span class="org-variable-name">set signature</span> = <span class="org-string">"~/.config/neomutt/accounts/gmail.signature"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
macro index,pager d \
<span class="org-string">"&lt;save-message&gt;+gmail/Archive&lt;enter&gt;"</span> \
<span class="org-string">"Move message to the Archive"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
macro index,pager D \
<span class="org-string">"&lt;save-message&gt;+gmail/Trash&lt;enter&gt;"</span> \
<span class="org-string">"Move message to the Trash"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org611d2f8" class="outline-5">
<h5 id="org611d2f8">Signature</h5>
<div class="outline-text-5" id="text-org611d2f8">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">Thomas Dehaeze
2020-01-11 22:04:45 +01:00
</pre>
</div>
<p>
2020-01-28 21:32:38 +01:00
This empty code block is used to add a new line after signature
2020-01-11 22:04:45 +01:00
</p>
<div class="org-src-container">
<pre class="src src-conf">
</pre>
</div>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgc5b7833" class="outline-4">
<h4 id="orgc5b7833">ESRF</h4>
<div class="outline-text-4" id="text-orgc5b7833">
2020-01-11 22:04:45 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org4c4c1fb" class="outline-5">
<h5 id="org4c4c1fb">Configuration</h5>
<div class="outline-text-5" id="text-org4c4c1fb">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-variable-name">set from</span> = <span class="org-string">"thomas.dehaeze@esrf.fr"</span>
<span class="org-variable-name">set sendmail</span> = <span class="org-string">"~/.config/neomutt/bin/send_mail.sh esrf"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Other special folders.</span>
<span class="org-variable-name">set mbox</span> = <span class="org-string">"+esrf/Archive"</span>
<span class="org-variable-name">set record</span> = <span class="org-string">"+esrf/Sent"</span>
<span class="org-variable-name">set postponed</span> = <span class="org-string">"+esrf/Drafts"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-variable-name">set signature</span> = <span class="org-string">"~/.config/neomutt/accounts/esrf.signature"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
macro index,pager d \
<span class="org-string">"&lt;save-message&gt;+esrf/Archive&lt;enter&gt;"</span> \
<span class="org-string">"Move message to the Archive"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
macro index,pager D \
<span class="org-string">"&lt;save-message&gt;+esrf/Trash&lt;enter&gt;"</span> \
<span class="org-string">"Move message to the Trash"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgf895905" class="outline-5">
<h5 id="orgf895905">Signature</h5>
<div class="outline-text-5" id="text-orgf895905">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2022-05-09 10:05:23 +02:00
<pre class="src src-conf">Thomas DEHAEZE
Mechatronics Engineer
ESRF - The European Synchrotron
Tel: +33 (<span class="org-highlight-numbers-number">0</span>)4.76.88.22.34
2020-01-11 22:04:45 +01:00
</pre>
</div>
<p>
2020-01-28 21:32:38 +01:00
This empty code block is used to add a new line after signature
2020-01-11 22:04:45 +01:00
</p>
<div class="org-src-container">
<pre class="src src-conf">
</pre>
</div>
</div>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orge0397c4" class="outline-3">
<h3 id="orge0397c4">Basic Options</h3>
<div class="outline-text-3" id="text-orge0397c4">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-variable-name">set wait_key</span> = no <span class="org-comment-delimiter"># </span><span class="org-comment">shut up, mutt</span>
<span class="org-variable-name">set mbox_type</span> = Maildir <span class="org-comment-delimiter"># </span><span class="org-comment">mailbox type</span>
<span class="org-variable-name">set help</span> = no <span class="org-comment-delimiter"># </span><span class="org-comment">No top bar</span>
<span class="org-variable-name">set timeout</span> = <span class="org-highlight-numbers-number">3</span> <span class="org-comment-delimiter"># </span><span class="org-comment">idle time before scanning</span>
<span class="org-variable-name">set sleep_time</span> = <span class="org-highlight-numbers-number">0</span> <span class="org-comment-delimiter"># </span><span class="org-comment">how long NeoMutt may wait after an error message</span>
<span class="org-variable-name">set mail_check</span> = <span class="org-highlight-numbers-number">0</span> <span class="org-comment-delimiter"># </span><span class="org-comment">minimum time between scans</span>
set delete <span class="org-comment-delimiter"># </span><span class="org-comment">don't ask, just do</span>
unset confirmappend <span class="org-comment-delimiter"># </span><span class="org-comment">don't ask, just do!</span>
set quit <span class="org-comment-delimiter"># </span><span class="org-comment">don't ask, just do!!</span>
<span class="org-variable-name">set mark_old</span> = no <span class="org-comment-delimiter"># </span><span class="org-comment">read/new is good enough for me</span>
set beep_new <span class="org-comment-delimiter"># </span><span class="org-comment">bell on new mails</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">set pipe_decode # strip headers and eval mimes when piping</span>
set thorough_search <span class="org-comment-delimiter"># </span><span class="org-comment">strip headers and eval mimes before searching</span>
<span class="org-variable-name">set send_charset</span>=<span class="org-string">"us-ascii:utf-8:iso-8859-1"</span>
<span class="org-variable-name">set sendmail_wait</span> = <span class="org-highlight-numbers-number">0</span> <span class="org-comment-delimiter"># </span><span class="org-comment">no please don't silently fail, email is important</span>
set use_from <span class="org-comment-delimiter"># </span><span class="org-comment">respect the From: address the editor sends back</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Use Vim to compose email, with a few default options.</span>
<span class="org-variable-name">set editor</span> = <span class="org-string">"nvim -c '/\\n--' -c ':noh' -c 'startinsert'"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org322b191" class="outline-3">
<h3 id="org322b191">View Options</h3>
<div class="outline-text-3" id="text-org322b191">
2020-01-11 22:04:45 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org7e61cbc" class="outline-4">
<h4 id="org7e61cbc">Status Bar</h4>
<div class="outline-text-4" id="text-org7e61cbc">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-variable-name">set status_on_top</span> = no
<span class="org-variable-name">set status_chars</span> = <span class="org-string">" *%A"</span>
<span class="org-variable-name">set status_format</span> = <span class="org-string">"&#9472;&#9472;&#9472;[ Folder: %f ]&#9472;&#9472;&#9472;[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]&#9472;&#9472;&#9472;%&gt;&#9472;%?p?( %p postponed )?&#9472;&#9472;&#9472;"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org7c4e486" class="outline-4">
<h4 id="org7c4e486">Index View Options</h4>
<div class="outline-text-4" id="text-org7c4e486">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-variable-name">set date_format</span> = <span class="org-string">"%d/%m/%y %H:%M"</span>
<span class="org-variable-name">set index_format</span> = <span class="org-string">"[%Z] %D %-20.20F %s"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-variable-name">set sort</span> = threads <span class="org-comment-delimiter"># </span><span class="org-comment">like gmail</span>
<span class="org-variable-name">set sort_aux</span> = reverse-last-date-received <span class="org-comment-delimiter"># </span><span class="org-comment">like gmail</span>
set uncollapse_jump <span class="org-comment-delimiter"># </span><span class="org-comment">don't collapse on an unread message</span>
set sort_re <span class="org-comment-delimiter"># </span><span class="org-comment">thread based on regex</span>
<span class="org-variable-name">set reply_regexp</span> = <span class="org-string">"^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"</span>
<span class="org-variable-name">set folder_format</span> = <span class="org-string">"%2C %t %N %8s %f"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org98c570b" class="outline-4">
<h4 id="org98c570b">Pager View Options</h4>
<div class="outline-text-4" id="text-org98c570b">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-variable-name">set pager_index_lines</span> = <span class="org-highlight-numbers-number">10</span> <span class="org-comment-delimiter"># </span><span class="org-comment">number of index lines to show</span>
<span class="org-variable-name">set pager_context</span> = <span class="org-highlight-numbers-number">3</span> <span class="org-comment-delimiter"># </span><span class="org-comment">number of context lines to show</span>
set pager_stop <span class="org-comment-delimiter"># </span><span class="org-comment">don't go to next message automatically</span>
set menu_scroll <span class="org-comment-delimiter"># </span><span class="org-comment">scroll in menus</span>
set tilde <span class="org-comment-delimiter"># </span><span class="org-comment">show tildes like in vim</span>
<span class="org-variable-name">set markers</span> = no <span class="org-comment-delimiter"># </span><span class="org-comment">no ugly plus signs</span>
<span class="org-variable-name">set quote_regexp</span> = <span class="org-string">"^( {0,4}[&gt;|:#%]| {0,4}[a-z0-9]+[&gt;|]+)+"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
auto_view text/html <span class="org-comment-delimiter"># </span><span class="org-comment">view html automatically</span>
alternative_order text/plain text/enriched text/html <span class="org-comment-delimiter"># </span><span class="org-comment">save html for last</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org8f1ca42" class="outline-4">
<h4 id="org8f1ca42">Compose View Options</h4>
<div class="outline-text-4" id="text-org8f1ca42">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">set sig_dashes <span class="org-comment-delimiter"># </span><span class="org-comment">dashes before sig</span>
set sig_on_top <span class="org-comment-delimiter"># </span><span class="org-comment">the signature is just below the response</span>
set edit_headers <span class="org-comment-delimiter"># </span><span class="org-comment">show headers when composing</span>
set fast_reply <span class="org-comment-delimiter"># </span><span class="org-comment">skip to compose when replying</span>
set fcc_attach <span class="org-comment-delimiter"># </span><span class="org-comment">save attachments with the body</span>
<span class="org-variable-name">set attribution</span> = <span class="org-string">"On %d, %n wrote:"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">format of quoting header</span>
set reply_to <span class="org-comment-delimiter"># </span><span class="org-comment">reply to Reply to: field</span>
set reverse_name <span class="org-comment-delimiter"># </span><span class="org-comment">reply as whomever it was to</span>
set include <span class="org-comment-delimiter"># </span><span class="org-comment">include message in replies</span>
2021-01-01 20:12:34 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org81a2b65" class="outline-4">
<h4 id="org81a2b65">Forward</h4>
<div class="outline-text-4" id="text-org81a2b65">
2021-01-01 20:12:34 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-variable-name">set forward_format</span> = <span class="org-string">"Fwd: %s"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">format of subject when forwarding</span>
set forward_decode <span class="org-comment-delimiter"># </span><span class="org-comment">decode when forwarding</span>
set forward_quote <span class="org-comment-delimiter"># </span><span class="org-comment">include message in forwards</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org6f5a08c" class="outline-4">
<h4 id="org6f5a08c">Headers</h4>
<div class="outline-text-4" id="text-org6f5a08c">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">ignore * <span class="org-comment-delimiter"># </span><span class="org-comment">ignore all headers</span>
unignore from: to: cc: date: subject: <span class="org-comment-delimiter"># </span><span class="org-comment">show only these</span>
unhdr_order *
hdr_order from: to: cc: date: subject: <span class="org-comment-delimiter"># </span><span class="org-comment">and in this order</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org16ab6f1" class="outline-3">
<h3 id="org16ab6f1">Sidebar</h3>
<div class="outline-text-3" id="text-org16ab6f1">
2020-01-11 22:04:45 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org4d92dd9" class="outline-4">
<h4 id="org4d92dd9">General Config</h4>
<div class="outline-text-4" id="text-org4d92dd9">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-comment-delimiter"># </span><span class="org-comment">Should the Sidebar be shown?</span>
<span class="org-variable-name">set sidebar_visible</span> = yes
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">How wide should the Sidebar be in screen columns?</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Note: Some characters, e.g. Chinese, take up two columns each.</span>
<span class="org-variable-name">set sidebar_width</span> = <span class="org-highlight-numbers-number">20</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Should the mailbox paths be abbreviated?</span>
<span class="org-variable-name">set sidebar_short_path</span> = yes
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">When abbreviating mailbox path names, use any of these characters as path</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">separators. Only the part after the last separators will be shown.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">For file folders '/' is good. For IMAP folders, often '.' is useful.</span>
<span class="org-variable-name">set sidebar_delim_chars</span> = <span class="org-string">'/.'</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">If the mailbox path is abbreviated, should it be indented?</span>
<span class="org-variable-name">set sidebar_folder_indent</span> = yes
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Indent mailbox paths with this string.</span>
<span class="org-variable-name">set sidebar_indent_string</span> = <span class="org-string">' '</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Make the Sidebar only display mailboxes that contain new, or flagged,</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">mail.</span>
<span class="org-variable-name">set sidebar_new_mail_only</span> = no
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Any mailboxes that are whitelisted will always be visible, even if the</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">sidebar_new_mail_only option is enabled.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">sidebar_whitelist '/home/user/mailbox1'</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">sidebar_whitelist '/home/user/mailbox2'</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">When searching for mailboxes containing new mail, should the search wrap</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">around when it reaches the end of the list?</span>
<span class="org-variable-name">set sidebar_next_new_wrap</span> = no
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Show the Sidebar on the right-hand side of the screen</span>
<span class="org-variable-name">set sidebar_on_right</span> = no
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">The character to use as the divider between the Sidebar and the other Mutt</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">panels.</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Note: Only the first character of this string is used.</span>
<span class="org-variable-name">set sidebar_divider_char</span> = <span class="org-string">'&#9474;'</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Enable extended buffy mode to calculate total, new, and flagged</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">message counts for each mailbox.</span>
set mail_check_stats
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Display the Sidebar mailboxes using this format string.</span>
<span class="org-variable-name">set sidebar_format</span> = <span class="org-string">'%D %* %?N?[%N]?'</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-comment-delimiter"># </span><span class="org-comment">Sort the mailboxes in the Sidebar using this method:</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">count - total number of messages</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">flagged - number of flagged messages</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">new - number of new messages</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">path - mailbox path</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">unsorted - do not sort the mailboxes</span>
<span class="org-variable-name">set sidebar_sort_method</span> = <span class="org-string">'unsorted'</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org7f77af5" class="outline-4">
<h4 id="org7f77af5">Mailboxes to show in the sidebar.</h4>
<div class="outline-text-4" id="text-org7f77af5">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">named-mailboxes <span class="org-string">" &#63117; Search"</span> =search
named-mailboxes <span class="org-string">" GMAIL"</span> =empty/gmail
named-mailboxes <span class="org-string">" &#61468; Inbox"</span> =gmail/Inbox
named-mailboxes <span class="org-string">" &#61912; Sent"</span> =gmail/Sent
named-mailboxes <span class="org-string">" &#61508; Drafts"</span> =gmail/Drafts
named-mailboxes <span class="org-string">" &#64394; Archive"</span> =gmail/Archive
named-mailboxes <span class="org-string">" &#61460; Trash"</span> =gmail/Trash
named-mailboxes <span class="org-string">" ESRF"</span> =empty/esrf
named-mailboxes <span class="org-string">" &#61468; Inbox"</span> =esrf/Inbox
named-mailboxes <span class="org-string">" &#61912; Sent"</span> =esrf/Sent
named-mailboxes <span class="org-string">" &#61508; Drafts"</span> =esrf/Drafts
named-mailboxes <span class="org-string">" &#64394; Archive"</span> =esrf/Archive
named-mailboxes <span class="org-string">" &#61460; Trash"</span> =esrf/Trash
2020-03-19 10:42:30 +01:00
</pre>
</div>
2020-01-11 22:04:45 +01:00
2020-03-19 10:42:30 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">unset move
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org9478e31" class="outline-3">
<h3 id="org9478e31">Attachments</h3>
<div class="outline-text-3" id="text-org9478e31">
2020-01-11 22:04:45 +01:00
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgb6538f1" class="outline-4">
<h4 id="orgb6538f1">Attachment View Options</h4>
<div class="outline-text-4" id="text-orgb6538f1">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-variable-name">set attach_format</span> = <span class="org-string">"[%D %t] %2n [%-7.7m/%10.10M] %.40d %&gt; [%s] "</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgac93184" class="outline-4">
<h4 id="orgac93184">Open Attachment</h4>
<div class="outline-text-4" id="text-orgac93184">
2020-01-11 22:04:45 +01:00
<p>
Program to open is defined in the <code>mailcap</code> file.
</p>
<p>
A script <code>openfile.sh</code> is used to open files with the default application using <code>xdg-open</code>.
</p>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org11b72bc" class="outline-4">
<h4 id="org11b72bc">Attach multiple files at once</h4>
<div class="outline-text-4" id="text-org11b72bc">
2020-01-11 22:04:45 +01:00
<p>
2020-01-12 17:28:30 +01:00
First, tag the files you want to send using <code>t</code>, then <code>;</code> to apply the action on
all tagged files and finally <code>&lt;enter&gt;</code> to add them all.
</p>
<p>
Of ranger can be used with the <code>A</code> keybinding.
2020-01-11 22:04:45 +01:00
</p>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org1b18bf4" class="outline-4">
<h4 id="org1b18bf4">Forgotten Attachment</h4>
<div class="outline-text-4" id="text-org1b18bf4">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf"><span class="org-variable-name">set abort_noattach</span> = ask-yes
<span class="org-variable-name">set abort_noattach_regex</span> = <span class="org-string">"\\&lt;(attach(|ed|ments?)|(attach&#233;|attach&#233;s|attache|attachons|joint|jointe|joints|jointes|joins|joignons))\\&gt;"</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgd1da97d" class="outline-3">
<h3 id="orgd1da97d">Scripts and other config files</h3>
<div class="outline-text-3" id="text-orgd1da97d">
</div>
<div id="outline-container-org9179fe8" class="outline-4">
<h4 id="org9179fe8">Search Mail</h4>
<div class="outline-text-4" id="text-org9179fe8">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">arg_subject</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"Search"</span> -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">arg_from</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"From"</span> -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-negation-char">!</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">arg_from</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">arg_from</span>=<span class="org-string">"from:</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{arg_from}</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
<span class="org-variable-name">arg_to</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">rofi</span> -p <span class="org-string">"To"</span> -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-negation-char">!</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">arg_to</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">arg_to</span>=<span class="org-string">"to:</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{arg_to}</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
<span class="org-variable-name">arg_mime</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> -e <span class="org-string">"\napplication/pdf\nimage/*\nvideo/*"</span> | rofi -i -p <span class="org-string">"Mime"</span> -dmenu<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-negation-char">!</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">arg_mime</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">arg_mime</span>=<span class="org-string">"mime:</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{arg_mime}</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
mu <span class="org-type">find</span> --clearlinks --format=links --linksdir=~/.mail/search <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{arg_from}</span></span><span class="org-string"> </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{arg_to}</span></span><span class="org-string"> </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{arg_mime}</span></span><span class="org-string"> </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{arg_subject}</span></span><span class="org-string">"</span>
</pre>
</div>
2021-01-01 20:12:34 +01:00
</div>
2022-05-09 10:05:23 +02:00
</div>
<div id="outline-container-orgc3d3627" class="outline-4">
<h4 id="orgc3d3627">Send Mail Script</h4>
<div class="outline-text-4" id="text-orgc3d3627">
2021-01-01 20:12:34 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash">msmtp -a $<span class="org-highlight-numbers-number">1</span> $<span class="org-rainbow-delimiters-depth-1">{</span><span class="org-variable-name">@</span>:2<span class="org-rainbow-delimiters-depth-1">}</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
tmux split -v -l <span class="org-highlight-numbers-number">1</span> mbsync $<span class="org-variable-name">1</span>-Sent &amp;&amp; tmux select-pane -U
<span class="org-keyword">else</span>
mbsync $<span class="org-variable-name">1</span>-Sent
<span class="org-keyword">fi</span>
2021-01-01 20:12:34 +01:00
</pre>
2020-01-11 22:04:45 +01:00
</div>
2021-01-01 20:12:34 +01:00
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org7eba6bf" class="outline-4">
<h4 id="org7eba6bf">Sync Mail Script</h4>
<div class="outline-text-4" id="text-org7eba6bf">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> $<span class="org-variable-name">TMUX</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
tmux split -v -l <span class="org-highlight-numbers-number">1</span> checkmail $<span class="org-highlight-numbers-number">1</span> &amp;&amp; tmux select-pane -U
<span class="org-keyword">else</span>
checkmail $<span class="org-highlight-numbers-number">1</span>
<span class="org-keyword">fi</span>
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org313ac8f" class="outline-4">
<h4 id="org313ac8f">Openfile Scripts</h4>
<div class="outline-text-4" id="text-org313ac8f">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-bash"><span class="org-variable-name">base</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">basename</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">ext</span>=<span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{base##*.}</span></span><span class="org-string">"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-variable-name">file</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">mktemp</span> -u --suffix=<span class="org-string">".</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">ext</span></span><span class="org-string">"</span><span class="org-rainbow-delimiters-depth-1">)</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-type">rm</span> -f <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">file</span></span><span class="org-string">"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
<span class="org-type">cp</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">file</span></span><span class="org-string">"</span>
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
setsid xdg-open <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">file</span></span><span class="org-string">"</span> &gt;/dev/null <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> &amp;
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-org5e8881f" class="outline-4">
<h4 id="org5e8881f">urlview Config</h4>
<div class="outline-text-4" id="text-org5e8881f">
2020-01-11 22:04:45 +01:00
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">REGEXP (((http|https|ftp|gopher)|mailto)[.:][^ &gt;<span class="org-string">"\t]*|www\.[-a-z0-9.]+)[^ .,;\t&gt;"</span>&gt;\):]
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
COMMAND nohup qutebrowser %s &lt;/dev/null &amp;&gt;/dev/null &amp;
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
2022-05-09 10:05:23 +02:00
<div id="outline-container-orgd9e9819" class="outline-4">
<h4 id="orgd9e9819">Mailcap</h4>
<div class="outline-text-4" id="text-orgd9e9819">
2020-01-11 22:04:45 +01:00
<p>
Generic
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">text/plain; nvim %s
video/*; setsid mpv --quiet %s &amp;
image/*; sxiv -a -b %s &amp;
application/pdf; zathura %s &amp;
audio/*; /usr/bin/xdg-open %s; copiousoutput
2022-05-09 10:05:23 +02:00
<span class="org-variable-name">text/html; export DISPLAY</span>=:<span class="org-highlight-numbers-number">0</span> &amp;&amp; setsid qutebrowser %s &gt; /dev/null 2&gt;&amp;1 &amp;; nametemplate=%s.html
2021-01-08 01:43:48 +01:00
<span class="org-variable-name">text/html; lynx -width ${COLUMNS:-80} -dump %s; nametemplate</span>=%s.html; copiousoutput;
2021-10-25 14:37:10 +02:00
</pre>
</div>
<p>
For calendar output, a personal <code>ics-add</code> script is used.
</p>
<div class="org-src-container">
<pre class="src src-conf">text/calendar; ics-add %s; copiousoutput;
application/ics; ics-add %s; copiousoutput;
2020-01-11 22:04:45 +01:00
</pre>
</div>
<p>
Libreoffice
</p>
<div class="org-src-container">
2021-01-08 01:43:48 +01:00
<pre class="src src-conf">application/docx; libreoffice %s --nologo &amp;; copiousoutput;
application/doc; libreoffice --nologo %s &amp;; copiousoutput;
application/vnd.oasis.opendocument.database; libreoffice --nologo --base <span class="org-string">'%s'</span>; copiousoutput
application/vnd.oasis.opendocument.chart; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.oasis.opendocument.spreadsheet; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.oasis.opendocument.spreadsheet-template; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.oasis.opendocument.graphics; libreoffice --nologo --draw <span class="org-string">'%s'</span>; copiousoutput
application/vnd.oasis.opendocument.graphics-template; libreoffice --nologo --draw <span class="org-string">'%s'</span>; copiousoutput
application/vnd.oasis.opendocument.presentation; libreoffice --nologo --impress <span class="org-string">'%s'</span>; copiousoutput
application/vnd.oasis.opendocument.presentation-template; libreoffice --nologo --impress <span class="org-string">'%s'</span>; copiousoutput
application/vnd.oasis.opendocument.formula; libreoffice --nologo --math <span class="org-string">'%s'</span>; copiousoutput
application/vnd.oasis.opendocument.text; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/vnd.oasis.opendocument.text-master; libreoffice --nologo -global <span class="org-string">'%s'</span>; copiousoutput
application/vnd.oasis.opendocument.text-template; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/vnd.oasis.opendocument.text-web; libreoffice --nologo -web <span class="org-string">'%s'</span>; copiousoutput
application/vnd.sun.xml.base; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/vnd.sun.xml.calc; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.sun.xml.calc.template; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.sun.xml.draw; libreoffice --nologo --draw <span class="org-string">'%s'</span>; copiousoutput
application/vnd.sun.xml.draw.template; libreoffice --nologo --draw <span class="org-string">'%s'</span>; copiousoutput
application/vnd.stardivision.calc; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.stardivision.chart; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.stardivision.draw; libreoffice --nologo --draw <span class="org-string">'%s'</span>; copiousoutput
application/vnd.stardivision.impress; libreoffice --nologo --impress <span class="org-string">'%s'</span>; copiousoutput
application/vnd.stardivision.math; libreoffice --nologo --math <span class="org-string">'%s'</span>; copiousoutput
application/vnd.stardivision.writer-global; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/vnd.stardivision.writer; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/vnd.sun.xml.impress; libreoffice --nologo --impress <span class="org-string">'%s'</span>; copiousoutput
application/vnd.sun.xml.impress.template; libreoffice --nologo --impress <span class="org-string">'%s'</span>; copiousoutput
application/vnd.sun.xml.math; libreoffice --nologo --math <span class="org-string">'%s'</span>; copiousoutput
application/vnd.sun.xml.writer; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/vnd.sun.xml.writer.global; libreoffice --nologo -global <span class="org-string">'%s'</span>; copiousoutput
application/vnd.sun.xml.writer.template; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
text/csv; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
text/spreadsheet; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/x-quattropro; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/x-dbf; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.ms-excel.sheet.macroEnabled.12; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.ms-excel.template.macroEnabled.12; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.openxmlformats-officedocument.spreadsheetml.template; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.lotus-1-2-3; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.ms-excel; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/msexcel; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/x-dbase; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
text/x-csv; libreoffice --nologo --calc <span class="org-string">'%s'</span>; copiousoutput
application/vnd.ms-powerpoint.presentation.macroEnabled.12; libreoffice --nologo --impress <span class="org-string">'%s'</span>; copiousoutput
application/vnd.ms-powerpoint.slideshow.macroEnabled.12; libreoffice --nologo --impress <span class="org-string">'%s'</span>; copiousoutput
application/vnd.ms-powerpoint.template.macroEnabled.12; libreoffice --nologo --impress <span class="org-string">'%s'</span>; copiousoutput
application/vnd.openxmlformats-officedocument.presentationml.presentation; libreoffice --nologo --impress <span class="org-string">'%s'</span>; copiousoutput
application/vnd.openxmlformats-officedocument.presentationml.slideshow; libreoffice --nologo --impress <span class="org-string">'%s'</span>; copiousoutput
application/vnd.openxmlformats-officedocument.presentationml.template; libreoffice --nologo --impress <span class="org-string">'%s'</span>; copiousoutput
application/vnd.ms-powerpoint; libreoffice --nologo --impress <span class="org-string">'%s'</span>; copiousoutput
application/mspowerpoint; libreoffice --nologo --impress <span class="org-string">'%s'</span>; copiousoutput
text/mathml; libreoffice --nologo --math <span class="org-string">'%s'</span>; copiousoutput
application/rtf; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/x-t602; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/vnd.wordperfect; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/vnd.ms-word.document.macroEnabled.12; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/vnd.ms-word.template.macroEnabled.12; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/vnd.openxmlformats-officedocument.wordprocessingml.document; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/vnd.openxmlformats-officedocument.wordprocessingml.template; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/vnd.ms-works; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/msword; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
application/wordperfect; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
text/rtf; libreoffice --nologo --writer <span class="org-string">'%s'</span>; copiousoutput
2020-01-11 22:04:45 +01:00
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
2022-05-09 10:05:23 +02:00
<p class="date">Created: 2022-05-09 lun. 10:04</p>
2020-01-11 22:04:45 +01:00
</div>
</body>
</html>