{"id":129,"date":"2015-02-22T19:39:14","date_gmt":"2015-02-22T14:09:14","guid":{"rendered":"https:\/\/bhuvan.wordpress.com\/?p=129"},"modified":"2015-02-22T19:39:14","modified_gmt":"2015-02-22T14:09:14","slug":"configure-emacs-offlineimap-and-mu4e-in-debian-for-offline-email","status":"publish","type":"post","link":"https:\/\/www.bhuvankrishna.in\/blog\/2015\/02\/22\/configure-emacs-offlineimap-and-mu4e-in-debian-for-offline-email\/","title":{"rendered":"configure emacs offlineimap and mu4e in debian for offline email"},"content":{"rendered":"<p>This is work in progress configuration. Fetching mails is working fine. But need to check how to send mail. Ok lets get started.<\/p>\n<p>A short intro. If you are looking to configure and read mail through terminal this is one of the ways to go. Most of them simply suggest mutt or gnus for emacs. But this is another method.<\/p>\n<p>Install required packages and dependencies<\/p>\n<pre>apt-get install emacs offlineimap mu4e<\/pre>\n<p><strong>Configuring offlineimap<\/strong><\/p>\n<p>First step is to fetch mail from the server. Edit the file ~\/.offlineimaprc and add the following to the file.<\/p>\n<pre id=\"file-gistfile1-ini-LC1\" class=\"line\"><span class=\"pl-en\">[general]\n<span class=\"pl-k\">accounts<\/span> = Personal, Work\n<span class=\"pl-k\">maxsyncaccounts<\/span> = 3\n<\/span><\/pre>\n<p>If you are configuring only one account then remove others from accounts. You can give any name to your account.<\/p>\n<p>Next step is to tell offlineimap were to get the mails from. Add the following to .offlineimaprc file.<\/p>\n<pre id=\"file-gistfile1-ini-LC1\" class=\"line\"><span class=\"pl-en\">[Account Personal]\nlocalrepository = PersonalMailLocal\nremoterepository = PersonalMailRemote\n \n[Repository PersonalMailLocal]\ntype = Maildir\nlocalfolders = ~\/Maildir\/Personal\n \n[Repository PersonalMailRemote]\ntype = IMAP\nremotehost = imap.gmail.com\nremoteuser = email@gmail.com\nremotepass = password\nssl = yes\nsslcacertfile = \/etc\/ssl\/certs\/ca-certificates.crt\nkeepalive = 120\nrealdelete = yes\nholdconnectionopen = true<\/span><\/pre>\n<p>Change the values of remotehost, remoteuser and remotepass to your email provider. If you are configuring multiple accounts then copy the above lines and change values accordingly. Make sure that what every we give in accounts should be give in [Account Personal] and what ever we give in localrepository =\u00a0PersonalMailLocal should be give in [Repository PersonalMailLocal].<\/p>\n<p>Create the required directories and run the command to fetch mail.<\/p>\n<pre id=\"file-gistfile1-ini-LC1\" class=\"line\"><span class=\"pl-en\">mkdir -p ~\/Maildir\/Work\nmkdir -p ~\/Maildir\/Personal\ncd \/home\/user\nofflineimap\n<\/span><\/pre>\n<p>Sources:<\/p>\n<p>http:\/\/0xax.blogspot.in\/2014\/11\/emacs-mu4e-offlineimap-multiply-accounts.html<\/p>\n<p>https:\/\/gist.github.com\/areina\/3879626<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is work in progress configuration. Fetching mails is working fine. But need to check how to send mail. Ok lets get started. A short intro. If you are looking to configure and read mail through terminal this is one of the ways to go. Most of them simply suggest mutt or gnus for emacs.\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.bhuvankrishna.in\/blog\/2015\/02\/22\/configure-emacs-offlineimap-and-mu4e-in-debian-for-offline-email\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":0,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bhuvankrishna.in\/blog\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}