{"id":158,"date":"2019-01-24T09:09:33","date_gmt":"2019-01-24T08:09:33","guid":{"rendered":"https:\/\/blog.wijsnet.com\/?p=158"},"modified":"2022-07-01T10:16:54","modified_gmt":"2022-07-01T08:16:54","slug":"using-maildir-format-with-mutt","status":"publish","type":"post","link":"https:\/\/blog.wijsnet.com\/index.php\/2019\/01\/24\/using-maildir-format-with-mutt\/","title":{"rendered":"Using Maildir format with Mutt"},"content":{"rendered":"\n<p>Basic setup<\/p>\n\n\n\n<p>You should already have setup your system to use Maildir.This assumes your Maildir being ~\/Maildir and that it contains Drafts and Sent subfolders as commonly used by other MUAs via IMAP4. <br>\nMutt configuration<\/p>\n\n\n\n<p>This section describes the statements to put into your muttrc (i.e. ~\/.muttrc or ~\/.mutt\/muttrc). . <br> First tell Mutt to use the Maildir format: <br>set mbox_type=Maildir<br><br>Next configure the locations of the common folders: <br>set folder=&#8221;~\/Maildir&#8221;<br> set mask=&#8221;!^\\.[^.]&#8221;<br> set mbox=&#8221;~\/Maildir&#8221;<br> set record=&#8221;+.Sent&#8221;<br> set postponed=&#8221;+.Drafts&#8221;<br> set spoolfile=&#8221;~\/Maildir&#8221;<br> Set up mailboxes by scanning for all subfolders in ~\/Maildir: mailboxes <code>echo -n \"+ \"; find ~\/Maildir -maxdepth 1 -type d -name \".*\" -printf \"+'%f' \"<\/code><br> Note that this requires find(1) from the GNU findutils,which on BSD systemsusually is installed as gfind(1). <br> Add macros to make the folder browser usable by always using the mailboxessetup above: macro index c &#8220;?&#8221; &#8220;open a different folder&#8221;<br> macro pager c &#8220;?&#8221; &#8220;open a different folder&#8221;<br> To additionally get straight to the folder browser when copying, moving andattaching mail, add the following macros: macro index C &#8220;?&#8221; &#8220;copy a message to a mailbox&#8221;<br> macro index M &#8220;?&#8221; &#8220;move a message to a mailbox&#8221;<\/p>\n\n\n\n<p>macro compose A &#8220;?&#8221; &#8220;attach message(s) to this message&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Basic setup You should already have setup your system to use Maildir.This assumes your Maildir being ~\/Maildir and that it contains Drafts and Sent subfolders as commonly used by other MUAs via IMAP4. Mutt configuration This section describes the statements<\/p>\n<div class=\"entry-read-more\"><a class=\"read-more-link\" href=\"https:\/\/blog.wijsnet.com\/index.php\/2019\/01\/24\/using-maildir-format-with-mutt\/\">Read More<span class=\"cleanwp-sr-only\">  Using Maildir format with Mutt<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-158","post","type-post","status-publish","format-standard","hentry","category-linux","wpcat-3-id"],"_links":{"self":[{"href":"https:\/\/blog.wijsnet.com\/index.php\/wp-json\/wp\/v2\/posts\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.wijsnet.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wijsnet.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wijsnet.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wijsnet.com\/index.php\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":1,"href":"https:\/\/blog.wijsnet.com\/index.php\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":159,"href":"https:\/\/blog.wijsnet.com\/index.php\/wp-json\/wp\/v2\/posts\/158\/revisions\/159"}],"wp:attachment":[{"href":"https:\/\/blog.wijsnet.com\/index.php\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wijsnet.com\/index.php\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wijsnet.com\/index.php\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}