Article View: comp.sys.amiga.uucp
Article #196sendmail bounce change
From: Lawrence "The Dreamer" Chen
Date: Tue, 26 Mar 1996 15:38
Date: Tue, 26 Mar 1996 15:38
55 lines
2495 bytes
2495 bytes
I made a small change to sendmail for bouncing messages today.
I changed so that it'll bounce to "Errors-To:" if the header is present.
The diff below shows some other changes. I changed the way MailLog is updated
by sendmail/rmail, because I have hacked together some billing software to
track UUCP usage of my users (I try to recover my costs by applying a small
charge for outgoing USENET, and both incoming and outgoing Email).
Also, the original source didn't close the MailLog file.
TO TRANSFORM origb4/src/sendmail/sendmail.c INTO au117b4/src/sendmail/sendmail.c ...
*** CHANGE 1236 IN origb4/src/sendmail/sendmail.c TO [1236,1238] IN au117b4/src/sendmail/sendmail.c ***
< if ((from = FindHeader ("Sender:")) || (from = FindHeader ("From:"))) {
---------------
> if ((from = FindHeader ("Errors-To:")) ||
> (from = FindHeader ("Sender:")) ||
> (from = FindHeader ("From:"))) {
*** APPEND AFTER 1747 IN origb4/src/sendmail/sendmail.c ***
> long clock;
> struct tm *ut;
>
> (void) time(&clock);
> ut = localtime(&clock);
>
*** CHANGE 1749 IN origb4/src/sendmail/sendmail.c TO [1757,1759] IN au117b4/src/sendmail/sendmail.c ***
< fprintf (ml, "%s %s %s %ld %s%s\n",
---------------
> fprintf (ml, "(%02d/%02d-%02d:%02d:%02d) MAIL %s %s %s %ld %s%s\n",
> ut->tm_mon + 1, ut->tm_mday,
> ut->tm_hour, ut->tm_min, ut->tm_sec,
*** CHANGE 1762 IN origb4/src/sendmail/sendmail.c TO [1772,1774] IN au117b4/src/sendmail/sendmail.c ***
<
---------------
> if (LogMail)
> fclose(ml);
>
Don't ask me for a binary.....I don't have the time, money, or desire to
create and send binaries for all the possible requests.
--
"Just a Crazy Engineer with an Amiga and an HP48sx" - The Dreamer
Email: dreamer@lhaven.uumh.ab.ca or "Lawrence Chen" @ 1:134/3002
PHONE: +1 403 526 6019 FAX: +1 403 529 5102 CIS: 74200,2431
Praxis Society K12 BBS: +1 403 529 1610 Lunatic Haven: +1 403 526 6957
Coming Soon, Medicine Hat Community Network
Technical Details
Message-ID:
<ETSiy*y8-1@lhaven.UUmh.Ab.Ca>Path:
arc1-ca.pugleaf.net!news.agt.net!dreamerShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.agt.net!dreamer From: dreamer@lhaven.UUmh.Ab.Ca (Lawrence "The Dreamer" Chen) Newsgroups: comp.sys.amiga.uucp,alt.sys.amiga.uucp Subject: sendmail bounce change Date: Tue, 26 Mar 1996 15:38:00 GMT Organization: Lunatic Haven Information Systems Message-ID: <ETSiy*y8-1@lhaven.UUmh.Ab.Ca> Reply-To: dreamer@lhaven.uumh.ab.ca NNTP-Posting-Host: mdhtpx01-port-40.agt.net X-Newsreader: Arn V1.03a