From 5a6abb3b702e80122161f98e20cf075098857e04 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Thu, 18 Aug 2005 18:06:53 +0000 Subject: [PATCH] Re-enabled creating default From: line ftn2rfc --- mbfido/ftn2rfc.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/mbfido/ftn2rfc.c b/mbfido/ftn2rfc.c index a049694b..e4445831 100644 --- a/mbfido/ftn2rfc.c +++ b/mbfido/ftn2rfc.c @@ -966,11 +966,15 @@ int ftn2rfc(faddr *f, faddr *t, char *subj, char *origline, time_t mdate, int fl free(p); } -// if (p) -// sprintf(temp,"X-FTN-Sender: %s\n", ascinode(f,0xff)); -// else -// sprintf(temp,"From: %s\n", ascinode(f,0xff)); -// Send(newsmode, temp); + /* + * If post was done with an external editor that doesn't supply + * From: (some GoldED versions, not all) then add one here. + */ + if (p) + sprintf(temp,"X-FTN-Sender: %s\n", ascinode(f,0xff)); + else + sprintf(temp,"From: %s\n", ascinode(f,0xff)); + Send(newsmode, temp); if ((p=hdr((char *)"Reply-To",msg))) { sprintf(temp,"Reply-To:%s",p);