Installing Mutt with iCloud on Arch Linux
If iCloud is configured with two factor authentication, an application password will need to be created in iCloud http://icloud.com, this password is then used for Mutt.
Install the package and create the folders as shown below
sudo pacman -S mutt cd ~ mkdir .mutt mkdir .mutt/cache mkdir .mutt/cache/headers mkdir .mutt/cache/bodies mkdir .mutt/certificates
Add the configuration file .mutt/muttrc replace 'user' with your username.
set imap_user = "user" set imap_pass = your-imap-password (or application specific password) set from = "firstname.lastname@example.org" set smtp_url = "smtp://email@example.com:587/" set folder = "imaps://firstname.lastname@example.org/" set spoolfile = "imaps://email@example.com/INBOX" set postponed = "+Drafts" set record = "+Sent Messages" set imap_pipeline_depth=0 set header_cache = "~/.mutt/cache/headers" set message_cachedir = "~/.mutt/cache/bodies" set certificate_file = "~/.mutt/certificates"