2048 lines
92 KiB
HTML
2048 lines
92 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-10-25 lun. 14:33 -->
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
<title>Mail Configuration</title>
|
|
<meta name="author" content="Dehaeze Thomas" />
|
|
<meta name="generator" content="Org Mode" />
|
|
<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" class="content">
|
|
<h1 class="title">Mail Configuration</h1>
|
|
<div id="table-of-contents" role="doc-toc">
|
|
<h2>Table of Contents</h2>
|
|
<div id="text-table-of-contents" role="doc-toc">
|
|
<ul>
|
|
<li><a href="#mbsync"><code>mbsync</code> - Synchronize Mailboxes</a>
|
|
<ul>
|
|
<li><a href="#orgfe8c5af">Global Defaults</a></li>
|
|
<li><a href="#orgb0c3173">Gmail Account</a></li>
|
|
<li><a href="#org0a8a59b">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="#orgb0d4eab">Gmail Account</a></li>
|
|
<li><a href="#org8d2a90a">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="#orga1062ac">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="#orgb41e617">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="#org2448417">Generic</a></li>
|
|
<li><a href="#org9f696dc">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></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="#orgf1f7ab1">Configuration</a></li>
|
|
<li><a href="#org28444ce">Signature</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#org75c25aa">ESRF</a>
|
|
<ul>
|
|
<li><a href="#org38fcd39">Configuration</a></li>
|
|
<li><a href="#orgd86e4b8">Signature</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#org8c506c3">ULG</a>
|
|
<ul>
|
|
<li><a href="#org4507cc1">Configuration</a></li>
|
|
<li><a href="#org24686f3">Signature</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#org72df244">ULIEGE</a>
|
|
<ul>
|
|
<li><a href="#orged812e7">Configuration</a></li>
|
|
<li><a href="#orgd419bc3">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="#orgc35a45a">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="#orgec162c4">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 Far/Near] marked for deletion.</span>
|
|
Expunge Both
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgb0c3173" class="outline-3">
|
|
<h3 id="orgb0c3173">Gmail Account</h3>
|
|
<div class="outline-text-3" id="text-orgb0c3173">
|
|
<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
|
|
Far :gmail-remote:INBOX
|
|
Near :gmail-local:Inbox
|
|
|
|
Channel gmail-Drafts
|
|
Far :gmail-remote:<span class="org-string">"[Gmail]/Drafts"</span>
|
|
Near :gmail-local:Drafts
|
|
|
|
Channel gmail-Sent
|
|
Far :gmail-remote:<span class="org-string">"[Gmail]/Sent Mail"</span>
|
|
Near :gmail-local:Sent
|
|
|
|
Channel gmail-Trash
|
|
Far :gmail-remote:<span class="org-string">"[Gmail]/Trash"</span>
|
|
Near :gmail-local:Trash
|
|
|
|
Channel gmail-Archive
|
|
Far :gmail-remote:<span class="org-string">"[Imap]/Archive"</span>
|
|
Near :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
|
|
Far :gmail-remote:
|
|
Near :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 !Drafts
|
|
Patterns !Sent Mail
|
|
Patterns !Trash
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Patterns ![Imap]/Archive</span>
|
|
</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
|
|
Far :gmail-remote:INBOX
|
|
Near :gmail-local:Inbox
|
|
Create Near
|
|
Expunge Near
|
|
Sync Pull
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org0a8a59b" class="outline-3">
|
|
<h3 id="org0a8a59b">ESRF Account</h3>
|
|
<div class="outline-text-3" id="text-org0a8a59b">
|
|
<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
|
|
Far :esrf-remote:INBOX
|
|
Near :esrf-local:Inbox
|
|
|
|
Channel esrf-Drafts
|
|
Far :esrf-remote:Drafts
|
|
Near :esrf-local:Drafts
|
|
|
|
Channel esrf-Archive
|
|
Far :esrf-remote:Archive
|
|
Near :esrf-local:Archive
|
|
|
|
Channel esrf-Sent
|
|
Far :esrf-remote:Sent
|
|
Near :esrf-local:Sent
|
|
|
|
Channel esrf-Trash
|
|
Far :esrf-remote:Trash
|
|
Near :esrf-local:Trash
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">Channel esrf
|
|
Far :esrf-remote:
|
|
Near :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
|
|
Far :esrf-remote:INBOX
|
|
Near :esrf-local:Inbox
|
|
Create Near
|
|
Expunge Near
|
|
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
|
|
Far :ulg-remote:INBOX
|
|
Near :ulg-local:Inbox
|
|
|
|
Channel ulg-Drafts
|
|
Far :ulg-remote:Drafts
|
|
Near :ulg-local:Drafts
|
|
|
|
Channel ulg-Archive
|
|
Far :ulg-remote:Archive
|
|
Near :ulg-local:Archive
|
|
|
|
Channel ulg-Sent
|
|
Far :ulg-remote:Sent
|
|
Near :ulg-local:Sent
|
|
|
|
Channel ulg-Trash
|
|
Far :ulg-remote:Trash
|
|
Near :ulg-local:Trash
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">Channel ulg
|
|
Far :ulg-remote:
|
|
Near :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
|
|
Far :ulg-remote:INBOX
|
|
Near :ulg-local:Inbox
|
|
Create Near
|
|
Expunge Near
|
|
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
|
|
Far :uliege-remote:INBOX
|
|
Near :uliege-local:Inbox
|
|
|
|
Channel uliege-Drafts
|
|
Far :uliege-remote:Drafts
|
|
Near :uliege-local:Drafts
|
|
|
|
Channel uliege-Archive
|
|
Far :uliege-remote:Archive
|
|
Near :uliege-local:Archive
|
|
|
|
Channel uliege-Sent
|
|
Far :uliege-remote:Sent
|
|
Near :uliege-local:Sent
|
|
|
|
Channel uliege-Trash
|
|
Far :uliege-remote:Trash
|
|
Near :uliege-local:Trash
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">Channel uliege
|
|
Far :uliege-remote:
|
|
Near :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
|
|
Far :uliege-remote:INBOX
|
|
Near :uliege-local:Inbox
|
|
Create Near
|
|
Expunge Near
|
|
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-orgb0d4eab" class="outline-3">
|
|
<h3 id="orgb0d4eab">Gmail Account</h3>
|
|
<div class="outline-text-3" id="text-orgb0d4eab">
|
|
<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-org8d2a90a" class="outline-3">
|
|
<h3 id="org8d2a90a">ESRF Account</h3>
|
|
<div class="outline-text-3" id="text-org8d2a90a">
|
|
<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 “maildir indexer/searcher”.
|
|
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 <Tab> noop
|
|
bind generic,pager,editor,index <Space> noop
|
|
bind generic,pager,editor,index <PageUp> noop
|
|
bind generic,pager,editor,index <PageDown> noop
|
|
bind generic,pager,editor,index <Home> noop
|
|
bind generic,pager,editor,index <End> noop
|
|
bind generic,pager,editor,index <Insert> noop
|
|
bind generic,pager,editor,index <Delete> noop
|
|
bind generic,pager,editor,index <Up> noop
|
|
bind generic,pager,editor,index <Down> noop
|
|
bind generic,pager,editor,index <Left> noop
|
|
bind generic,pager,editor,index <Right> noop
|
|
bind generic,pager,editor,index <Enter> noop
|
|
bind generic,pager,editor,index <Return> 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 & 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<Tab> noop
|
|
bind generic,pager,editor,index \C<Space> noop
|
|
bind generic,pager,editor,index \C<PageUp> noop
|
|
bind generic,pager,editor,index \C<PageDown> noop
|
|
bind generic,pager,editor,index \C<Home> noop
|
|
bind generic,pager,editor,index \C<End> noop
|
|
bind generic,pager,editor,index \C<Insert> noop
|
|
bind generic,pager,editor,index \C<Delete> noop
|
|
bind generic,pager,editor,index \C<Up> noop
|
|
bind generic,pager,editor,index \C<Down> noop
|
|
bind generic,pager,editor,index \C<Left> noop
|
|
bind generic,pager,editor,index \C<Right> noop
|
|
bind generic,pager,editor,index \C<Enter> noop
|
|
bind generic,pager,editor,index \C<Return> 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& 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 <Esc>a noop
|
|
bind generic,pager,editor,index <Esc>b noop
|
|
bind generic,pager,editor,index <Esc>c noop
|
|
bind generic,pager,editor,index <Esc>d noop
|
|
bind generic,pager,editor,index <Esc>e noop
|
|
bind generic,pager,editor,index <Esc>f noop
|
|
bind generic,pager,editor,index <Esc>g noop
|
|
bind generic,pager,editor,index <Esc>h noop
|
|
bind generic,pager,editor,index <Esc>i noop
|
|
bind generic,pager,editor,index <Esc>j noop
|
|
bind generic,pager,editor,index <Esc>k noop
|
|
bind generic,pager,editor,index <Esc>l noop
|
|
bind generic,pager,editor,index <Esc>m noop
|
|
bind generic,pager,editor,index <Esc>n noop
|
|
bind generic,pager,editor,index <Esc>o noop
|
|
bind generic,pager,editor,index <Esc>p noop
|
|
bind generic,pager,editor,index <Esc>q noop
|
|
bind generic,pager,editor,index <Esc>r noop
|
|
bind generic,pager,editor,index <Esc>s noop
|
|
bind generic,pager,editor,index <Esc>t noop
|
|
bind generic,pager,editor,index <Esc>u noop
|
|
bind generic,pager,editor,index <Esc>v noop
|
|
bind generic,pager,editor,index <Esc>w noop
|
|
bind generic,pager,editor,index <Esc>x noop
|
|
bind generic,pager,editor,index <Esc>y noop
|
|
bind generic,pager,editor,index <Esc>z noop
|
|
bind generic,pager,editor,index <Esc>A noop
|
|
bind generic,pager,editor,index <Esc>B noop
|
|
bind generic,pager,editor,index <Esc>C noop
|
|
bind generic,pager,editor,index <Esc>D noop
|
|
bind generic,pager,editor,index <Esc>E noop
|
|
bind generic,pager,editor,index <Esc>F noop
|
|
bind generic,pager,editor,index <Esc>G noop
|
|
bind generic,pager,editor,index <Esc>H noop
|
|
bind generic,pager,editor,index <Esc>I noop
|
|
bind generic,pager,editor,index <Esc>J noop
|
|
bind generic,pager,editor,index <Esc>K noop
|
|
bind generic,pager,editor,index <Esc>L noop
|
|
bind generic,pager,editor,index <Esc>M noop
|
|
bind generic,pager,editor,index <Esc>N noop
|
|
bind generic,pager,editor,index <Esc>O noop
|
|
bind generic,pager,editor,index <Esc>P noop
|
|
bind generic,pager,editor,index <Esc>Q noop
|
|
bind generic,pager,editor,index <Esc>R noop
|
|
bind generic,pager,editor,index <Esc>S noop
|
|
bind generic,pager,editor,index <Esc>T noop
|
|
bind generic,pager,editor,index <Esc>U noop
|
|
bind generic,pager,editor,index <Esc>V noop
|
|
bind generic,pager,editor,index <Esc>W noop
|
|
bind generic,pager,editor,index <Esc>X noop
|
|
bind generic,pager,editor,index <Esc>Y noop
|
|
bind generic,pager,editor,index <Esc>Z noop
|
|
|
|
bind generic,pager,editor,index <Esc><Tab> noop
|
|
bind generic,pager,editor,index <Esc><Space> noop
|
|
bind generic,pager,editor,index <Esc><PageUp> noop
|
|
bind generic,pager,editor,index <Esc><PageDown> noop
|
|
bind generic,pager,editor,index <Esc><Home> noop
|
|
bind generic,pager,editor,index <Esc><End> noop
|
|
bind generic,pager,editor,index <Esc><Insert> noop
|
|
bind generic,pager,editor,index <Esc><Delete> noop
|
|
bind generic,pager,editor,index <Esc><Up> noop
|
|
bind generic,pager,editor,index <Esc><Down> noop
|
|
bind generic,pager,editor,index <Esc><Left> noop
|
|
bind generic,pager,editor,index <Esc><Right> noop
|
|
bind generic,pager,editor,index <Esc><Enter> noop
|
|
bind generic,pager,editor,index <Esc><Return> noop
|
|
|
|
bind generic,pager,editor,index <Esc>1 noop
|
|
bind generic,pager,editor,index <Esc>2 noop
|
|
bind generic,pager,editor,index <Esc>3 noop
|
|
bind generic,pager,editor,index <Esc>4 noop
|
|
bind generic,pager,editor,index <Esc>5 noop
|
|
bind generic,pager,editor,index <Esc>6 noop
|
|
bind generic,pager,editor,index <Esc>7 noop
|
|
bind generic,pager,editor,index <Esc>8 noop
|
|
bind generic,pager,editor,index <Esc>9 noop
|
|
bind generic,pager,editor,index <Esc>0 noop
|
|
bind generic,pager,editor,index <Esc>! noop
|
|
bind generic,pager,editor,index <Esc>@ noop
|
|
bind generic,pager,editor,index <Esc>$ noop
|
|
bind generic,pager,editor,index <Esc>% noop
|
|
bind generic,pager,editor,index <Esc>^ noop
|
|
bind generic,pager,editor,index <Esc>& noop
|
|
bind generic,pager,editor,index <Esc>* noop
|
|
bind generic,pager,editor,index <Esc>( noop
|
|
bind generic,pager,editor,index <Esc>) 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">"<shell-escape>if [ $TMUX ]; then tmux detach; fi<enter>"</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orga1062ac" class="outline-4">
|
|
<h4 id="orga1062ac">Generic</h4>
|
|
<div class="outline-text-4" id="text-orga1062ac">
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">bind generic Q exit
|
|
|
|
bind generic <Return> 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
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Display mode information</span>
|
|
bind pager i display-toggle-weed
|
|
|
|
bind index <space> collapse-thread
|
|
|
|
bind index,pager K previous-entry
|
|
bind index,pager J next-entry
|
|
|
|
bind index l display-message
|
|
bind index <Return> 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">"<change-folder>?"</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">"<change-folder>?<toggle-mailboxes>"</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">"<tag-pattern>~N<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>"</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 z collapse-thread
|
|
bind index Z collapse-all
|
|
</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">"<shell-escape>$HOME/.config/neomutt/bin/get_new_mail.sh<enter>"</span>
|
|
macro index,pager O <span class="org-string">"<shell-escape>$HOME/.config/neomutt/bin/get_new_mail.sh -a<enter>"</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">"<view-attachments><search>html<enter><view-mailcap><exit>"</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">"<view-attachments><search>plain<enter><view-mailcap><exit>"</span>
|
|
</pre>
|
|
</div>
|
|
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">bind index U toggle-new
|
|
</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>
|
|
|
|
<p>
|
|
Copy and move mails
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">macro index C <span class="org-string">"<copy-message>?<toggle-mailboxes>"</span> <span class="org-string">"copy a message to a mailbox"</span>
|
|
macro index M <span class="org-string">"<save-message>?<toggle-mailboxes>"</span> <span class="org-string">"move a message to a mailbox"</span>
|
|
</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 <limit>all<enter>
|
|
</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-orgb41e617" class="outline-4">
|
|
<h4 id="orgb41e617">Attachments</h4>
|
|
<div class="outline-text-4" id="text-orgb41e617">
|
|
<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 <return> view-mailcap
|
|
|
|
macro attach W <save-entry><kill-line>~/Downloads/<enter>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">"<shell-escape>$TERMINAL -e \"neomutt -R\"<enter>"</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">"<shell-escape>bash $HOME/.config/neomutt/bin/rangerpick<enter><enter-command>source /tmp/rangerpick<enter><shell-escape>bash $HOME/.config/neomutt/bin/rangerpick clean<enter>"</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">"<shell-escape>bash $HOME/.config/neomutt/bin/rangerpick dragon<enter><enter-command>source /tmp/rangerpick<enter><shell-escape>bash $HOME/.config/neomutt/bin/rangerpick clean<enter>"</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> && sed -i <span class="org-string">'s/\s/\\ /g'</span> $<span class="org-variable-name">tmpfile</span> && <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", "<attach-file>"</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">"<enter>"}' </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> > $<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 > $<span class="org-variable-name">tmpfile</span> && sed -i <span class="org-string">'s/\s/\\ /g'</span> $<span class="org-variable-name">tmpfile</span> && <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", "<attach-file>"</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">"<enter>"}' </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> > $<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">"<top-page><select-entry>"</span>
|
|
|
|
bind browser t tag-entry
|
|
|
|
bind browser q exit
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org2448417" class="outline-4">
|
|
<h4 id="org2448417">Generic</h4>
|
|
<div class="outline-text-4" id="text-org2448417">
|
|
<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-org9f696dc" class="outline-4">
|
|
<h4 id="org9f696dc">Sidebar</h4>
|
|
<div class="outline-text-4" id="text-org9f696dc">
|
|
<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 ,<Space> <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"> <pipe-message>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">"<shell-escape>mu find --clearlinks --format=links --linksdir=~/.mail/search "</span> \
|
|
<span class="org-string">"mu find"</span>
|
|
macro index,pager gf <span class="org-string">"<change-folder-readonly>~/.mail/search<enter>"</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">"<pipe-message>$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">
|
|
<p>
|
|
<a href="https://orgmode.org/manual/The-capture-protocol.html#The-capture-protocol">https://orgmode.org/manual/The-capture-protocol.html#The-capture-protocol</a>
|
|
</p>
|
|
|
|
<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">from</span> email <span class="org-keyword">import</span> policy
|
|
<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, policy=policy.default)
|
|
|
|
<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>][<span class="org-highlight-numbers-number">1</span>:-<span class="org-highlight-numbers-number">1</span>])
|
|
<span class="org-variable-name">subject</span> = message[<span class="org-string">'subject'</span>]
|
|
<span class="org-variable-name">message_to</span> = message[<span class="org-string">'to'</span>]
|
|
|
|
<span class="org-comment-delimiter"># </span><span class="org-comment">Ask emacsclient to save a link to the message</span>
|
|
subprocess.Popen([
|
|
<span class="org-string">'emacsclient'</span>,
|
|
f<span class="org-string">'org-protocol://capture?template=ps&url={message_id}&title={subject}&body={message_to}'</span>
|
|
])
|
|
</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 class="org-src-container">
|
|
<pre class="src src-conf">color attachment color109 color235
|
|
color bold color229 color235
|
|
color error color167 color235
|
|
color hdrdefault color246 color235
|
|
color indicator color223 color237
|
|
color markers color243 color235
|
|
color normal color223 color235
|
|
color prompt color223 color235
|
|
color quoted color250 color235
|
|
color quoted1 color108 color235
|
|
color quoted2 color250 color235
|
|
color quoted3 color108 color235
|
|
color quoted4 color250 color235
|
|
color quoted5 color108 color235
|
|
color search color235 color208
|
|
color signature color108 color235
|
|
color status color245 color235
|
|
color tilde color243 color235
|
|
color tree color142 color235
|
|
color underline color223 color239
|
|
|
|
color sidebar_divider color250 color235
|
|
color sidebar_new color142 color235
|
|
|
|
color index color142 color235 ~N
|
|
color index color108 color235 ~O
|
|
color index color109 color235 ~P
|
|
color index color214 color235 ~F
|
|
color index color175 color235 ~Q
|
|
<span class="org-variable-name">color index color167 color235 ~</span>=
|
|
color index color235 color223 ~T
|
|
color index color235 color167 ~D
|
|
|
|
color header color214 color235 <span class="org-string">"^(To:|Cc:|Bcc:|From:)"</span>
|
|
color header color142 color235 <span class="org-string">"^Subject:"</span>
|
|
color header color108 color235 <span class="org-string">"^X-Spam-Status:"</span>
|
|
color header color108 color235 <span class="org-string">"^Received:"</span>
|
|
|
|
color body color142 color235 <span class="org-string">"[a-z]{3,256}://[-a-zA-Z0-9@:%._\\+~#=/?&,]+"</span>
|
|
color body color208 color235 <span class="org-string">"[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"</span>
|
|
color body color208 color235 <span class="org-string">"mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"</span>
|
|
color body color235 color214 <span class="org-string">"[;:]-*[)>(<lt;|]"</span>
|
|
color body color229 color235 <span class="org-string">"\\*[- A-Za-z]+\\*"</span>
|
|
|
|
color body color214 color235 <span class="org-string">"^-.*PGP.*-*"</span>
|
|
color body color142 color235 <span class="org-string">"^gpg: Good signature from"</span>
|
|
color body color167 color235 <span class="org-string">"^gpg: Can't.*$"</span>
|
|
color body color214 color235 <span class="org-string">"^gpg: WARNING:.*$"</span>
|
|
color body color167 color235 <span class="org-string">"^gpg: BAD signature from"</span>
|
|
color body color167 color235 <span class="org-string">"^gpg: Note: This key has expired!"</span>
|
|
color body color214 color235 <span class="org-string">"^gpg: There is no indication that the signature belongs to the owner."</span>
|
|
color body color214 color235 <span class="org-string">"^gpg: can't handle these multiple signatures"</span>
|
|
color body color214 color235 <span class="org-string">"^gpg: signature verification suppressed"</span>
|
|
color body color214 color235 <span class="org-string">"^gpg: invalid node with packet of type"</span>
|
|
</pre>
|
|
</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 <Tab> 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">"<change-folder>+uliege/Inbox<enter>"</span> <span class="org-string">"go to inbox"</span>
|
|
macro index,pager gu <span class="org-string">"<change-folder>+ulg/Inbox<enter>"</span> <span class="org-string">"go to inbox"</span>
|
|
macro index,pager ge <span class="org-string">"<change-folder>+esrf/Inbox<enter>"</span> <span class="org-string">"go to inbox"</span>
|
|
macro index,pager gm <span class="org-string">"<change-folder>+gmail/Inbox<enter>"</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-orgf1f7ab1" class="outline-5">
|
|
<h5 id="orgf1f7ab1">Configuration</h5>
|
|
<div class="outline-text-5" id="text-orgf1f7ab1">
|
|
<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> <span class="org-comment-delimiter"># </span><span class="org-comment">Archive Box</span>
|
|
<span class="org-variable-name">set postponed</span> = <span class="org-string">"+gmail/Drafts"</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 signature</span> = <span class="org-string">"~/.config/neomutt/accounts/gmail.signature"</span>
|
|
|
|
macro index,pager d \
|
|
<span class="org-string">"<save-message>+gmail/Archive<enter>"</span> \
|
|
<span class="org-string">"Move message to the Archive"</span>
|
|
|
|
macro index,pager D \
|
|
<span class="org-string">"<save-message>+gmail/Trash<enter>"</span> \
|
|
<span class="org-string">"Move message to the Trash"</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org28444ce" class="outline-5">
|
|
<h5 id="org28444ce">Signature</h5>
|
|
<div class="outline-text-5" id="text-org28444ce">
|
|
<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-org38fcd39" class="outline-5">
|
|
<h5 id="org38fcd39">Configuration</h5>
|
|
<div class="outline-text-5" id="text-org38fcd39">
|
|
<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">"<save-message>+esrf/Archive<enter>"</span> \
|
|
<span class="org-string">"Move message to the Archive"</span>
|
|
|
|
macro index,pager D \
|
|
<span class="org-string">"<save-message>+esrf/Trash<enter>"</span> \
|
|
<span class="org-string">"Move message to the Trash"</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgd86e4b8" class="outline-5">
|
|
<h5 id="orgd86e4b8">Signature</h5>
|
|
<div class="outline-text-5" id="text-orgd86e4b8">
|
|
<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-org4507cc1" class="outline-5">
|
|
<h5 id="org4507cc1">Configuration</h5>
|
|
<div class="outline-text-5" id="text-org4507cc1">
|
|
<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">"<save-message>+ulg/Archive<enter>"</span> \
|
|
<span class="org-string">"Move message to the Archive"</span>
|
|
|
|
macro index,pager D \
|
|
<span class="org-string">"<save-message>+ulg/Trash<enter>"</span> \
|
|
<span class="org-string">"Move message to the Trash"</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org24686f3" class="outline-5">
|
|
<h5 id="org24686f3">Signature</h5>
|
|
<div class="outline-text-5" id="text-org24686f3">
|
|
<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-orged812e7" class="outline-5">
|
|
<h5 id="orged812e7">Configuration</h5>
|
|
<div class="outline-text-5" id="text-orged812e7">
|
|
<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">"<save-message>+uliege/Archive<enter>"</span> \
|
|
<span class="org-string">"Move message to the Archive"</span>
|
|
|
|
macro index,pager D \
|
|
<span class="org-string">"<save-message>+uliege/Trash<enter>"</span> \
|
|
<span class="org-string">"Move message to the Trash"</span>
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgd419bc3" class="outline-5">
|
|
<h5 id="orgd419bc3">Signature</h5>
|
|
<div class="outline-text-5" id="text-orgd419bc3">
|
|
<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">"───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───"</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}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"</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-orgc35a45a" class="outline-3">
|
|
<h3 id="orgc35a45a">Sidebar</h3>
|
|
<div class="outline-text-3" id="text-orgc35a45a">
|
|
</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">'│'</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">"  Search"</span> =search
|
|
named-mailboxes <span class="org-string">" GMAIL"</span> =empty/gmail
|
|
named-mailboxes <span class="org-string">"  Inbox"</span> =gmail/Inbox
|
|
named-mailboxes <span class="org-string">"  Sent"</span> =gmail/Sent
|
|
named-mailboxes <span class="org-string">"  Drafts"</span> =gmail/Drafts
|
|
named-mailboxes <span class="org-string">" ﮊ Archive"</span> =gmail/Archive
|
|
named-mailboxes <span class="org-string">"  Trash"</span> =gmail/Trash
|
|
named-mailboxes <span class="org-string">" ESRF"</span> =empty/esrf
|
|
named-mailboxes <span class="org-string">"  Inbox"</span> =esrf/Inbox
|
|
named-mailboxes <span class="org-string">"  Sent"</span> =esrf/Sent
|
|
named-mailboxes <span class="org-string">"  Drafts"</span> =esrf/Drafts
|
|
named-mailboxes <span class="org-string">" ﮊ Archive"</span> =esrf/Archive
|
|
named-mailboxes <span class="org-string">"  Trash"</span> =esrf/Trash
|
|
named-mailboxes <span class="org-string">" ULG"</span> =empty/ulg
|
|
named-mailboxes <span class="org-string">"  Inbox"</span> =ulg/Inbox
|
|
named-mailboxes <span class="org-string">"  Sent"</span> =ulg/Sent
|
|
named-mailboxes <span class="org-string">"  Drafts"</span> =ulg/Drafts
|
|
named-mailboxes <span class="org-string">" ﮊ Archive"</span> =ulg/Archive
|
|
named-mailboxes <span class="org-string">"  Trash"</span> =ulg/Trash
|
|
named-mailboxes <span class="org-string">" ULIEGE"</span> =empty/uliege
|
|
named-mailboxes <span class="org-string">"  Inbox"</span> =uliege/Inbox
|
|
named-mailboxes <span class="org-string">"  Sent"</span> =uliege/Sent
|
|
named-mailboxes <span class="org-string">"  Drafts"</span> =uliege/Drafts
|
|
named-mailboxes <span class="org-string">" ﮊ Archive"</span> =uliege/Archive
|
|
named-mailboxes <span class="org-string">"  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-orgec162c4" class="outline-3">
|
|
<h3 id="orgec162c4">Attachments</h3>
|
|
<div class="outline-text-3" id="text-orgec162c4">
|
|
</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 %> [%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><enter></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">"\\<(attach(|ed|ments?)|(attaché|attachés|attache|attachons|joint|jointe|joints|jointes|joins|joignons))\\>"</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> && <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 && 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> && 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> >/dev/null <span class="org-highlight-numbers-number">2</span>>&<span class="org-highlight-numbers-number">1</span> &
|
|
</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)[.:][^ ><span class="org-string">"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>"</span>>\):]
|
|
|
|
COMMAND nohup qutebrowser %s </dev/null &>/dev/null &
|
|
</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 &
|
|
image/*; sxiv -a -b %s &
|
|
application/pdf; zathura %s &
|
|
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> && setsid qutebrowser %s; nametemplate=%s.html
|
|
<span class="org-variable-name">text/html; lynx -width ${COLUMNS:-80} -dump %s; nametemplate</span>=%s.html; copiousoutput;
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
For calendar output, a personal <code>ics-add</code> script is used.
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">text/calendar; ics-add %s; copiousoutput;
|
|
application/ics; ics-add %s; copiousoutput;
|
|
</pre>
|
|
</div>
|
|
|
|
<p>
|
|
Libreoffice
|
|
</p>
|
|
<div class="org-src-container">
|
|
<pre class="src src-conf">application/docx; libreoffice %s --nologo &; copiousoutput;
|
|
application/doc; libreoffice --nologo %s &; 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-10-25 lun. 14:33</p>
|
|
</div>
|
|
</body>
|
|
</html>
|