From owner-freebsd-isp Wed Oct 29 19:13:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA08149 for isp-outgoing; Wed, 29 Oct 1997 19:13:20 -0800 (PST) (envelope-from owner-freebsd-isp) Received: from npc.haplink.com.cn ([202.96.192.53]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA08131 for ; Wed, 29 Oct 1997 19:13:11 -0800 (PST) (envelope-from xiyuan@npc.haplink.com.cn) Received: (from xiyuan@localhost) by npc.haplink.com.cn (8.8.4/8.6.9) id LAA06302 for freebsd-isp@freebsd.org; Thu, 30 Oct 1997 11:18:15 GMT Date: Thu, 30 Oct 1997 11:18:15 GMT From: xiyuan qian Message-Id: <199710301118.LAA06302@npc.haplink.com.cn> To: freebsd-isp@freebsd.org Subject: Which one? Sender: owner-freebsd-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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? Best regaurds!