Multiple values for mu4e-get-mail-command

119 views
Skip to first unread message

Henry

unread,
Aug 28, 2017, 7:11:16 PM8/28/17
to mu-discuss
I'm using a pretty simple setup, currently: I'm using Gmail, and I sync two folders: "INBOX" and "[Gmail]/All Mail"

I only want to update All Mail sporadically, but I update my INBOX much more often.

I try to archive mail ASAP, so that my INBOX never has more than a dozen emails, versus hundreds of thousands in All Mail.

I currently have

(setq mu4e-get-mail-command "offlineimap")

in ~/.emacs, which I have set to update only my INBOX.

I would like to enable a secondary value for mu4e-get-mail-command, "offlineimap -a mail-all", which I can trigger directly.

It looks to me like contexts are overkill for what I need...could anyone suggest any alternatives?

Thank you!

Best
Henry

Eduardo Mercovich

unread,
Aug 30, 2017, 8:07:21 AM8/30/17
to mu-di...@googlegroups.com
Hello Henry.

> I'm using a pretty simple setup, currently: I'm using Gmail, and
> I sync two folders: "INBOX" and "[Gmail]/All Mail"

Similar to mine...

> I only want to update All Mail sporadically, but I update my
> INBOX much more often. [...] I currently have
> (setq mu4e-get-mail-command "offlineimap") in ~/.emacs, which I
> have set to update only my INBOX.
> I would like to enable a secondary value for
> mu4e-get-mail-command, "offlineimap -a mail-all", which I can
> trigger directly. [...]

Would it help to run a script and let that script decide when to
update inbox and when everything?
If you run that script every 5 minutes, you can check inbox all
the time but 1/hour you check all mail.

BTW, I used offlineimap 1st, but tried mbsync and the change was
*very* positive.

HTH... :)

--
Eduardo Mercovich

Donde se cruzan tus talentos
con las necesidades del mundo,
ahí está tu vocación.
(Anónimo)

Peter Tran-Jørgensen

unread,
Sep 1, 2017, 3:53:43 PM9/1/17
to mu-discuss
You could use a hook (e.g. mu4e-update-pre-hook) to set your mu4e-get-mail-command in a clever way.

Reply all
Reply to author
Forward
0 new messages