From owner-freebsd-isp Wed Oct 29 21:04:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA14360 for isp-outgoing; Wed, 29 Oct 1997 21:04:12 -0800 (PST) (envelope-from owner-freebsd-isp) Received: from panda.hilink.com.au (panda.hilink.com.au [203.8.15.25]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA14355 for ; Wed, 29 Oct 1997 21:04:05 -0800 (PST) (envelope-from danny@panda.hilink.com.au) Received: (from danny@localhost) by panda.hilink.com.au (8.8.5/8.8.5) id QAA20232; Thu, 30 Oct 1997 16:08:49 +1100 (EST) Date: Thu, 30 Oct 1997 16:08:48 +1100 (EST) From: "Daniel O'Callaghan" To: xiyuan qian cc: freebsd-isp@FreeBSD.ORG Subject: Re: Which one? In-Reply-To: <199710301118.LAA06302@npc.haplink.com.cn> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 30 Oct 1997, xiyuan qian wrote: > > Hi, I am working with developing a simple email gate program. That is dial out > to the ISP to get the email message then distribute the message to the right > user based on the To: line. I think I can carry it out by two methods: > > 1. When I get the To: line and the email message, send the message to the user > by the internal mail function; > 2. Direct operate the /var/mail/user file, append the message to this file; > > Which one is the favourite one? Is there any problem when the dial line > disconnect suddenly? You should use uucp for this. What do you do when the 'To:' just says 'To: freebsd-isp@freebsd.org'??? How do you know which users to deliver to? Danny