From 5f2ba63b0451941f55060d863dbbe231d465c906 Mon Sep 17 00:00:00 2001 From: Luke Bubar <43391582+lukerb52@users.noreply.github.com> Date: Fri, 30 Oct 2020 21:25:14 -0400 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 1027555..2c33c85 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,15 @@ The mutt-wizard is run with the command `mw`. Once everything is setup, you'll u - `-f` -- Assume mailbox names and force account configuration without connecting online at all. - `-o` -- Configure mutt for an account, but do not keep mail offline. +## Update Mailbox with Cron + +Since mutt-wizard requires shell variables stored in `~/.profile`, you will need to add `. $HOME/.profile` to your cronjobs. For example, to have mail update every 10 minutes, this is the line that should appear in the crontab file: +``` +*/10 * * * * . $HOME/.profile; /usr/bin/mw -Y +``` + +Remember to use cron as the same user the mail is, not root. (IE, run `crontab -e`, not `sudo crontab -e`). + ## Dependencies - `neomutt` - the email client.