X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=kernel%2Furp.c;h=3cce3a147f612a8693a39e3c117722a357c9a8d3;hb=25db261b6bbbfcc7bc26f679f195b51d31b9d7d7;hp=ef3378c4b28e1138728b20242edb8ac411764f72;hpb=2db244d8b36c27ed7af8591fe334869fef60c57b;p=egate.git diff --git a/kernel/urp.c b/kernel/urp.c index ef3378c..3cce3a1 100644 --- a/kernel/urp.c +++ b/kernel/urp.c @@ -45,7 +45,10 @@ * Europagate, 1995 * * $Log: urp.c,v $ - * Revision 1.48 1996/02/12 10:04:57 adam + * Revision 1.49 1996/03/01 14:25:28 adam + * Email gateway obeys 'Reply-To:' in header. + * + * Revision 1.48 1996/02/12 10:04:57 adam * The gateway doesn't try to reconnect if it is already known that * it will fail (connect_fail flag introduced). * @@ -376,6 +379,8 @@ static int email_header (struct str_queue *sq, return 0; if (memcmp (line_buf, "From ", 5) == 0) sscanf (line_buf+4, "%s", from_str); + if (memcmp (line_buf, "Reply-To: ", 10) == 0) + sscanf (line_buf+10, "%s", from_str); if (memcmp (line_buf, "Subject: ", 9) == 0 && sscanf (line_buf+9, "%s", subject_str+1) == 1) strcpy (subject_str, line_buf+9);