Changes to return-to-sender mail.c
espo at bpa.UUCP
espo at bpa.UUCP
Sat Oct 22 23:09:01 AEST 1983
TO conform with the RFC822 format for mail headers, the following
changes to the return-to-sender mail source I posted earlier must
be made. The following three (3) lines will do it.
** Change From **
for( p = "Return Address: "; *p )
** To **
for( p = "Return-Address:"; *p )
** Change From **
strncpy(retaddr,&line[16],strlen(&line[16])-1);
** To **
strncpy(retaddr,&line[15],strlen(&line[15])-1);
** Change From **
fprintf(rmf, "Return Address: %s\n", retaddr);
** To **
fprintf(rmf, "Return-Address:%s\n", retaddr);
Bob Esposito...bpa!espo
More information about the Comp.sources.unix
mailing list