literate-dotfiles/docs/mail.html
Thomas Dehaeze bb14d8239c Change indentation of all blocks.
Use (setq org-src-preserve-indentation t) for Emacs.
2021-01-08 01:26:27 +01:00

2157 lines
105 KiB
HTML

<?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>
<!-- 2021-01-04 lun. 21:32 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Mail Configuration</title>
<meta name="generator" content="Org mode" />
<meta name="author" content="Dehaeze Thomas" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</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>
</div><div id="content">
<h1 class="title">Mail Configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#mbsync"><code>mbsync</code> - Synchronize Mailboxes</a>
<ul>
<li><a href="#orgfe8c5af">Global Defaults</a></li>
<li><a href="#orge654715">Gmail Account</a></li>
<li><a href="#org7ca6b97">ESRF Account</a></li>
<li><a href="#org62106bc">ULG Student Account</a></li>
<li><a href="#org0b87d58">ULG Personal Account</a></li>
</ul>
</li>
<li><a href="#msmtp"><code>msmtp</code> - Send Mails</a>
<ul>
<li><a href="#org4a1b391">Defaults</a></li>
<li><a href="#org285559b">Gmail Account</a></li>
<li><a href="#org4a88ed5">ESRF Account</a></li>
<li><a href="#orga821cde">ULG Account</a></li>
<li><a href="#org9bced56">ULIEGE Account</a></li>
<li><a href="#org8274d8c">Default Account</a></li>
</ul>
</li>
<li><a href="#mu"><code>mu</code> - Mail Indexer</a></li>
<li><a href="#neomutt"><code>neomutt</code> - Mail Client</a>
<ul>
<li><a href="#org22d5357">Bindings</a>
<ul>
<li><a href="#orgabf02bf">Unding all the key bindings</a></li>
<li><a href="#orgab6327c">Quit Neomutt</a></li>
<li><a href="#org784ab60">Generic</a></li>
<li><a href="#orgc3a79b4">Index and Pager</a></li>
<li><a href="#orge2cd847">Limit</a></li>
<li><a href="#orgdaa2ab4">Search</a></li>
<li><a href="#org1c179c6">Attachments</a></li>
<li><a href="#orga27e33b">Compose</a>
<ul>
<li><a href="#orgf944cb5">Attach with Ranger Script</a></li>
<li><a href="#org37ddfcf">Send HTML mails using Markdown</a></li>
</ul>
</li>
<li><a href="#org1ff0684">Browser</a></li>
<li><a href="#org39a5bd8">Generic</a></li>
<li><a href="#org5aa33de">Copy and move mails</a></li>
<li><a href="#org6ce0282">Sidebar</a></li>
<li><a href="#orgd383cd7">Reload Configuration</a></li>
<li><a href="#org5fccb4d">urlview - Open URL in emails</a></li>
<li><a href="#orgbe837d6">Searching using Mu</a></li>
<li><a href="#orgb1a7df6">Link to Orgmode</a>
<ul>
<li><a href="#orge02ba2d">Link mail to orgmode - Script</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#org623ded5">Colors</a>
<ul>
<li><a href="#orgcceb03a">Basic colors</a></li>
<li><a href="#orgfd072f9">Index</a></li>
<li><a href="#org59ccd6a">Sidebar</a></li>
<li><a href="#org35e03db">Message headers</a></li>
<li><a href="#org54756f8">Attachments</a></li>
<li><a href="#orgf06407f">Body</a></li>
<li><a href="#org28ee304">PGP</a></li>
<li><a href="#org1894a8b">Urls</a></li>
<li><a href="#org2284ebe">Emails</a></li>
</ul>
</li>
<li><a href="#org6ba784d">Contacts with Mu</a></li>
<li><a href="#org69d81ad">Paths</a></li>
<li><a href="#orgd9f320f">Print</a></li>
<li><a href="#org1e82b33">Accounts</a>
<ul>
<li><a href="#org828ef22">Gmail</a>
<ul>
<li><a href="#orga85ca57">Configuration</a></li>
<li><a href="#orgfd1fc2c">Signature</a></li>
</ul>
</li>
<li><a href="#org75c25aa">ESRF</a>
<ul>
<li><a href="#orgc73f3ee">Configuration</a></li>
<li><a href="#orgec15415">Signature</a></li>
</ul>
</li>
<li><a href="#org8c506c3">ULG</a>
<ul>
<li><a href="#orge71d6c0">Configuration</a></li>
<li><a href="#org80eda04">Signature</a></li>
</ul>
</li>
<li><a href="#org72df244">ULIEGE</a>
<ul>
<li><a href="#orge241344">Configuration</a></li>
<li><a href="#org57cee98">Signature</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#org51b1a85">Basic Options</a></li>
<li><a href="#orga161297">View Options</a>
<ul>
<li><a href="#orga690dc5">Status Bar</a></li>
<li><a href="#orgd0999b5">Index View Options</a></li>
<li><a href="#orgc6dc4ae">Pager View Options</a></li>
<li><a href="#org9f2042a">Compose View Options</a></li>
<li><a href="#org837fc15">Forward</a></li>
<li><a href="#orgda776cc">Headers</a></li>
</ul>
</li>
<li><a href="#org4faa6c7">Sidebar</a>
<ul>
<li><a href="#org763534f">General Config</a></li>
<li><a href="#org6ca1b3c">Mailboxes to show in the sidebar.</a></li>
</ul>
</li>
<li><a href="#org157cd54">Attachments</a>
<ul>
<li><a href="#orgc93e665">Attachment View Options</a></li>
<li><a href="#orge340736">Open Attachment</a></li>
<li><a href="#orgf2ad1ab">Attach multiple files at once</a></li>
<li><a href="#orga3edda8">Forgotten Attachment</a></li>
</ul>
</li>
<li><a href="#org13e7db9">Scripts and other config files</a>
<ul>
<li><a href="#org79adbed">Send Mail Script</a></li>
<li><a href="#orgd97dc62">Sync Mail Script</a></li>
<li><a href="#org87a1adc">Openfile Scripts</a></li>
<li><a href="#org9ed78a7">urlview Config</a></li>
<li><a href="#orgf793b48">Mailcap</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<p>
Installation:
</p>
<div class="org-src-container">
<pre class="src src-bash"> yay -S mbsync msmtp mu neomutt lynx
</pre>
</div>
<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">
<p>
<a href="http://isync.sourceforge.net/">http://isync.sourceforge.net/</a>
</p>
</div>
<div id="outline-container-orgfe8c5af" class="outline-3">
<h3 id="orgfe8c5af">Global Defaults</h3>
<div class="outline-text-3" id="text-orgfe8c5af">
<div class="org-src-container">
<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 *
<span class="org-comment-delimiter"># </span><span class="org-comment">Permanently remove all messages [on the Master/Slave] marked for deletion.</span>
Expunge Both
</pre>
</div>
</div>
</div>
<div id="outline-container-orge654715" class="outline-3">
<h3 id="orge654715">Gmail Account</h3>
<div class="outline-text-3" id="text-orge654715">
<div class="org-src-container">
<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
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"> IMAPStore gmail-remote
Account gmail
MaildirStore gmail-local
Path ~/.mail/gmail/
Inbox ~/.mail/gmail/Inbox
Channel gmail-Home
Master :gmail-remote:<span class="org-string">"INBOX"</span>
Slave :gmail-local:Inbox
Channel gmail-Drafts
Master :gmail-remote:<span class="org-string">"[Gmail]/Drafts"</span>
Slave :gmail-local:Drafts
Channel gmail-Sent
Master :gmail-remote:<span class="org-string">"[Gmail]/Sent Mail"</span>
Slave :gmail-local:Sent
Channel gmail-Trash
Master :gmail-remote:<span class="org-string">"[Gmail]/Trash"</span>
Slave :gmail-local:Trash
Channel gmail-All
Master :gmail-remote:<span class="org-string">"[Gmail]/All Mail"</span>
Slave :gmail-local:Archive
</pre>
</div>
<div class="org-src-container">
<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
Master :gmail-remote:
Slave :gmail-local:
<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 !Archive
Patterns !Drafts
Patterns !Sent Mail
Patterns !Trash
Patterns !Spam
Patterns !Starred
</pre>
</div>
<div class="org-src-container">
<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
Master :gmail-remote:<span class="org-string">"INBOX"</span>
Slave :gmail-local:Inbox
Create Slave
Expunge Slave
Sync Pull
</pre>
</div>
</div>
</div>
<div id="outline-container-org7ca6b97" class="outline-3">
<h3 id="org7ca6b97">ESRF Account</h3>
<div class="outline-text-3" id="text-org7ca6b97">
<div class="org-src-container">
<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
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"> IMAPStore esrf-remote
Account esrf
MaildirStore esrf-local
Path ~/.mail/esrf/
Inbox ~/.mail/esrf/Inbox
Channel esrf-Home
Master :esrf-remote:<span class="org-string">"Inbox"</span>
Slave :esrf-local:Inbox
Channel esrf-Drafts
Master :esrf-remote:<span class="org-string">"Drafts"</span>
Slave :esrf-local:Drafts
Channel esrf-Archive
Master :esrf-remote:<span class="org-string">"Archive"</span>
Slave :esrf-local:Archive
Channel esrf-Sent
Master :esrf-remote:<span class="org-string">"Sent"</span>
Slave :esrf-local:Sent
Channel esrf-Trash
Master :esrf-remote:<span class="org-string">"Trash"</span>
Slave :esrf-local:Trash
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"> Channel esrf
Master :esrf-remote:
Slave :esrf-local:
</pre>
</div>
<p>
For doing a quick sync of just the INBOX with `mbsync esrf-download`.
</p>
<div class="org-src-container">
<pre class="src src-conf"> Channel esrf-download
Master :esrf-remote:<span class="org-string">"INBOX"</span>
Slave :esrf-local:Inbox
Create Slave
Expunge Slave
Sync Pull
</pre>
</div>
</div>
</div>
<div id="outline-container-org62106bc" class="outline-3">
<h3 id="org62106bc">ULG Student Account</h3>
<div class="outline-text-3" id="text-org62106bc">
<div class="org-src-container">
<pre class="src src-conf"> IMAPAccount ulg
Host mail.ulg.ac.be
User thomas.dehaeze@doct.uliege.be
PassCmd <span class="org-string">"pass email/thomas.dehaeze@doct.uliege.be"</span>
SSLType IMAPS
AuthMechs LOGIN
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"> IMAPStore ulg-remote
Account ulg
MaildirStore ulg-local
Path ~/.mail/ulg/
Inbox ~/.mail/ulg/Inbox
Channel ulg-Home
Master :ulg-remote:<span class="org-string">"Inbox"</span>
Slave :ulg-local:Inbox
Channel ulg-Drafts
Master :ulg-remote:<span class="org-string">"Drafts"</span>
Slave :ulg-local:Drafts
Channel ulg-Archive
Master :ulg-remote:<span class="org-string">"Archive"</span>
Slave :ulg-local:Archive
Channel ulg-Sent
Master :ulg-remote:<span class="org-string">"Sent"</span>
Slave :ulg-local:Sent
Channel ulg-Trash
Master :ulg-remote:<span class="org-string">"Trash"</span>
Slave :ulg-local:Trash
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"> Channel ulg
Master :ulg-remote:
Slave :ulg-local:
</pre>
</div>
<p>
For doing a quick sync of just the INBOX with `mbsync ulg-download`.
</p>
<div class="org-src-container">
<pre class="src src-conf"> Channel ulg-download
Master :ulg-remote:<span class="org-string">"Inbox"</span>
Slave :ulg-local:Inbox
Create Slave
Expunge Slave
Sync Pull
</pre>
</div>
</div>
</div>
<div id="outline-container-org0b87d58" class="outline-3">
<h3 id="org0b87d58">ULG Personal Account</h3>
<div class="outline-text-3" id="text-org0b87d58">
<div class="org-src-container">
<pre class="src src-conf"> IMAPAccount uliege
Host mail.ulg.ac.be
User tdehaeze@uliege.be
PassCmd <span class="org-string">"pass email/tdehaeze@uliege.be"</span>
SSLType IMAPS
AuthMechs LOGIN
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"> IMAPStore uliege-remote
Account uliege
MaildirStore uliege-local
Path ~/.mail/uliege/
Inbox ~/.mail/uliege/Inbox
Channel uliege-Home
Master :uliege-remote:<span class="org-string">"Inbox"</span>
Slave :uliege-local:Inbox
Channel uliege-Drafts
Master :uliege-remote:<span class="org-string">"Drafts"</span>
Slave :uliege-local:Drafts
Channel uliege-Archive
Master :uliege-remote:<span class="org-string">"Archive"</span>
Slave :uliege-local:Archive
Channel uliege-Sent
Master :uliege-remote:<span class="org-string">"Sent"</span>
Slave :uliege-local:Sent
Channel uliege-Trash
Master :uliege-remote:<span class="org-string">"Trash"</span>
Slave :uliege-local:Trash
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"> Channel uliege
Master :uliege-remote:
Slave :uliege-local:
</pre>
</div>
<p>
For doing a quick sync of just the INBOX with `mbsync uliege-download`.
</p>
<div class="org-src-container">
<pre class="src src-conf"> Channel uliege-download
Master :uliege-remote:<span class="org-string">"Inbox"</span>
Slave :uliege-local:Inbox
Create Slave
Expunge Slave
Sync Pull
</pre>
</div>
</div>
</div>
</div>
<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">
<p>
<a href="https://marlam.de/msmtp/">https://marlam.de/msmtp/</a>
</p>
</div>
<div id="outline-container-org4a1b391" class="outline-3">
<h3 id="org4a1b391">Defaults</h3>
<div class="outline-text-3" id="text-org4a1b391">
<div class="org-src-container">
<pre class="src src-conf"> defaults
auth on
tls on
tls_certcheck off
</pre>
</div>
</div>
</div>
<div id="outline-container-org285559b" class="outline-3">
<h3 id="org285559b">Gmail Account</h3>
<div class="outline-text-3" id="text-org285559b">
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-org4a88ed5" class="outline-3">
<h3 id="org4a88ed5">ESRF Account</h3>
<div class="outline-text-3" id="text-org4a88ed5">
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-orga821cde" class="outline-3">
<h3 id="orga821cde">ULG Account</h3>
<div class="outline-text-3" id="text-orga821cde">
<div class="org-src-container">
<pre class="src src-conf"> account ulg
host smtp.ulg.ac.be
port <span class="org-highlight-numbers-number">587</span>
protocol smtp
from thomas.dehaeze@doct.uliege.be
user s177313
tls_starttls on
passwordeval <span class="org-string">"pass email/thomas.dehaeze@doct.uliege.be"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org9bced56" class="outline-3">
<h3 id="org9bced56">ULIEGE Account</h3>
<div class="outline-text-3" id="text-org9bced56">
<div class="org-src-container">
<pre class="src src-conf"> account uliege
host smtp.ulg.ac.be
port <span class="org-highlight-numbers-number">587</span>
protocol smtp
from tdehaeze@uliege.be
user u231244
tls_starttls on
passwordeval <span class="org-string">"pass email/tdehaeze@uliege.be"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org8274d8c" class="outline-3">
<h3 id="org8274d8c">Default Account</h3>
<div class="outline-text-3" id="text-org8274d8c">
<div class="org-src-container">
<pre class="src src-conf"> account default : gmail
</pre>
</div>
</div>
</div>
</div>
<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">
<p>
<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:
</p>
<div class="org-src-container">
<pre class="src src-bash"> mu <span class="org-type">find</span> <span class="org-string">'mime:application/pdf'</span>
</pre>
</div>
</div>
</div>
<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">
<p>
<a href="https://neomutt.org/">https://neomutt.org/</a>
</p>
<p>
Documentation:
</p>
<div class="org-src-container">
<pre class="src src-bash"> man neomutt
man neomuttrc
</pre>
</div>
</div>
<div id="outline-container-org22d5357" class="outline-3">
<h3 id="org22d5357">Bindings</h3>
<div class="outline-text-3" id="text-org22d5357">
</div>
<div id="outline-container-orgabf02bf" class="outline-4">
<h4 id="orgabf02bf">Unding all the key bindings</h4>
<div class="outline-text-4" id="text-orgabf02bf">
<div class="org-src-container">
<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
</pre>
</div>
</div>
</div>
<div id="outline-container-orgab6327c" class="outline-4">
<h4 id="orgab6327c">Quit Neomutt</h4>
<div class="outline-text-4" id="text-orgab6327c">
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-org784ab60" class="outline-4">
<h4 id="org784ab60">Generic</h4>
<div class="outline-text-4" id="text-org784ab60">
<div class="org-src-container">
<pre class="src src-conf"> bind generic Q exit
bind generic &lt;Return&gt; select-entry
bind generic l select-entry
bind generic,index k previous-entry
bind generic,index j next-entry
bind generic,index <span class="org-highlight-numbers-number">0</span> first-entry
bind generic,index $ last-entry
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>
bind generic,index gg first-entry
bind generic,index G last-entry
bind generic,index,pager \Cu half-up
bind generic,index,pager \Cd half-down
bind generic,index,pager \Ce next-line
bind generic,index,pager \Cy previous-line
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc3a79b4" class="outline-4">
<h4 id="orgc3a79b4">Index and Pager</h4>
<div class="outline-text-4" id="text-orgc3a79b4">
<div class="org-src-container">
<pre class="src src-conf"> bind pager k previous-line
bind pager j next-line
bind index &lt;space&gt; collapse-thread
bind index,pager K previous-entry
bind index,pager J next-entry
bind index l display-message
bind index &lt;Return&gt; display-message
bind pager l view-attachments
bind pager gg top
bind pager <span class="org-highlight-numbers-number">0</span> top
bind pager G bottom
bind pager $ bottom
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
macro index c <span class="org-string">"&lt;change-folder&gt;?&lt;toggle-mailboxes&gt;"</span> <span class="org-string">"change folder"</span>
bind index,pager u undelete-message
bind index,pager P print-message
<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
<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>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"> bind index za collapse-thread
bind index zA collapse-all <span class="org-comment-delimiter"># </span><span class="org-comment">Missing :folddisable/foldenable</span>
</pre>
</div>
<p>
Write/Reply/Forward mail
</p>
<div class="org-src-container">
<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
</pre>
</div>
<p>
Sync Mailbox
</p>
<div class="org-src-container">
<pre class="src src-conf"> bind index,pager s sync-mailbox
</pre>
</div>
<p>
Sync email
</p>
<div class="org-src-container">
<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>
</pre>
</div>
<p>
Make quick html view macro
</p>
<div class="org-src-container">
<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>
</pre>
</div>
<p>
Open mail with Vim
</p>
<div class="org-src-container">
<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>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"> <span class="org-comment-delimiter"># </span><span class="org-comment">bind index,pager U toggle-new</span>
</pre>
</div>
<p>
Labels
</p>
<div class="org-src-container">
<pre class="src src-conf"> bind index,pager y edit-label
bind index,pager Y modify-labels
</pre>
</div>
</div>
</div>
<div id="outline-container-orge2cd847" class="outline-4">
<h4 id="orge2cd847">Limit</h4>
<div class="outline-text-4" id="text-orge2cd847">
<div class="org-src-container">
<pre class="src src-conf"> bind index L limit
macro index a &lt;limit&gt;all&lt;enter&gt;
</pre>
</div>
</div>
</div>
<div id="outline-container-orgdaa2ab4" class="outline-4">
<h4 id="orgdaa2ab4">Search</h4>
<div class="outline-text-4" id="text-orgdaa2ab4">
<div class="org-src-container">
<pre class="src src-conf"> bind generic,index,pager / search
bind index,pager n search-next
bind index,pager N search-opposite
</pre>
</div>
</div>
</div>
<div id="outline-container-org1c179c6" class="outline-4">
<h4 id="org1c179c6">Attachments</h4>
<div class="outline-text-4" id="text-org1c179c6">
<div class="org-src-container">
<pre class="src src-conf"> bind attach l view-attach
bind attach h exit
bind attach q exit
bind attach &lt;return&gt; view-mailcap
macro attach W &lt;save-entry&gt;&lt;kill-line&gt;~/Downloads/&lt;enter&gt;y <span class="org-string">"Save entry"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orga27e33b" class="outline-4">
<h4 id="orga27e33b">Compose</h4>
<div class="outline-text-4" id="text-orga27e33b">
<div class="org-src-container">
<pre class="src src-conf"> bind compose p postpone-message
bind compose R rename-attachment
bind compose a attach-file
</pre>
</div>
<p>
Open another instance of neomutt in readonly mode while composing
</p>
<div class="org-src-container">
<pre class="src src-conf"> macro compose M <span class="org-string">"&lt;shell-escape&gt;$TERMINAL -e \"neomutt -R\"&lt;enter&gt;"</span>
</pre>
</div>
<p>
Attach multiple files using ranger
</p>
<div class="org-src-container">
<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>
</pre>
</div>
<p>
Attach file by drooping from GUI
</p>
<div class="org-src-container">
<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>
</pre>
</div>
</div>
<div id="outline-container-orgf944cb5" class="outline-5">
<h5 id="orgf944cb5">Attach with Ranger Script</h5>
<div class="outline-text-5" id="text-orgf944cb5">
<div class="org-src-container">
<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>
dragon-drag-and-drop --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>
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-org37ddfcf" class="outline-5">
<h5 id="org37ddfcf">Send HTML mails using Markdown</h5>
<div class="outline-text-5" id="text-org37ddfcf">
<p>
Write html emails using markdown
</p>
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org1ff0684" class="outline-4">
<h4 id="org1ff0684">Browser</h4>
<div class="outline-text-4" id="text-org1ff0684">
<div class="org-src-container">
<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>
bind browser t tag-entry
bind browser q exit
</pre>
</div>
</div>
</div>
<div id="outline-container-org39a5bd8" class="outline-4">
<h4 id="org39a5bd8">Generic</h4>
<div class="outline-text-4" id="text-org39a5bd8">
<p>
Enter Command
</p>
<div class="org-src-container">
<pre class="src src-conf"> bind generic,index,pager : enter-command
</pre>
</div>
</div>
</div>
<div id="outline-container-org5aa33de" class="outline-4">
<h4 id="org5aa33de">Copy and move mails</h4>
<div class="outline-text-4" id="text-org5aa33de">
<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>
</div>
</div>
<div id="outline-container-org6ce0282" class="outline-4">
<h4 id="org6ce0282">Sidebar</h4>
<div class="outline-text-4" id="text-org6ce0282">
<div class="org-src-container">
<pre class="src src-conf"> bind index,pager \Cp sidebar-prev
bind index,pager \Cn sidebar-next
bind index,pager \Co sidebar-open
bind index,pager \Ch sidebar-toggle-visible
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd383cd7" class="outline-4">
<h4 id="orgd383cd7">Reload Configuration</h4>
<div class="outline-text-4" id="text-orgd383cd7">
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-org5fccb4d" class="outline-4">
<h4 id="org5fccb4d">urlview - Open URL in emails</h4>
<div class="outline-text-4" id="text-org5fccb4d">
<p>
Use <code>urlview</code> to extract urls from the mail.
</p>
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgbe837d6" class="outline-4">
<h4 id="orgbe837d6">Searching using Mu</h4>
<div class="outline-text-4" id="text-orgbe837d6">
<div class="org-src-container">
<pre class="src src-conf"> macro index,pager \Cf <span class="org-string">"&lt;shell-escape&gt;mu find --clearlinks --format=links --linksdir=~/.mail/search "</span> \
<span class="org-string">"mu find"</span>
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>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgb1a7df6" class="outline-4">
<h4 id="orgb1a7df6">Link to Orgmode</h4>
<div class="outline-text-4" id="text-orgb1a7df6">
<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>
<div class="org-src-container">
<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>
</pre>
</div>
</div>
<div id="outline-container-orge02ba2d" class="outline-5">
<h5 id="orge02ba2d">Link mail to orgmode - Script</h5>
<div class="outline-text-5" id="text-orge02ba2d">
<div class="org-src-container">
<pre class="src src-python"> <span class="org-keyword">import</span> sys
<span class="org-keyword">import</span> email
<span class="org-keyword">import</span> subprocess
<span class="org-keyword">import</span> urllib.parse
<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()
<span class="org-variable-name">message</span> = email.message_from_bytes(message_bytes)
<span class="org-comment-delimiter"># </span><span class="org-comment">Grab the relevant message headers</span>
<span class="org-variable-name">message_id</span> = urllib.parse.quote(message[<span class="org-string">'message-id'</span>].strip()[<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>].replace(<span class="org-string">'['</span>, <span class="org-string">'{'</span>).replace(<span class="org-string">']'</span>, <span class="org-string">'}'</span>).replace(<span class="org-string">'\n'</span>, <span class="org-string">' '</span>)
<span class="org-variable-name">subject</span> = (subject[:<span class="org-highlight-numbers-number">75</span>] + <span class="org-string">'..'</span>) <span class="org-keyword">if</span> <span class="org-builtin">len</span>(subject) &gt; <span class="org-highlight-numbers-number">75</span> <span class="org-keyword">else</span> subject
<span class="org-comment-delimiter"># </span><span class="org-comment">Ask emacsclient to save a link to the message</span>
<span class="org-variable-name">p</span> = subprocess.Popen([
<span class="org-string">'emacsclient'</span>,
f<span class="org-string">'org-protocol://capture?template=pm&amp;url={message_id}&amp;title={subject}'</span>
])
p.wait()
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="outline-container-org623ded5" class="outline-3">
<h3 id="org623ded5">Colors</h3>
<div class="outline-text-3" id="text-org623ded5">
</div>
<div id="outline-container-orgcceb03a" class="outline-4">
<h4 id="orgcceb03a">Basic colors</h4>
<div class="outline-text-4" id="text-orgcceb03a">
<div class="org-src-container">
<pre class="src src-conf"> color normal color021 color000
color error color021 color000
color tilde color021 color000
color message color021 color000
color markers color021 color000
color attachment color021 color000
color search color000 color003
color status color016 color000
color indicator color000 color021
color tree color021 color000
color progress color000 color021
<span class="org-comment-delimiter"># </span><span class="org-comment">basic monocolor screen</span>
mono bold bold
mono underline underline
mono indicator reverse
mono error bold
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfd072f9" class="outline-4">
<h4 id="orgfd072f9">Index</h4>
<div class="outline-text-4" id="text-orgfd072f9">
<div class="org-src-container">
<pre class="src src-conf"> color index color021 color000 <span class="org-string">"~A"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">All messages</span>
color index brightcolor006 color000 <span class="org-string">"~N"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">New messages</span>
color index color020 color000 <span class="org-string">"~O"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Old messages</span>
color index color020 color000 <span class="org-string">"~Q"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">messages that have been replied to</span>
color index color021 color000 <span class="org-string">"~R"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">read messages</span>
color index color006 color000 <span class="org-string">"~U"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">unread messages</span>
color index color021 color000 <span class="org-string">"~R~p!~F"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">messages to me</span>
color index brightcolor006 color000 <span class="org-string">"~N~p!~F"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">new messages to me</span>
color index brightcolor006 color000 <span class="org-string">"~U~p!~F"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">unread messages to me</span>
color index color005 color000 <span class="org-string">"~F"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">flagged messages</span>
color index color005 color000 <span class="org-string">"~F~p"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">flagged messages to me</span>
color index brightcolor006 color000 <span class="org-string">"~N~F"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">new flagged messages</span>
color index brightcolor006 color000 <span class="org-string">"~N~F~p"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">new flagged messages to me</span>
color index brightcolor006 color000 <span class="org-string">"~U~F~p"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">new flagged messages to me</span>
color index brightcolor000 color001 <span class="org-string">"~D"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">deleted messages</span>
color index brightcolor021 color019 <span class="org-string">"~v~(!~N)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with no unread</span>
color index brightcolor006 color019 <span class="org-string">"~v~(~N)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with some unread</span>
color index brightcolor006 color019 <span class="org-string">"~N~v~(~N)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with unread parent</span>
color index brightcolor005 color019 <span class="org-string">"~v~(~F)!~N"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with flagged, no unread</span>
color index brightcolor006 color019 <span class="org-string">"~v~(~F~N)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with some unread &amp; flagged</span>
color index brightcolor006 color019 <span class="org-string">"~N~v~(~F~N)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with unread parent &amp; flagged</span>
color index brightcolor005 color019 <span class="org-string">"~N~v~(~F)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">collapsed thread with unread parent, no unread inside, but some flagged</span>
color index brightcolor000 color001 <span class="org-string">"~v~(~D)"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">thread with deleted (doesn't differentiate between all or partial)</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org59ccd6a" class="outline-4">
<h4 id="org59ccd6a">Sidebar</h4>
<div class="outline-text-4" id="text-org59ccd6a">
<div class="org-src-container">
<pre class="src src-conf"> color sidebar_indicator color000 color021 <span class="org-comment-delimiter"># </span><span class="org-comment">Mailbox is open</span>
color sidebar_highlight color000 color003 <span class="org-comment-delimiter"># </span><span class="org-comment">Mailbox is highlighted</span>
color sidebar_new brightcolor006 color000 <span class="org-comment-delimiter"># </span><span class="org-comment">Mailbox contains new mail</span>
color sidebar_ordinary color021 color000 <span class="org-comment-delimiter"># </span><span class="org-comment">Mailbox contains new mail</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org35e03db" class="outline-4">
<h4 id="org35e03db">Message headers</h4>
<div class="outline-text-4" id="text-org35e03db">
<div class="org-src-container">
<pre class="src src-conf"> color hdrdefault color006 color000
color header brightcolor006 color000 <span class="org-string">"^(From)"</span>
color header brightcolor004 color000 <span class="org-string">"^(Subject)"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org54756f8" class="outline-4">
<h4 id="org54756f8">Attachments</h4>
<div class="outline-text-4" id="text-org54756f8">
<div class="org-src-container">
<pre class="src src-conf"> <span class="org-comment-delimiter"># </span><span class="org-comment">Color if the attachment is autoviewed</span>
color attach_headers brightgreen default <span class="org-string">"Autoview"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Color only the brackets around the headers</span>
color attach_headers brightyellow default <span class="org-string">"^\\[--"</span>
color attach_headers brightyellow default <span class="org-string">"--]$"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Color the mime type and the size</span>
color attach_headers green default <span class="org-string">"Type: [a-z]+/[a-z0-9\-]+"</span>
color attach_headers green default <span class="org-string">"Size: [0-9\.]+[KM]"</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Color GPGME signature checks</span>
color attach_headers brightgreen default <span class="org-string">"Good signature from.*"</span>
color attach_headers brightred default <span class="org-string">"Bad signature from.*"</span>
color attach_headers brightred default <span class="org-string">"BAD signature from.*"</span>
color attach_headers brightred default <span class="org-string">"Note: This key has expired!"</span>
color attach_headers brightmagenta default <span class="org-string">"Problem signature from.*"</span>
color attach_headers brightmagenta default <span class="org-string">"WARNING: This key is not certified with a trusted signature!"</span>
color attach_headers brightmagenta default <span class="org-string">" There is no indication that the signature belongs to the owner."</span>
color attach_headers brightmagenta default <span class="org-string">"can't handle these multiple signatures"</span>
color attach_headers brightmagenta default <span class="org-string">"signature verification suppressed"</span>
color attach_headers brightmagenta default <span class="org-string">"invalid node with packet of type"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf06407f" class="outline-4">
<h4 id="orgf06407f">Body</h4>
<div class="outline-text-4" id="text-orgf06407f">
<div class="org-src-container">
<pre class="src src-conf"> color quoted color002 color000
color quoted1 color003 color000
color quoted2 color004 color000
color quoted3 color005 color000
color quoted4 color006 color000
color signature color021 color000
color bold brightcolor021 color000
color underline brightcolor021 color000
color normal color021 color000
</pre>
</div>
</div>
</div>
<div id="outline-container-org28ee304" class="outline-4">
<h4 id="org28ee304">PGP</h4>
<div class="outline-text-4" id="text-org28ee304">
<div class="org-src-container">
<pre class="src src-conf"> color body color001 color000 <span class="org-string">"(BAD signature)"</span>
color body color002 color000 <span class="org-string">"(Good signature)"</span>
color body color002 color000 <span class="org-string">"^gpg: Good signature .*"</span>
color body color002 color000 <span class="org-string">"^gpg: "</span>
color body color002 color000 <span class="org-string">"^gpg: BAD signature from.*"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org1894a8b" class="outline-4">
<h4 id="org1894a8b">Urls</h4>
<div class="outline-text-4" id="text-org1894a8b">
<div class="org-src-container">
<pre class="src src-conf"> color body color006 color000 <span class="org-string">"([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&amp;=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&amp;=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&amp;=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&amp;=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&amp;=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&amp;=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&amp;=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&amp;=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&amp;=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&amp;=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&amp;=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&amp;=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&amp;=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&amp;=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n&lt;&gt;\"]"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org2284ebe" class="outline-4">
<h4 id="org2284ebe">Emails</h4>
<div class="outline-text-4" id="text-org2284ebe">
<div class="org-src-container">
<pre class="src src-conf"> color body color006 color000 <span class="org-string">"((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])"</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org6ba784d" class="outline-3">
<h3 id="org6ba784d">Contacts with Mu</h3>
<div class="outline-text-3" id="text-org6ba784d">
<div class="org-src-container">
<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>
bind editor &lt;Tab&gt; complete-query
</pre>
</div>
</div>
</div>
<div id="outline-container-org69d81ad" class="outline-3">
<h3 id="org69d81ad">Paths</h3>
<div class="outline-text-3" id="text-org69d81ad">
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd9f320f" class="outline-3">
<h3 id="orgd9f320f">Print</h3>
<div class="outline-text-3" id="text-orgd9f320f">
<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">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-org1e82b33" class="outline-3">
<h3 id="org1e82b33">Accounts</h3>
<div class="outline-text-3" id="text-org1e82b33">
<div class="org-src-container">
<pre class="src src-conf"> <span class="org-variable-name">set spoolfile</span> = <span class="org-string">"+gmail/Inbox"</span> <span class="org-comment-delimiter"># </span><span class="org-comment">Default inbox</span>
<span class="org-variable-name">set realname</span> = <span class="org-string">"Dehaeze Thomas"</span>
<span class="org-variable-name">set from</span> = <span class="org-string">"dehaeze.thomas@gmail.com"</span>
folder-hook gmail/* source ~/.config/neomutt/accounts/gmail
folder-hook esrf/* source ~/.config/neomutt/accounts/esrf
folder-hook ulg/* source ~/.config/neomutt/accounts/ulg
folder-hook uliege/* source ~/.config/neomutt/accounts/uliege
macro index,pager gl <span class="org-string">"&lt;change-folder&gt;+uliege/Inbox&lt;enter&gt;"</span> <span class="org-string">"go to inbox"</span>
macro index,pager gu <span class="org-string">"&lt;change-folder&gt;+ulg/Inbox&lt;enter&gt;"</span> <span class="org-string">"go to inbox"</span>
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>
</pre>
</div>
</div>
<div id="outline-container-org828ef22" class="outline-4">
<h4 id="org828ef22">Gmail</h4>
<div class="outline-text-4" id="text-org828ef22">
</div>
<div id="outline-container-orga85ca57" class="outline-5">
<h5 id="orga85ca57">Configuration</h5>
<div class="outline-text-5" id="text-orga85ca57">
<div class="org-src-container">
<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>
<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">"+gmail/Archive"</span>
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>
<span class="org-variable-name">set postponed</span> = <span class="org-string">"+gmail/Drafts"</span>
<span class="org-variable-name">set signature</span> = <span class="org-string">"~/.config/neomutt/accounts/gmail.signature"</span>
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>
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>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfd1fc2c" class="outline-5">
<h5 id="orgfd1fc2c">Signature</h5>
<div class="outline-text-5" id="text-orgfd1fc2c">
<div class="org-src-container">
<pre class="src src-conf"> Thomas Dehaeze
</pre>
</div>
<p>
This empty code block is used to add a new line after signature
</p>
<div class="org-src-container">
<pre class="src src-conf">
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org75c25aa" class="outline-4">
<h4 id="org75c25aa">ESRF</h4>
<div class="outline-text-4" id="text-org75c25aa">
</div>
<div id="outline-container-orgc73f3ee" class="outline-5">
<h5 id="orgc73f3ee">Configuration</h5>
<div class="outline-text-5" id="text-orgc73f3ee">
<div class="org-src-container">
<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>
<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>
<span class="org-variable-name">set signature</span> = <span class="org-string">"~/.config/neomutt/accounts/esrf.signature"</span>
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>
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>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgec15415" class="outline-5">
<h5 id="orgec15415">Signature</h5>
<div class="outline-text-5" id="text-orgec15415">
<div class="org-src-container">
<pre class="src src-conf"> Thomas Dehaeze
</pre>
</div>
<p>
This empty code block is used to add a new line after signature
</p>
<div class="org-src-container">
<pre class="src src-conf">
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org8c506c3" class="outline-4">
<h4 id="org8c506c3">ULG</h4>
<div class="outline-text-4" id="text-org8c506c3">
</div>
<div id="outline-container-orge71d6c0" class="outline-5">
<h5 id="orge71d6c0">Configuration</h5>
<div class="outline-text-5" id="text-orge71d6c0">
<div class="org-src-container">
<pre class="src src-conf"> <span class="org-variable-name">set from</span> = <span class="org-string">"thomas.dehaeze@doct.uliege.be"</span>
<span class="org-variable-name">set sendmail</span> = <span class="org-string">"~/.config/neomutt/bin/send_mail.sh ulg"</span>
<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">"+ulg/Archive"</span>
<span class="org-variable-name">set record</span> = <span class="org-string">"+ulg/Sent"</span>
<span class="org-variable-name">set postponed</span> = <span class="org-string">"+ulg/Drafts"</span>
<span class="org-variable-name">set signature</span> = <span class="org-string">"~/.config/neomutt/accounts/ulg.signature"</span>
macro index,pager d \
<span class="org-string">"&lt;save-message&gt;+ulg/Archive&lt;enter&gt;"</span> \
<span class="org-string">"Move message to the Archive"</span>
macro index,pager D \
<span class="org-string">"&lt;save-message&gt;+ulg/Trash&lt;enter&gt;"</span> \
<span class="org-string">"Move message to the Trash"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org80eda04" class="outline-5">
<h5 id="org80eda04">Signature</h5>
<div class="outline-text-5" id="text-org80eda04">
<div class="org-src-container">
<pre class="src src-conf"> Thomas Dehaeze
</pre>
</div>
<p>
This empty code block is used to add a new line after signature
</p>
<div class="org-src-container">
<pre class="src src-conf">
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org72df244" class="outline-4">
<h4 id="org72df244">ULIEGE</h4>
<div class="outline-text-4" id="text-org72df244">
</div>
<div id="outline-container-orge241344" class="outline-5">
<h5 id="orge241344">Configuration</h5>
<div class="outline-text-5" id="text-orge241344">
<div class="org-src-container">
<pre class="src src-conf"> <span class="org-variable-name">set from</span> = <span class="org-string">"tdehaeze@uliege.be"</span>
<span class="org-variable-name">set sendmail</span> = <span class="org-string">"~/.config/neomutt/bin/send_mail.sh uliege"</span>
<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">"+uliege/Archive"</span>
<span class="org-variable-name">set record</span> = <span class="org-string">"+uliege/Sent"</span>
<span class="org-variable-name">set postponed</span> = <span class="org-string">"+uliege/Drafts"</span>
<span class="org-variable-name">set signature</span> = <span class="org-string">"~/.config/neomutt/accounts/uliege.signature"</span>
macro index,pager d \
<span class="org-string">"&lt;save-message&gt;+uliege/Archive&lt;enter&gt;"</span> \
<span class="org-string">"Move message to the Archive"</span>
macro index,pager D \
<span class="org-string">"&lt;save-message&gt;+uliege/Trash&lt;enter&gt;"</span> \
<span class="org-string">"Move message to the Trash"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org57cee98" class="outline-5">
<h5 id="org57cee98">Signature</h5>
<div class="outline-text-5" id="text-org57cee98">
<div class="org-src-container">
<pre class="src src-conf"> Thomas Dehaeze
</pre>
</div>
<p>
This empty code block is used to add a new line after signature
</p>
<div class="org-src-container">
<pre class="src src-conf">
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="outline-container-org51b1a85" class="outline-3">
<h3 id="org51b1a85">Basic Options</h3>
<div class="outline-text-3" id="text-org51b1a85">
<div class="org-src-container">
<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>
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-orga161297" class="outline-3">
<h3 id="orga161297">View Options</h3>
<div class="outline-text-3" id="text-orga161297">
</div>
<div id="outline-container-orga690dc5" class="outline-4">
<h4 id="orga690dc5">Status Bar</h4>
<div class="outline-text-4" id="text-orga690dc5">
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd0999b5" class="outline-4">
<h4 id="orgd0999b5">Index View Options</h4>
<div class="outline-text-4" id="text-orgd0999b5">
<div class="org-src-container">
<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>
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc6dc4ae" class="outline-4">
<h4 id="orgc6dc4ae">Pager View Options</h4>
<div class="outline-text-4" id="text-orgc6dc4ae">
<div class="org-src-container">
<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>
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>
</pre>
</div>
</div>
</div>
<div id="outline-container-org9f2042a" class="outline-4">
<h4 id="org9f2042a">Compose View Options</h4>
<div class="outline-text-4" id="text-org9f2042a">
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-org837fc15" class="outline-4">
<h4 id="org837fc15">Forward</h4>
<div class="outline-text-4" id="text-org837fc15">
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgda776cc" class="outline-4">
<h4 id="orgda776cc">Headers</h4>
<div class="outline-text-4" id="text-orgda776cc">
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org4faa6c7" class="outline-3">
<h3 id="org4faa6c7">Sidebar</h3>
<div class="outline-text-3" id="text-org4faa6c7">
</div>
<div id="outline-container-org763534f" class="outline-4">
<h4 id="org763534f">General Config</h4>
<div class="outline-text-4" id="text-org763534f">
<div class="org-src-container">
<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
<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>
<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
<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>
<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
<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>
<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
<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>
<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
<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
<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>
<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
<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>
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-org6ca1b3c" class="outline-4">
<h4 id="org6ca1b3c">Mailboxes to show in the sidebar.</h4>
<div class="outline-text-4" id="text-org6ca1b3c">
<div class="org-src-container">
<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
named-mailboxes <span class="org-string">" ULG"</span> =empty/ulg
named-mailboxes <span class="org-string">" &#61468; Inbox"</span> =ulg/Inbox
named-mailboxes <span class="org-string">" &#61912; Sent"</span> =ulg/Sent
named-mailboxes <span class="org-string">" &#61508; Drafts"</span> =ulg/Drafts
named-mailboxes <span class="org-string">" &#64394; Archive"</span> =ulg/Archive
named-mailboxes <span class="org-string">" &#61460; Trash"</span> =ulg/Trash
named-mailboxes <span class="org-string">" ULIEGE"</span> =empty/uliege
named-mailboxes <span class="org-string">" &#61468; Inbox"</span> =uliege/Inbox
named-mailboxes <span class="org-string">" &#61912; Sent"</span> =uliege/Sent
named-mailboxes <span class="org-string">" &#61508; Drafts"</span> =uliege/Drafts
named-mailboxes <span class="org-string">" &#64394; Archive"</span> =uliege/Archive
named-mailboxes <span class="org-string">" &#61460; Trash"</span> =uliege/Trash
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"> unset move
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org157cd54" class="outline-3">
<h3 id="org157cd54">Attachments</h3>
<div class="outline-text-3" id="text-org157cd54">
</div>
<div id="outline-container-orgc93e665" class="outline-4">
<h4 id="orgc93e665">Attachment View Options</h4>
<div class="outline-text-4" id="text-orgc93e665">
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-orge340736" class="outline-4">
<h4 id="orge340736">Open Attachment</h4>
<div class="outline-text-4" id="text-orge340736">
<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>
<div id="outline-container-orgf2ad1ab" class="outline-4">
<h4 id="orgf2ad1ab">Attach multiple files at once</h4>
<div class="outline-text-4" id="text-orgf2ad1ab">
<p>
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.
</p>
</div>
</div>
<div id="outline-container-orga3edda8" class="outline-4">
<h4 id="orga3edda8">Forgotten Attachment</h4>
<div class="outline-text-4" id="text-orga3edda8">
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org13e7db9" class="outline-3">
<h3 id="org13e7db9">Scripts and other config files</h3>
<div class="outline-text-3" id="text-org13e7db9">
</div>
<div id="outline-container-org79adbed" class="outline-4">
<h4 id="org79adbed">Send Mail Script</h4>
<div class="outline-text-4" id="text-org79adbed">
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd97dc62" class="outline-4">
<h4 id="orgd97dc62">Sync Mail Script</h4>
<div class="outline-text-4" id="text-orgd97dc62">
<div class="org-src-container">
<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>
</pre>
</div>
</div>
</div>
<div id="outline-container-org87a1adc" class="outline-4">
<h4 id="org87a1adc">Openfile Scripts</h4>
<div class="outline-text-4" id="text-org87a1adc">
<div class="org-src-container">
<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>
<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>
<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>
<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>
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;
</pre>
</div>
</div>
</div>
<div id="outline-container-org9ed78a7" class="outline-4">
<h4 id="org9ed78a7">urlview Config</h4>
<div class="outline-text-4" id="text-org9ed78a7">
<div class="org-src-container">
<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;\):]
COMMAND nohup qutebrowser %s &lt;/dev/null &amp;&gt;/dev/null &amp;
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf793b48" class="outline-4">
<h4 id="orgf793b48">Mailcap</h4>
<div class="outline-text-4" id="text-orgf793b48">
<p>
Generic
</p>
<div class="org-src-container">
<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
<span class="org-variable-name">text/html; export DISPLAY</span>=:<span class="org-highlight-numbers-number">0</span> &amp;&amp; setsid qutebrowser %s; nametemplate=%s.html
<span class="org-variable-name">text/html; lynx -width ${COLUMNS:-80} -dump %s; nametemplate</span>=%s.html; copiousoutput;
text/calendar; khal import --batch -a home %s &amp;&amp; khal printics %s; copiousoutput;
application/ics; khal import --batch -a home %s &amp;&amp; khal printics %s; copiousoutput;
</pre>
</div>
<p>
Libreoffice
</p>
<div class="org-src-container">
<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
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2021-01-04 lun. 21:32</p>
</div>
</body>
</html>