Subject: sortmail

From: [email-masked] (Jan-Frode Myklebust)
Date: 15 Mar 1997 12:02:01 GMT

Is it possible to use sortmail to first first sort some mail to different mailboxes, and then send the rest to both the default folder and forward to another address?

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jan-Frode Myklebust             [email-masked]
Institute of Informatics, University of Bergen
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---

From: [email-masked] (Frans ter Borg)
Date: 15 Mar 1997 22:59:59 GMT

Jan-Frode Myklebust ([email-masked]) wrote:
: Is it possible to use sortmail to first first sort some mail to 
: different mailboxes, and then send the rest to both the default folder 
: and forward to another address?

Why wouldn't it ? Pine can read (almost) any folder, so I guess this will 
work with sortmail. I've never heard of it, but it works with procmail 
just fine here.

Frans
--------------------------------------------------------------
|             Frans ter Borg             | [email-masked] |
|         "Resistance is futile"         | [email-masked]  |
--------------------------------------------------------------

---

From: [email-masked] (Jan-Frode Myklebust)
Date: 16 Mar 1997 14:16:07 GMT

Frans ter Borg ([email-masked]) wrote:
: Jan-Frode Myklebust ([email-masked]) wrote:
: : Is it possible to use sortmail to first first sort some mail to 
: : different mailboxes, and then send the rest to both the default folder 
: : and forward to another address?
: 
: Why wouldn't it ? Pine can read (almost) any folder, so I guess this will 
: work with sortmail. I've never heard of it, but it works with procmail 
: just fine here.
: 
: 
: Frans
: --------------------------------------------------------------
: |             Frans ter Borg             | [email-masked] |
: |         "Resistance is futile"         | [email-masked]  |
: --------------------------------------------------------------
: 

-- 

How do I set it up then?

---

From: Robin S Socha <[email-masked]>
Date: Sun, 16 Mar 1997 18:17:45 +0100 (CET)

-----BEGIN PGP SIGNED MESSAGE-----

  >: : different mailboxes, and then send the rest to both the default
  >: : folder and forward to another address?
  >: Why wouldn't it ? Pine can read (almost) any folder, so I guess this
  >: will work with sortmail. I've never heard of it, but it works with
  >: procmail just fine here.

  >How do I set it up then?

Pine or procmail? To set up pine, you'd need something like this in your
.pinerc:

# List of incoming msg folders besides INBOX, e.g. ={host2}inbox,
# {host3}inbox Syntax: optnl-label {optnl-imap-host-name}folder-path
incoming-folders="Robin" 	~/Mail/IN.robin,
                 "Pine"         ~/Mail/IN.pine,
                 "Procmail"     ~/Mail/IN.procmail

This will get you a new "folder collection" with these files from your
Mail-dir. You'd have to create them first, though. At the same time, you
should cook up some script to store them later on, as they do not get pruned
by pine and can become quite large. (A dirty hack would be something like
	cat IN.pine >> ./OLD/IN.pine | rm IN.pine | touch IN.pine
No comments on this, it ugly and clumsy, but it'll work in the beginning.
                        
Setting up procmail is an entirely different matter, and I strongly suggest
getting some kind of FAQ before starting on it, even before reading the man
pages. A good starting point would be Nancy McGoughs "filtering FAQ", which
also has some references to further in-depth information.

There  exists  a mailinglist for questions relating to any program in the
procmail package:
<[email-masked]>
	for submitting questions/answers.
<[email-masked]>
	for subscription requests.
                                   
Enjoy.

- -----
Robin S. Socha,
Political Science Dept., Bonn University, Bonn

GMC d++ s+:+ a- C++ UL++$>+++ P+>++$ L++$>+++ E>+ W- N+ o@ !K-- w--- 
O M-- V-- PS--- PE+++ Y+ PGP++>+++ t+() 5-- !X R() tv++(+) b+++ DI++ 
D+(++) G++>+++ e++>+++ h r++>+++ y+**

---

From: [email-masked] (Frans ter Borg)
Date: 16 Mar 1997 15:19:19 GMT

Jan-Frode Myklebust ([email-masked]) wrote:
: Frans ter Borg ([email-masked]) wrote:
: : Jan-Frode Myklebust ([email-masked]) wrote:
: : : Is it possible to use sortmail to first first sort some mail to 
: : : different mailboxes, and then send the rest to both the default folder 
: : : and forward to another address?
: : 
: : Why wouldn't it ? Pine can read (almost) any folder, so I guess this will 
: : work with sortmail. I've never heard of it, but it works with procmail 
: : just fine here.

: How do I set it up then?

I normally do not refer to FAQ's, but as you probably don't have any idea
where to start, I will this time.

The mail filtering FAQ can be obtained through:

http://www.jazzie.com/ii/faqs/archive/mail/filtering-faq/

Have fun...

Frans