>From procmail-admin(_at_)lists(_dot_)rwth-aachen(_dot_)de Sun Jul 1 01:01:50 2001 Return-Path: Delivered-To: sfr(_at_)localhost(_dot_)gallien(_dot_)de Received: from mail.arcor-ip.de (localhost [127.0.0.1]) by mail.gallien.de (Postfix) with ESMTP id 1509E7B9E5 for ; Sun, 1 Jul 2001 00:58:02 +0200 (CEST) Received: from mx0.gmx.net (213.165.64.100) by mail.arcor-ip.de; 30 Jun 2001 20:11:17 +0200 Received: (qmail 3738 invoked by alias); 30 Jun 2001 18:11:16 -0000 Delivered-To: GMX delivery to sfr(_at_)gmx(_dot_)net Received: (qmail 3731 invoked by uid 0); 30 Jun 2001 18:11:16 -0000 Received: from r220-1.rz.rwth-aachen.de (134.130.3.31) by mx0.gmx.net (mx14) with SMTP; 30 Jun 2001 18:11:16 -0000 Received: from r220-1.rz.RWTH-Aachen.DE (relay2.RWTH-Aachen.DE [134.130.3.1]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3-2) with ESMTP id f5UIAw702565; Sat, 30 Jun 2001 20:10:58 +0200 (MEST) Received: from nets2.rz.RWTH-Aachen.DE (nets2.rz.RWTH-Aachen.DE [137.226.144.243]) by r220-1.rz.RWTH-Aachen.DE (8.10.1/8.11.3/4) with ESMTP id f5UIAvW02556; Sat, 30 Jun 2001 20:10:57 +0200 (MEST) Received: from nets2.rz.RWTH-Aachen.DE (localhost [127.0.0.1]) by nets2.rz.RWTH-Aachen.DE (8.9.1a/8.9.1/1) with ESMTP id UAA17006; Sat, 30 Jun 2001 20:07:22 +0200 (MET DST) Received: from ue250-1.rz.RWTH-Aachen.de (ue250-1.rz.RWTH-Aachen.DE [134.130.3.33]) by nets2.rz.RWTH-Aachen.DE (8.9.1a/8.9.1/1) with ESMTP id UAA16995 for ; Sat, 30 Jun 2001 20:06:08 +0200 (MET DST) Received: from ue250-1.rz.RWTH-Aachen.de (relay1.RWTH-Aachen.DE [134.130.3.3]) by ue250-1.rz.RWTH-Aachen.de (8.10.1/8.11.3-2) with ESMTP id f5UI68N23204 for ; Sat, 30 Jun 2001 20:06:08 +0200 (MEST) Received: from mails.rz.rwth-aachen.de (mails.rz.RWTH-Aachen.DE [134.130.1.251]) by ue250-1.rz.RWTH-Aachen.de (8.10.1/8.11.3/4) with ESMTP id f5UI67923200 for ; Sat, 30 Jun 2001 20:06:07 +0200 (MEST) Received: from ue250-1.rz.RWTH-Aachen.de ("port 35681"@ue250-1.rz.RWTH-Aachen.DE [134.130.3.33]) by mails.rz.rwth-aachen.de (Sun Internet Mail Server sims.4.0.2000.10.12.16.25.p8) with ESMTP id <0GFR005P58Y6TO(_at_)mails(_dot_)rz(_dot_)rwth-aachen(_dot_)de> for procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE (ORCPT rfc822;procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de); Sat, 30 Jun 2001 20:06:07 +0200 (MET DST) Received: from ue250-1.rz.RWTH-Aachen.de (relay1.RWTH-Aachen.DE [134.130.3.3]) by ue250-1.rz.RWTH-Aachen.de (8.10.1/8.11.3-2) with ESMTP id f5UI66N23189 for ; Sat, 30 Jun 2001 20:06:06 +0200 (MEST) Received: from hera.cuci.nl (hera.cuci.nl [212.125.128.1]) by ue250-1.rz.RWTH-Aachen.de (8.10.1/8.11.3/4) with ESMTP id f5UI65923184 for ; Sat, 30 Jun 2001 20:06:05 +0200 (MEST) Received: from chmls06.mediaone.net (chmls06.mediaone.net [24.147.1.144]) by hera.cuci.nl (BuGless_3.01) with ESMTP id f5UI52924862 for ; Sat, 30 Jun 2001 20:05:07 +0200 Received: from acadia.ne.mediaone.net (acadia.ne.mediaone.net [65.96.185.189]) by chmls06.mediaone.net (8.11.1/8.11.1) with ESMTP id f5UI50800951 for ; Sat, 30 Jun 2001 14:05:00 -0400 (EDT) Received: (from leblanc(_at_)localhost) by acadia.ne.mediaone.net (8.9.3/8.9.3) id NAA25035; Sat, 30 Jun 2001 13:59:31 -0400 From: Louis LeBlanc Subject: Re: get rid of 'From '-"Header" In-reply-to: <200106300105(_dot_)f5U150k22850(_at_)callisto(_dot_)gac(_dot_)edu> To: procmail-users(_at_)procmail(_dot_)org, procmail-users(_at_)procmail(_dot_)org Reply-To: procmail-users(_at_)procmail(_dot_)org Mail-Followup-To: procmail-users(_at_)procmail(_dot_)org Message-id: <20010630135931(_dot_)C24761(_at_)acadia(_dot_)ne(_dot_)mediaone(_dot_)net> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-disposition: inline Content-transfer-encoding: 8BIT User-Agent: Mutt/1.3.19i X-bright-idea: Lets abolish HTML mail! References: <200106292036(_dot_)f5TKawa27669(_at_)ripco(_dot_)com> <200106300105(_dot_)f5U150k22850(_at_)callisto(_dot_)gac(_dot_)edu> Content-Transfer-Encoding: 8BIT Sender: procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE Errors-To: procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE X-BeenThere: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: discussion of the procmail program List-Unsubscribe: , List-Archive: Date: Sat, 30 Jun 2001 13:59:31 -0400 Content-Transfer-Encoding: 8BIT Content-Length: 3576 Lines: 88 On 06/29/01 08:05 PM, Philip Guenther sat at the `puter and typed: > "David W. Tamkin" writes: > ... > > . . . > > Your description of raw mode is not quite accurate. The 'r' flag tells > procmail to _not_ do four things: > > 1) put a '>' before any line in the body that starts with "From " > 2) add a single newline to the end if it doesn't end in two newlines > 3) force an access time earlier than the modification time > 4) if configured with custom message delimiters (ala MMDF) > write those out before and after the message itself > > By default, procmail does all of those when writing to an mbox-style > folder. When writing to other folder styles or to a pipe, procmail > automatically disables some of those. In particular, when writing to a... > > pipe, only do (2) > MH folder, only do (2) > directory folder, only do (2) > maildir, do none of them > > So yes, the 'r' flag has no effect when writing to a maildir. Very interesting. I think I understand this a little more, but as usual, 2 or 3 answers will result in 6 or 8 more question . . . I have the following in my sendmail.cf: Mcyrus, P=/usr/bin/procmail, F=lsDFMnPqA5@/:|, S=10, R=20/40, T=X-Unix, U=cyrus:mail, A=procmail -m /etc/procmailrc $u $h Which is where I am invoking procmail from. Looks to me like I am only calling with the -m flag. Which just means 'general purpose mail filter'. I also notice that procmail adds the trailing newline, but what else does it do (besides running it through the recipes)? I am using procmail to filter things out and add 'Lines: ' header, etc. I am then calling the Cyrus deliver agent to dump it into a Cyrus imap folder. The problem I had was that *formail* was adding the leading "> From" header, which Cyrus didn't like. Using the -f flag on formail basically tells it to not change the mailbox format of the message. Sendmail must do that. > As for the leading "From " line, procmail will _automatically_ leave it > off line when writing to a maildir folder, but there's currently no other > way to tell procmail to not write out that line. Arguably, procmail > shouldn't be writing out such a line to MH folders either and it would > be nice to have a flag (R? F?) that would disable it for other cases. > For now you have to use the > formail -b -I"From " > bit. (The -b flag tells formail to not escape embeded "From " lines.) Yah, so formail is supposed to format the message, add/remove headers, etc. Not procmail. Procmail is just the filter, right? No formatting unless you call formail. > Note that whether the message starts with a leading "From " line is yet > another point to consider. The message being processed by procmail will > initially have such a line if > a) the message fed to procmail had one, OR > b) procmail was invoked with the -f flag, OR > c) procmail is in delivery mode (invoked with the -d flag, the -z flag, > or via a name that doesn't start with procmail) So what would change if I wanted sendmail to call procmail with the -r flag? > The details above are for version 3.20. Previous versions did (2) for > maildir folders, and there may be other differences that I can't remember. I am using 3.15, maybe I should upgrade? Thanks Lou -- Louis LeBlanc Fully Funded Hobbyist, KeySlapper Extrordinaire :) leblanc(_at_)acadia(_dot_)ne(_dot_)mediaone(_dot_)net http://acadia.ne.mediaone.net ԿԬ _______________________________________________ procmail mailing list procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail