Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 1998 18:57:38 +1300
From:      andrew@squiz.co.nz (Andrew McNaughton)
To:        xiyuan qian <xiyuan@npc.haplink.com.cn>
Cc:        isp@FreeBSD.ORG
Subject:   Re: How many types of the To: line in a email?
Message-ID:  <v02120d0fb11ab1c465be@[192.168.1.1]>

next in thread | raw e-mail | index | archive | help
>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: <owner-freebsd-isp@FreeBSD.ORG>
>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 <andrew@squiz.co.nz>; 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 <isp@freebsd.org>; 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 <xiyuan@npc.haplink.com.cn>
>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: "<xiyuan qian"<xiyuan
>@npc.haplink.com.cn> or xiyuan qian<xiyuan@npc.haplink.com.cn or
>"\"xiyuan qian\""<xiyuan@npc.haplink.com.cn> 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 <andrew@squiz.co.nz>; 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v02120d0fb11ab1c465be>