[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: more Mutt question



On Sun, Apr 18, 1999 at 10:20:00PM +0800, Chad A. Adlawan wrote:
>   thanks for the hot tip.  now how do i mark 20 files out of the 80 i just
> received and move them over to some folder called debian-user ...
>   presently i copy the selected emails to that folder (one by one) then i
> delete them afterwards ... (im a new mutt convert)
> TIA,
> chad

I'm not sure I completely understand what you're asking, but I'll give
it a shot.

If you're just looking to separate debian-user mail from everything
else, one suggestion is procmail.  I have the following procmail rule
in my .procmailrc:

:0:
* ^TOdebian-user@
debian-user

This files away all traffic from this list into ~/.mail/debian-user
instead of my normal ~/.mail/inbox for new mail.  Then, inside
.muttrc, I define which mailboxes receive new mail like so:

mailboxes	=inbox <snip> =debian-user

This way, mutt will alert me when new mail has arrived in debian-user,
and when I press 'c' (for change folder), mutt will supply the name of
the next mailbox with new unread mail automatically.

Another way to go about this, if you still want all of your mail to
arrive in your inbox, but then get sorted after you read it, is to use
a mutt save-hook.  For example, for debian-user, you do

save-hook	^debian-user-request	=debian-user

Now, inside of mutt, whenever you hit 's' over a message from
debian-user, it "guesses" that this belongs in the debian-user folder.
You can still change this, of course, but you can save your mail by
hitting 's', <enter>, over and over.

To be really efficient, you use message tagging.  So you hit 't' over
all messages from debian-user as you read them, and they get a little
asterisk next to them (in the default configuration, at least).  When
you're done, press ';' (that's the tag prefix, makes the next
operation apply to all tagged messages), then 's', and the folder they
belong in (if you've set up a save-hook, you won't even have to type
this).

So basically, there are lots of ways, either with mutt or with mutt in
combination with other tools, to do this without copying the messages
over and then deleting.

Hope I've been of some help.

-- 
Ian Peters		"I never let schooling interfere with my education."
itp@gnu.org					-- Mark Twain


Reply to: