Thank you Patrice and Cameron for all your suggestions. I omitted a lot of details thought weren't relevant.
On Linux I'm using fetchmail > procmail > notify-send > dunst to popup incoming emails, dunst theorically allow url handling (right now doesn't work for me, trying to understand why) so I thought would've been nice to go to the email directly from the popup. My "workflow" with mutt is pretty simple so there are good chance it will work, eventually I'll let you know. > > I know how to search the message but what a good mutt macro to change > > the mailbox given the mailbox path? > > You can change the current mailbox using its filesystem path directly, > if that's what you mean. (e.g. in index, press 'c' then the full path to > your mailbox). I see, for some noob reason I had 'c' replaced with a macro on muttrc, removed. > > I think would be reasonable while is idling on index/pager (wondering > > if there's a way to check if the mutt process is in foreground) > > I'd dare guess that if mutt has spawned a shell or an external editor, > `pgrep -P $(pidof mutt)` will return TRUE. It work, I didn't know about the existence of pgrep :) Regards