From owner-freebsd-questions Mon Sep 17 2:21:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 1FC3B37B401 for ; Mon, 17 Sep 2001 02:21:39 -0700 (PDT) Received: from hades.hell.gr (patr530-b026.otenet.gr [195.167.121.154]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f8H9LYd23835; Mon, 17 Sep 2001 12:21:35 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f8H8Wc506433; Mon, 17 Sep 2001 11:32:38 +0300 (EEST) (envelope-from charon@labs.gr) Date: Mon, 17 Sep 2001 11:32:37 +0300 From: Giorgos Keramidas To: dmp Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Reprocessing locally delivered mail? Message-ID: <20010917113237.B5577@hades.hell.gr> References: <3BA59711.DC48E414@pantherdragon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3BA59711.DC48E414@pantherdragon.org>; from dmp@pantherdragon.org on Sun, Sep 16, 2001 at 11:24:17PM -0700 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG dmp wrote: > I have a couple of users who are no longer able to access their > mailboxes, but have emails waiting for them, and want them forwarded to > another email address. I've already set their accounts to forward to > other addresses, and am now trying to figure out get the contents of > their spool files to them. Any ideas how to do this? You can do it in many ways: a) Assuming they have a mailer capable of reading Unix mbox files, zip the spool file and send it over as an attachment. Then let them handle splitting the mail, etc. or b) Use formail/procmail to filter each message through a ~/.procmailrc in the HOME of each user. Use ``su'' to become that user, and put in their .procmailrc file: :0 * ! users@news.address and fire up formail on the spool file like this: % formail -s procmail < /var/mail/user This way, formail will split the messages of /var/mail/user and filter them one by one through procmail, whose only rule in .procmailrc will forward the message to . -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message