Note that this setup of course requires network connectivity between the iPad and the Mac Mini, and there are some complications with that, but I’ll try to cover those later in the post. The combination of the above gives me a nearly desktop-native experience running emacs and other terminal applications on my iPad. TL DRįor the impatient, and also to serve as an outline for the post, I’ll just list out the tools I’m using to make this happen. In this, the first of what I plan as a series of posts about my journey, I’ll outline what I’m currently using to be able to use emacs from my iPad. This way, neither mu4e nor Fastmail destroy the message.Lately I’ve been working on a setup such that I can use my iPad as my primary desktop, at least for personal tasks. The following piece of elisp remaps the d button to “move to Trash folder” action. I can simply use “move” command of mu4e, but it'd be nicer to use d button (deletion) for that. Instead of total deletion, I want to move messages to the “Trash” folder. Unfortunately, there is no way to stop Fastmail from doing that. Fastmail automatically destroys the messages flagged this way, as per IMAP standard. expungeīy default, when you mark a message to be deleted, mu4e will apply the “Trashed” flag. That's it! Run M-x mu4e and after a few final setup questions mu4e should be running. ( setq mu4e-get-mail-command " mbsync -a ") this setting allows to re-sync and re-index mail by pressing U ( setq mue4e-headers-skip-duplicates t mu4e-view-show-images t mu4e-view-show-addresses t mu4e-compose-format-flowed nil mu4e-date-format " %y/%m/%d " mu4e-headers-date-format " %Y/%m/%d " mu4e-change-filenames-when-moving t mu4e-attachments-dir " ~/Downloads " mu4e-maildir " ~/Maildir " top-level Maildir note that these folders below must start with / the paths are relative to maildir root mu4e-refile-folder " /Archive " mu4e-sent-folder " /Sent " mu4e-drafts-folder " /Drafts " mu4e-trash-folder " /Trash ") Now run mbsync and wait for it to download messages: Create Slave - when new folders are added on server, create them locally.Without this option, moving a message to another folder will reset the date of the message. CopyArrivalDate - makes sure the date of the arrival stays the same when you move messages around.Expunge None - don't destroy messages neither locally, nor remotely.Alternatively, you can select only certain folders to sync. # This section a "channel", a connection between remote and localįew details about the channel options worth mentioning: # The SubFolders option allows to represent all # IMAP subfolders as local subfolders # This section describes the local storage # For better security you should use GPG User For simplicity, this is how to read the password from another file. Install mbsync with homebrew (the package is called isync, but the binary is called mbsync): mu4e - Emacs package that comes with mu.It doesn't deal with the server directly, instead, it just read your local file system. mu - a command line email client which works with Maildir storage.In can sync both ways, so if I just move a file (which corresponds to a single message) from folder to folder, and then run mbsync again, this change will propagate to the server. Even if you're not interested in doing email in Emacs, having a full local copy of your mailbox may be a good idea. mbsync - a command-line utility which syncs IMAP server with a local directory in Maildir format.This doesn't require any special configuration. The setup consists of the following parts: I dislike elaborate, finicky setups and slowdowns. This means I don't want to setup something in Emacs that will only work there (like custom tagging which doesn't propagate to the server). I want to be able to use whatever third party email client or continue using Fastmail's web interface without any caveats. You can use my referral code to get 10% off. I moved from Gmail to Fastmail almost two years ago and I highly recommend the service. It's a solid service with normal IMAP (unlike Gmail with their weird, non-standard implementation which makes it very hard to use anything other than their web interface). Honestly, I don't think I'll stick with it, but as an experiment, I want to try and see whether it makes sense to use Emacs as an email client. Once you embrace Emacs, at some point you gonna want to do email in it. Fastmail setup with Emacs, mu4e and mbsync on macOS January 30, 2020
0 Comments
Leave a Reply. |