[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev fix to Cc bug
From: |
Laura Eaves |
Subject: |
lynx-dev fix to Cc bug |
Date: |
Thu, 16 Apr 1998 17:41:20 -0400 (EDT) |
Ok, the problem was a piece of code
that was ifdef'd for VMS and DOSPATH but which was also required
for UNIX. It works now.
I still haven't figured out the workings of mailmsg() vs reply_by_mail().
I planted trace messages in them that never printed, although the since
some of the trace messages di d print I know the functions were entered.
But Cc works in any case.
--le
--- old/LYMail.c Fri Feb 27 11:25:08 1998
+++ src/LYMail.c Thu Apr 16 17:22:02 1998
@@ -575,6 +575,12 @@
char hdrfile[256];
FILE *hfd;
+ if(TRACE)
+ fprintf(stderr,"mailmsg(%d, \"%s\", \"%s\", \"%s\")\n",cur,
+ cur, owner_address?owner_address:"<nil>",
+ filename?filename:"<nil>",
+ linkname?linkname:"<nil>");
+
if (!strncasecomp(system_mail, "PMDF SEND", 9)) {
isPMDF = TRUE;
}
@@ -870,6 +876,12 @@
char hdrfile[256];
FILE *hfd;
+ if(TRACE)
+ fprintf(stderr,"reply_by_mail(\"%s\", \"%s\", \"%s\")\n",
+ mail_address?mail_address:"<nil>",
+ filename?filename:"<nil>",
+ title?tilde:"<nil>");
+
if (!strncasecomp(system_mail, "PMDF SEND", 9)) {
isPMDF = TRUE;
}
@@ -1466,7 +1478,7 @@
addstr("\n");
}
remove_tildes(user_input);
-#if defined (VMS) || defined (DOSPATH)
+
if (*user_input) {
cp = user_input;
while (*cp == ',' || isspace((unsigned char)*cp))
@@ -1480,7 +1492,7 @@
}
}
}
-#endif
+
#ifdef DOSPATH
if (*address) {
sprintf(buf, "To: %s\n", address);
@@ -1514,6 +1526,8 @@
StrAllocCat(header, buf);
#endif /* !VMS */
+ if(TRACE)
+ fprintf(stderr,"**header==\n%s",header);
if (!no_editor && editor && *editor != '\0') {
/*
* Use an external editor for the message.
- lynx-dev fix to Cc bug,
Laura Eaves <=