On Wed, Oct 13, 2010 at 02:50:50PM -0500, Will Fiveash wrote: > On Tue, Sep 28, 2010 at 03:40:16PM -0500, David Champion wrote: > > * On 28 Sep 2010, Will Fiveash wrote: > > > I'd like to set search to a particular pattern when I view a message > > > with a particular subject. The reason I want this is that some messages > > > I receive have sections with section delimiters and I want search > > > initialized to that delimiter pattern. Is this possible and if so can > > > someone give me a hint as to how? > > > > message-hook '~s pattern' 'macro pager n "<search><kill-line>^===<enter>"; > > macro pager / "bind pager n search-next; bind pager / search; push /"' > > message-hook . 'bind pager n search-next' > > > > Untested (naturally) and probably doesn't work due to quoting, but maybe > > a start. > > What I ended up using is: > > message-hook '~s "^SANS NewsBites "' 'push "<search>^ --<enter><top>"'
Actually, that's not really working for me as it interferes with other mutt functions like saving a message. For example when I'm in index mode and I have the following setting: message-hook '~s "^CR "' 'push ":macro pager / <search>^===\\ <enter>"' and I select a message with Subject: CR etc... and I type s to save it I see: Create :macropager/<search>^===\? ([yes]/no): I don't understand why message-hook is affecting the save command when there is a separate save-hook for this. -- Will Fiveash Oracle Austin, TX, USA Internal Solaris Kerberos/GSS/SASL website: http://kerberos.sfbay.sun.com http://opensolaris.org/os/project/kerberos/
