#43 Per mailbox newmail_command

open
nobody
None
5
2014-08-18
2012-07-21
Anonymous
No

Hi,

I have replaced my homebrewed Python IDLE script with `gnubiff --nogui'
as the latter seems preferable (non-IDLE support; clever network
handling etc).

However, I do miss the possibility to add per-mailbox newmail_command.
In particular, I want to use gnubiff to monitor my boxes, and trigger
offlineimap with particular arguments when a change occur.

E.g. gnubiff detects a new `gmail' and triggers `offlineimap -a
gmail'. When gnubiff detects a new `unimail' it triggers `offlineimap
-a uni'.

Alternatively, if the `--nogui' interface was more verbose
e.g. emitting in which mailbox a new mail was received I could write a
custom script. This could be archived using string-expansion/flags in
newmail_command. Then I would be able to call `~/bin/my_new_mail_script
%b' where %b is replaced with the mailbox in question.

This would also allow for notify-send commands, which some people
might prefer. e.g. `notify-send New mail from %f: %s' where `%f'
expands to `from' and `%s' exands to `subject'.

Thanks,
Rasmus

Discussion


  • Anonymous
    2012-12-23

    I need this feature too. I think global new mail command is design for people who use a mail client, but most mail client can check and notify themself, so how many people will use a mail client and a mail checker together? I think this is a problem. But for web mail user, this feature is very useful, with per mailbox new mail command, e.g. "firefox mail.google.com", they can open the correspond web page.

    If this request can be accepted, I suggest to group popup items by mailbox, and execute the new mail command when click on one group.

    Thanks!