> I'm using mutt in a desktop environment, would like to know if there's > a way (any) to make mutt go to a specific email from an external > program/script, mutt could be in a different mailbox, ideally this > should change too.
I believe you mean “Is there a way to control an already-running mutt instance so that it goes to a specific mail message”? One way to do it would involve running mutt in either tmux or screen, and use them as a keyboard input proxy. You can send keypresses to an already running program using “tmux send-keys” or “screen -X stuff” (see their manpage for details, or examples on ServerFault¹). But that's the easy part. The real tricky part is to find a safe sequence of keypresses to go to a specific message, no matter what the current context of mutt is (pager, index, ...). What if you're in the middle of composing an e-mail in mutt? should mutt discard your message to switch to your specific e-mail? what if you're currently in an external editor or shell? Unless somebody comes up with something really clever, I'd strongly suggest you consider spawning a different instance of mutt instead; much, *much* simpler and foolproof. 1) http://serverfault.com/questions/178457/can-i-send-some-text-to-the-stdin-of-an-active-process-running-in-a-screen-sessi/547144#547144 -- --====|====-- --------================|================-------- Patrice Levesque http://ptaff.ca/ mutt.wa...@ptaff.ca --------================|================-------- --====|====-- --
signature.asc
Description: Digital signature