You are not logged in.

#1 2011-07-05 18:07:06

mjheagle8
Member
From: /home/mjheagle8
Registered: 2009-07-12
Posts: 186

mutt: run shell command on folder change?

hello all,

i am using folder hooks in mutt and i have a program that counts my new mails and sends me a notification. i want to run this program every time i change folders.
any suggestions how i could do this? backtics didn't work for me (maybe i was doing it wrong) because they only ran when mutt started.
right now i have a macro bound to the command, but this is not ideal.

thanks in advance for all help.


Desktop/Laptop - DWM :: VM - screen
Registered Linux User Number 483137 :: Victory! :: GitHub

Offline

#2 2011-07-05 22:04:34

FitzJac
Member
From: The Netherlands
Registered: 2011-04-07
Posts: 234

Re: mutt: run shell command on folder change?

I use lsyncd for watching folder changes.
But I don't have experience with Mutt.
Here some more info: lsyncd Manual.


I'd rather try touching the moon
than take on a whore's thinking.
             Al Swearengen

Offline

#3 2011-07-06 09:34:37

owain
Member
Registered: 2009-08-24
Posts: 251

Re: mutt: run shell command on folder change?

Just tried a few things, this seems to work for me:

macro index   <f3> <change-folder>/home/owain/Maildir<enter><shell-escape>notify-send\ foo<enter>
macro browser <f3> <change-folder>/home/owain/Maildir<enter><shell-escape>notify-send\ foo<enter>

Offline

Board footer

Powered by FluxBB