Re: Mutt Save-Hook Help

2003-02-10 Thread Christian Arthaber
* Curtis Spencer [EMAIL PROTECTED] [2003-02-11 00:49]:
 I am trying to get mutt to save all messages from the debian user list
 in a file called debian.  I don't fully understand the save-hook functionality.
 my muttrc looks like this, yet everything still gets saved to the inbox.
 
 set mbox=+inbox
 set record=+outbox
 set sort=threads
 set noprompt_after
 # Mail Header Hiding
 ignore *
 unignore from date subject to cc
 
 save-hook '~C debian-user' +debian
 
 Any help would be greatly appreciated.
 
 Cheers,
 Curtis

would exactly do you want? you're save-hook should make mutt to save
the message into folder debian as soon as you are on the message and
press 's'. if you want the mail sorted automatically you should use
procmail or something similar.

hth,
christian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Mutt Save-Hook Help

2003-02-10 Thread Chris Mitchell
On Mon, Feb 10, 2003 at 07:28:09AM -0800, Curtis Spencer wrote:
 I am trying to get mutt to save all messages from the debian user list
 in a file called debian.  I don't fully understand the save-hook functionality.
 my muttrc looks like this, yet everything still gets saved to the inbox.
SNIP

Personally, I have Exim deliver the messages for this list directly to a
separate mailbox in the first place, using filtering in a
.forward file... like so:
  if $header_X-Mailing-List: contains [EMAIL PROTECTED]
  then
 seen save $home/Mail/debian_user
  endif

And I don't know whether it's necessary to explicitly define the else
condition, but I did... like so:
  if not delivered
  then
seen save $home/Mail/inbox
  endif

Note that I'm a complete newbie myself, so I don't know if this is the
*right* way to do this, I just know that it seems to be working for me.
And, obviously, if you're not using Exim as your MTA, the method will
presumably vary.  



msg29997/pgp0.pgp
Description: PGP signature


Re: Mutt Save-Hook Help

2003-02-10 Thread Curtis Spencer
On Tue, Feb 11, 2003 at 01:00:19AM +0100, Christian Arthaber wrote:
 * Curtis Spencer [EMAIL PROTECTED] [2003-02-11 00:49]:
  I am trying to get mutt to save all messages from the debian user list
  in a file called debian.  I don't fully understand the save-hook functionality.
  my muttrc looks like this, yet everything still gets saved to the inbox.
  
  set mbox=+inbox
  set record=+outbox
  set sort=threads
  set noprompt_after
  # Mail Header Hiding
  ignore *
  unignore from date subject to cc
  
  save-hook '~C debian-user' +debian
  
  Any help would be greatly appreciated.
  
  Cheers,
  Curtis
 
 would exactly do you want? you're save-hook should make mutt to save
 the message into folder debian as soon as you are on the message and
 press 's'. if you want the mail sorted automatically you should use
 procmail or something similar.
 
 hth,
 christian

Actually, for now I just want to have it save when I press 's'.  I might set up 
procmail later, but that is for a different day :-).

Cheers,
Curtis


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Mutt Save-Hook Help

2003-02-10 Thread Curtis Spencer
On Mon, Feb 10, 2003 at 07:28:09AM -0800, Curtis Spencer wrote:
 I am trying to get mutt to save all messages from the debian user list
 in a file called debian.  I don't fully understand the save-hook functionality.
 my muttrc looks like this, yet everything still gets saved to the inbox.
 
 set mbox=+inbox
 set record=+outbox
 set sort=threads
 set noprompt_after
 # Mail Header Hiding
 ignore *
 unignore from date subject to cc
 
 save-hook '~C debian-user' +debian
 
 Any help would be greatly appreciated.
 
 Cheers,
 Curtis
 
Actually, I just realized that my problem wasn't in the regex, it was that I wasn't 
explicity pressing 's' to save the messages.  I wanted it just when I pressed 'q' to 
quit mutt, rather than moving everything to inbox, to move debian user list stuff to 
the debian file.  I don't know if there is a way to do this.  As for procmail, I just 
installed it.  Is there any easy way to get it up and running?  Do I have to integrate 
it with postfix?
Thanks for the help

Cheers,
Curtis


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]