Subject: procmail with pine

From: [email-masked] (Pirkko Yukes)
Date: 16 Nov 1994 17:16:41 GMT

Please tell me, (in easy to understand terms ;-)) what to do:

I have tried, in vain, to make the procmail work with Pine.  I currently 
have Pine 3.89, but will probably upgrade to 3.91 next week.

When I thought I had done everything correctly and tried to open the 
newly created incoming folders, It said: 'opening folder x...'  'cannot 
open folder x...'  'no such file or directory...'

I only need the procmail to separate my incoming mail to several 
folders.  Should be a simple task...

What changes do I need to make in my .pinerc?
How to set up .procmailrc correctly?
What else should I do to get it to work?
By the way, I need to separate mail based on TO and/or CC lines, not the 
FROM line.

I have spent hours on this.  Please help so I can stop pulling my hair...

-- 
Pirkko                                               e-mail:[email-masked]

-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-

---

From: Laurence Lundblade <[email-masked]>
Date: Wed, 16 Nov 1994 10:51:08 -0500 (EST)

Here's a bit of .procmailrc that works for me:

     PATH=/bin:/usr/bin:/usr/local/bin
     MAILDIR=$HOME/mail      #you'd better make sure it exists
     DEFAULT=$MAILDIR/mbox
     LOGFILE=$MAILDIR/from
     :0:
     * ^Cc:.*imap
     Saved-Imap-Messages
     :0:
     * ^To:.*imap
     Saved-Imap-Messages

Any mail with "imap" in the To: or Cc: lines gets filed in the folder 
Saved-Imap-Messages and it shows up in the folder listing when I type 
"L".  This should work with 3.89 and 3.91 just fine!

Laurence Lundblade                             
  [email-masked] (and a few other addresses) 
     http://oneworld.wa.com/laurence/home.html
        Virginia Tech CS -- Blacksburg, Virginia, US -- 703-552-2537

On 16 Nov 1994, Pirkko Yukes wrote:

> [ rest deleted.....]

---

From: [email-masked] (Ming-Yen Hsu)
Date: 17 Nov 1994 06:12:23 GMT

Laurence Lundblade ([email-masked]) wrote:
: Here's a bit of .procmailrc that works for me:

:      PATH=/bin:/usr/bin:/usr/local/bin
:      MAILDIR=$HOME/mail      #you'd better make sure it exists
:      DEFAULT=$MAILDIR/mbox
:      LOGFILE=$MAILDIR/from
:      :0:
:      * ^Cc:.*imap
:      Saved-Imap-Messages
:      :0:
:      * ^To:.*imap
:      Saved-Imap-Messages

: Any mail with "imap" in the To: or Cc: lines gets filed in the folder 
: Saved-Imap-Messages and it shows up in the folder listing when I type 
: "L".  This should work with 3.89 and 3.91 just fine!

You need only one recipe to match the condition "To:" and "Cc:", it looks
like this:

:0:
* ^TOimap
Saved-Imad-Messages

>From the "DRAFF 2 of Getting Started with Procmail" by Nancy McGough,
     Notation      Meaning
     ========      =======
     :0            Begin a recipe
       :           Use a lock file
     *             Begin a condition 
       ^           Match beginning of a line followed by....
        TO         ``To: '' ``Cc: '' or other synonyms for To, followed by any
                     characters followed by....

It is really useful if you have joined a lot of mailing list.

--
 _____  _____                                              _____  ____  _____
|     \|  _  \ Ming-Yen Hsu, Database Lab. NCU Taiwan ROC |     \/    \|  |  |
|  |   |  _  < Computer Science & Information Engineering |  |  |  <--<|  |  |
|_____/|_____/ Electronic Mail : [email-masked] |__|__/\____/\_____|

---

From: [email-masked] (Pirkko Yukes)
Date: 18 Nov 1994 16:25:01 GMT

<[email-masked]> was cancelled from within rn.
-- 
Pirkko                                               e-mail:[email-masked]