From owner-freebsd-isp Wed Feb 25 22:00:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA25219 for freebsd-isp-outgoing; Wed, 25 Feb 1998 22:00:08 -0800 (PST) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from mail.iconz.co.nz (mail.iconz.co.nz [202.14.100.36]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA25206 for ; Wed, 25 Feb 1998 22:00:05 -0800 (PST) (envelope-from andrew@squiz.co.nz) Received: from [192.168.1.1] (a.mcn.actrix.gen.nz [203.96.56.128]) by mail.iconz.co.nz (8.8.7/8.8.7) with SMTP id SAA160940888472561; Thu, 26 Feb 1998 18:56:01 +1300 (NZDT) X-Sender: squiz1@pop.actrix.gen.nz Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 26 Feb 1998 18:57:38 +1300 To: xiyuan qian From: andrew@squiz.co.nz (Andrew McNaughton) Subject: Re: How many types of the To: line in a email? Cc: isp@FreeBSD.ORG Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Received: by mail.actrix.gen.nz for squiz1 > (with Cubic Circle's cucipop (v1.21 1997/08/10) Thu Feb 26 18:38:34 1998) >X-From_: owner-freebsd-isp@FreeBSD.ORG Thu Feb 26 16:43:14 1998 >Return-Path: >Received: from hub.freebsd.org (hub.FreeBSD.ORG [204.216.27.18]) > by mail.actrix.gen.nz (8.8.8/8.8.5) with ESMTP id QAA13117 > for ; Thu, 26 Feb 1998 16:43:08 +1300 (NZDT) >Received: from localhost (daemon@localhost) > by hub.freebsd.org (8.8.8/8.8.8) with SMTP id TAA15572; > Wed, 25 Feb 1998 19:38:03 -0800 (PST) > (envelope-from owner-freebsd-isp) >Received: by hub.freebsd.org (bulk_mailer v1.6); Wed, 25 Feb 1998 19:34:52 >-0800 >Received: (from majordom@localhost) > by hub.freebsd.org (8.8.8/8.8.8) id TAA14831 > for freebsd-isp-outgoing; Wed, 25 Feb 1998 19:34:52 -0800 (PST) > (envelope-from owner-freebsd-isp@FreeBSD.ORG) >Received: from npc.haplink.com.cn ([202.96.192.53]) > by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA14819 > for ; Wed, 25 Feb 1998 19:34:47 -0800 (PST) > (envelope-from xiyuan@npc.haplink.com.cn) >Received: (from xiyuan@localhost) > by npc.haplink.com.cn (8.8.8/8.8.8) id LAA24477 > for isp@freebsd.org; Thu, 26 Feb 1998 11:41:53 GMT >Date: Thu, 26 Feb 1998 11:41:53 GMT >From: xiyuan qian >Message-Id: <199802261141.LAA24477@npc.haplink.com.cn> >To: isp@FreeBSD.ORG >Subject: How many types of the To: line in a email? >Sender: owner-freebsd-isp@FreeBSD.ORG >X-Loop: FreeBSD.org > >Hi, I am developing an email gateway program, that is distrubuting the incoming >email to the right person according to the To: line in the incoming emails. >But I find there are many types with the To: line like: "@npc.haplink.com.cn> or xiyuan qian"\"xiyuan qian\"" or xiyuan@npc.haplink.com.cn. >Is there any RFC describing the right To: line's type? > >Best regaurds! > >--xiyuan I regularly get people writing to me complaining they don't get mailings form a commercial mailing list I run. These almost always turn out to be a result of people running mail gateways using the To: header. Be aware that this header is not always useful. For instance, your mail as I recieved it through the mailing list said To: isp@FreeBSD.ORG look for information in the Received headers, added by sendmail. Eg: Received: from hub.freebsd.org (hub.FreeBSD.ORG [204.216.27.18]) by mail.actrix.gen.nz (8.8.8/8.8.5) with ESMTP id QAA13117 for ; Thu, 26 Feb 1998 16:43:08 +1300 (NZDT) ^^^^^^^^^^^^^^^^^^^^ You can find a specification of mail formats in RFC's 821 and 822. You're probably better off though to find some perl code for the purpose. look in CPAN, or possibly the majordomo code. It's a fundamentally awkward problem though, since there exist legal undeliverable mail addresses, and illegal deliverable ones. Think first though what it is you want to do that is not already done by sendmail, or by fetchmail working with procmail. If there's really some functionality you need that's not in these products, it would probably be better to look at adding it to the existing code, and possibly submitting it for others to use. Andrew McNaughton The effort to understand the universe is Andrew McNaughton one of the very few things that lifts ++64 4 389 6891 human life above the level of farce, andrew@squiz.co.nz and gives it some of the grace http://www.squiz.co.nz of tragedy - Steven Weinberg http://www.newsroom.co.nz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message