Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 42453 invoked from network); 17 Jul 2005 05:12:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jul 2005 05:12:14 -0000 Received: (qmail 30499 invoked by uid 500); 17 Jul 2005 05:12:02 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 30475 invoked by uid 500); 17 Jul 2005 05:12:01 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 30462 invoked by uid 99); 17 Jul 2005 05:12:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Jul 2005 22:12:01 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of apache-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Jul 2005 22:11:57 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Du1RS-0003X3-9I for dev@httpd.apache.org; Sun, 17 Jul 2005 07:11:54 +0200 Received: from adsl-2-124-61.mia.bellsouth.net ([65.2.124.61]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jul 2005 07:11:54 +0200 Received: from joe+gmane by adsl-2-124-61.mia.bellsouth.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Jul 2005 07:11:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: dev@httpd.apache.org To: dev@httpd.apache.org From: Joe Schaefer Subject: Re: mod_smtpd design - protocol Date: Sun, 17 Jul 2005 01:11:25 -0400 Lines: 24 Message-ID: <87ll46nhj6.fsf@gemini.sunstarsys.com> References: <87wtnqo01t.fsf@gemini.sunstarsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adsl-2-124-61.mia.bellsouth.net Mail-Copies-To: never User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:ARoJO09moFM7KIIkz4Om0xHoIFE= Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N "Jem Berkes" writes: >> Have you considered using libapreq2 for parsing >> the mime headers in there? The header parser >> should really convenient for that, you could >> even introduce a post-header-parser hook that >> runs when the parser finishes. > > My own suggestion is that we don't touch or try to interpret MIME. > Parsing the message headers into a table is straightforward but > once you get into recognizing MIME you're moving out of the protocol > realm and into the message format realm - and you start having to > worry about messages within messages, boundaries, corrupt structures, > and other things that I think are not mod_smtpd's problem. > Right, the message format realm is where a request_rec (and associated input filters) might have a role. It's also where you can change from reading single lines to reading entire blocks, thus cutting down on round trips through the input filters. -- Joe Schaefer