Re: how to automatic save mails to a folder from index.

2011-10-21 Thread du yang
On Tuesday 10/11/11 13:41:15 CST, stardiviner wrote:
 How to *automatic* save mails from pyt...@python.com in INBOX/ to folder 
 Python/ 
 when I quit or switch mail folders.
 I have readed man muttrc, and mutt wiki, can not find a good solution.
 I tried to search mutt mailing list archive, not found too.
 I think save-hook cannot do this. maybe some triggers can do this.
 
 Thanks in advance.
 

Try to use a macro like this,

folder-hook =INBOX push 'tag-pattern ~f 
pyt...@python.comentertag-prefix-condsave-message=Python/enterend-condsync-mailbox'

-- 
oooO:
(..):
:\.(:::Oooo::
::\_)::(..)::
:::)./:::
::(_/


signature.asc
Description: Digital signature


Re: how to automatic save mails to a folder from index.

2011-10-21 Thread stardiviner
= On [2011-10-21 14:02:01 +0800]:
 du yang Said: 
 On Tuesday 10/11/11 13:41:15 CST, stardiviner wrote:
  How to *automatic* save mails from pyt...@python.com in INBOX/ to folder 
  Python/ 
  when I quit or switch mail folders.
  I have readed man muttrc, and mutt wiki, can not find a good solution.
  I tried to search mutt mailing list archive, not found too.
  I think save-hook cannot do this. maybe some triggers can do this.
  
  Thanks in advance.
  
 
 Try to use a macro like this,
 
 folder-hook =INBOX push 'tag-pattern ~f 
 pyt...@python.comentertag-prefix-condsave-message=Python/enterend-condsync-mailbox'
This almost can arrive my destination. Is there a way to make it only execute 
this hook when you
leave Mutt ? I usually press *q* to leave Mutt.
Maybe I can rebind key *q* with this hook, and add *quit* behind this hook. 
this seems can not work.
Do you have better solution ?
 
 -- 
 oooO:
 (..):
 :\.(:::Oooo::
 ::\_)::(..)::
 :::)./:::
 ::(_/



-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com/author.html


signature.asc
Description: Digital signature


Re: how to automatic save mails to a folder from index.

2011-10-21 Thread du yang
On Friday 10/21/11 23:04:15 CST, stardiviner wrote:
 = On [2011-10-21 14:02:01 +0800]:
  du yang Said: 
  On Tuesday 10/11/11 13:41:15 CST, stardiviner wrote:
   How to *automatic* save mails from pyt...@python.com in INBOX/ to folder 
   Python/ 
   when I quit or switch mail folders.
   I have readed man muttrc, and mutt wiki, can not find a good solution.
   I tried to search mutt mailing list archive, not found too.
   I think save-hook cannot do this. maybe some triggers can do this.
   
   Thanks in advance.
   
  
  Try to use a macro like this,
  
  folder-hook =INBOX push 'tag-pattern ~f 
  pyt...@python.comentertag-prefix-condsave-message=Python/enterend-condsync-mailbox'
 This almost can arrive my destination. Is there a way to make it only execute 
 this hook when you
 leave Mutt ? I usually press *q* to leave Mutt.
 Maybe I can rebind key *q* with this hook, and add *quit* behind this hook. 
 this seems can not work.
 Do you have better solution ?
  
 

The outer command push '' should be removed if you try to bind it a macro.

-- 
oooO:
(..):
:\.(:::Oooo::
::\_)::(..)::
:::)./:::
::(_/


signature.asc
Description: Digital signature


how to automatic save mails to a folder from index.

2011-10-10 Thread stardiviner
How to *automatic* save mails from pyt...@python.com in INBOX/ to folder 
Python/ 
when I quit or switch mail folders.
I have readed man muttrc, and mutt wiki, can not find a good solution.
I tried to search mutt mailing list archive, not found too.
I think save-hook cannot do this. maybe some triggers can do this.

Thanks in advance.

-- 
stardiviner GPG: 5D9F64D8 Twitter: @numbchild
http://stardiviner.dyndns-blog.com


signature.asc
Description: Digital signature


Re: Automatic save-hooks?

2002-08-04 Thread David Champion

* On 2002.08.03, in [EMAIL PROTECTED],
*   Chris Stork [EMAIL PROTECTED] wrote:
 Problem:  I handed out loads of addresses of the form
 [EMAIL PROTECTED]  I'd like to automatically save
 emails to this address to =SENDERSPECIFIC, where automatically means
 that I don't want to put a save-hook line into my muttrc file.
 ...
 message-hook '~C cs-.*@nil\.ics\.uci\.edu' command

You could have procmail automatically put a save-hook into a separate
file which your .muttrc sources, and set that message-hook to re-source
that file.

-- 
 -D.Fresh fruit enriches everyone.  Takes the thirst
 Sun Project, APC/UCCO  out of everyday time.  A pure whiff of oxygen,
 University of Chicago  painting over a monochrome world in primary colors.
 [EMAIL PROTECTED]   We all know that.  It's why everyone loves fruit.



Automatic save-hooks?

2002-08-03 Thread Chris Stork

Problem:  I handed out loads of addresses of the form
[EMAIL PROTECTED]  I'd like to automatically save
emails to this address to =SENDERSPECIFIC, where automatically means
that I don't want to put a save-hook line into my muttrc file.

I thought about using message-hook to somehow call save-hook before I
look at a message, but I don't know how to feed the string
SENDERSPECIFIC to the command in
message-hook '~C cs-.*@nil\.ics\.uci\.edu' command

command could be some script that takes the message as input a la
'exec pipe-message\n script', but somehow even that doesn't work. ...and
this still leaves the problem unsolved of how to set the save-hook from
inside the script...

Any ideas welcome!

-- 
Chris Stork (PhD student at UC Irvine)  http://www.ics.uci.edu/~cstork/
OpenPGP fingerprint: B08B 602C C806 C492 D069  021E 41F3 8C8D 50F9 CA2F



Re: Automatic save-hooks? - procmail

2002-08-03 Thread Sven Guckes

* Chris Stork [EMAIL PROTECTED] [2002-08-04 01:46]:
 Problem:  I handed out loads of addresses of the form
 [EMAIL PROTECTED]  I'd like to automatically save
 emails to this address to =SENDERSPECIFIC, where automatically means
 that I don't want to put a save-hook line into my muttrc file.

use a mail filter.  mutt is not a mail filter.  wrong list.
try procmail.  recommended.  yadda yadda. faq.  see sig.

Sven

-- 
Sven Guckes [EMAIL PROTECTED] | Latest version:
PROCMAIL HomePage:  http://www.procmail.org/  | procmail-3.22 [2001-10-09]
PROCMAIL http://www.math.fu-berlin.de/~guckes/procmail/
PROCMAIL http://www.math.fu-berlin.de/~guckes/setup/procmailrc



Re: Automatic save-hooks? - procmail

2002-08-03 Thread Chris Stork

On Sun, Aug 04, 2002 at 04:11:49AM +0200, Sven Guckes wrote:
 * Chris Stork [EMAIL PROTECTED] [2002-08-04 01:46]:
  Problem:  I handed out loads of addresses of the form
  [EMAIL PROTECTED]  I'd like to automatically save
  emails to this address to =SENDERSPECIFIC, where automatically means
  that I don't want to put a save-hook line into my muttrc file.
 
 use a mail filter.  mutt is not a mail filter.  wrong list.
 try procmail.  recommended.  yadda yadda. faq.  see sig.

Sorry, I was not clear enough:  I *really* want to use the save-hook.
The messages should be delivered to my inbox.  After seeing them I want
to save them without much typing using the save-hook.

(I use procmail already to filter my mail.  But the emails I'm talking
about arrive rarely and I could miss them if they were presorted.)

-- 
Chris Stork (PhD student at UC Irvine)  http://www.ics.uci.edu/~cstork/
OpenPGP fingerprint: B08B 602C C806 C492 D069  021E 41F3 8C8D 50F9 CA2F



Re: Automatic save-hooks? - procmail

2002-08-03 Thread Rob 'Feztaa' Park


--ReaqsoxgOBHFXBhH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Alas! Chris Stork spake thus:
 (I use procmail already to filter my mail.  But the emails I'm talking
 about arrive rarely and I could miss them if they were presorted.)

Then what you need is a system in which it's impossible to miss
presorted mail.

Unless you want to put in a save-hook for every value of SENDERSPECIFIC,
then procmail is *definitely* the way to go here.

Personally, I use mbox hooks that are generated automatically for all of
my mboxes (my muttrc is a perl script). Then I have my index format set
to display the filesizes of each mbox. The result is that all my old
mail is stored in ~/mail/archives/-MM-mboxname, all my new mail
is stored in ~/mail/mboxname, and if I see any mboxes with a nonzero
size, I know they contain new mail. Trust me, in a list of 0's, a 4 to 6
digit number really stands out.

--=20
Rob 'Feztaa' Park
http://members.shaw.ca/feztaa/
--
Pilfering Treasury property is paticularly dangerous: big thieves are
ruthless in punishing little thieves.
-- Diogenes

--ReaqsoxgOBHFXBhH
Content-Type: application/pgp-signature
Content-Disposition: inline

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9TLciPTh2iSBKeccRAp3zAJ48HO6QejaoLj6oSeYa0EdboErpigCggvmV
aRW/oDYw2IoC14m8Y2lv5hI=
=AB5j
-END PGP SIGNATURE-

--ReaqsoxgOBHFXBhH--



Automatic save

1999-11-11 Thread Marius Gedminas

Is there a way to save all tagged messages to different mailboxes
(determined by save-hooks for each message separately)?

Marius Gedminas
-- 
Hoping the problem  magically goes away  by ignoring it is the "microsoft
approach to programming" and should never be allowed.
-- Linus Torvalds