[95806] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: OFF - Sendmail and Perl/Scripting question.

daemon@ATHENA.MIT.EDU (Kevin W. Reed)
Wed Oct 21 12:01:42 1998

Date: Wed, 21 Oct 1998 09:00:49 -0700
From: "Kevin W. Reed" <soldo@telesys.tnet.com>
To: redhat-list@redhat.com
Cc: ccyr@sycore.ml.org, ccyr@home.com
Mail-Followup-To: redhat-list@redhat.com, ccyr@sycore.ml.org, ccyr@home.com
In-Reply-To: <199810211445.IAA03294@sycore.ml.org>; from Colin Cyr on Wed, Oct 21, 1998 at 08:45:05AM -0600
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Told to us by Colin Cyr (ccyr@sycore.ml.org)
on Wed, Oct 21, 1998 at 08:45:05AM -0600


> Hello, I'm working on a small project, I require the ability to send out 
> e-mail from the Per; script.
> 
> This in and of itself is quite easy, the following task is not (from what I 
> can see).  I need to track the message ID's on the outgoing mail so I can 
> properly handle incoming mail.
> 
> Is there any way to get sendmail to kick back the message ID of the message it 
> just sent?

Yep.... Give it a Message-ID: header in the message you hand to it,
if it is format correctly, it will use that instead of generating its
own.


filename:
	----------------------------------------------------------------
	From: Perl Script <perl@home.com>
	To: Santa Claus <s.claus@northpole.com>
	Subject: New Toys for My Linux Box
	Message-ID: <1998Oct21.0859.15513@special.com>

	I need new toys for my Linux box.... I've been real good...
	----------------------------------------------------------------


sendmail -oi -f perl@home.com -t < filename


 
> The only other solutions I could think of are:
[snip]

-- 
----------------------------------------------------------------------
Kevin W. Reed - Voice 602-469-5106         TNET Services - MAILBOT.COM
Mesa, Arizona U.S.A.                  MAJORDOMO & Mailing List Account
mailto://soldo@tnet.com - http://www.tnet.com - http://www.mailbot.com


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post