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 = "email@example.com" set smtp_url = "smtp://firstname.lastname@example.org:587/" set folder = "imaps://email@example.com/" set spoolfile = "imaps://firstname.lastname@example.org/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"