
in
Forums
I'm trying to use Apple Mail, but there appears to be no way to stop it from downloading emails from IMAP accounts. This clashes with the MT recommendations of doing email three times a day and for avoiding distractions.
When I set "Check for new messages" to "Manually", it keeps checking automatically. When I click on "Take all accounts offline", they come online again as soon as I click on an email or a mailbox. This aggravates me.
Has anyone found a way to make Apple Mail download emails only when I click on the envelope button?
Taming Apple Mail
Here is my solution – suited only for tech-savvy folks:
_, pwfile = pipe_from('cat ~/.mailpass')
_, _, password = string.find(pwfile, '([%w%p]+)\n')
mail = IMAP {
server = '<address of your email server>',
username = '<username at your email provider>',
password = password,
ssl = 'auto',
}
mail.Notes:select_all():move_messages(mail.INBOX)
exec /usr/local/bin/imapfilter
, then triggers the fetching of email in Apple Mail.