[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
DOS patch (Was Re: lynx-dev Sending mail)
From: |
Doug Kaufman |
Subject: |
DOS patch (Was Re: lynx-dev Sending mail) |
Date: |
Sat, 28 Aug 1999 15:00:15 -0700 (PDT) |
On Thu, 26 Aug 1999, Harri Tuominen wrote:
> I noticed that I can't send mail when I choose "p" and "Mail the file". But
> mailto URLs work as they have done before. This happens with DOS port
> 2.8.3dev.5. I haven't had this kind of problem with earlier development
> versions.
I investigated the problem of inability to mail files from the print
menu in the DOS port. I actually found two separate problems. The
main problem was that when WIN_EX was integrated, it left no action
for DJGPP in the LYPrint.c mailing function. There are a few ways to
fix this. Since LYOpenTempFD is ifdef'd to "DOSPATH", LYCloseTempFD
should be ifdef'd to the same. It is now ifdef WIN_EX. Although I
don't particularly like DOSPATH, WIN_EX doesn't seem to be the correct
substitute. The following patch reverts to the old behavior, but keeps
WIN_EX for the blat mailer.
The second problem I had was due to the fact that the SENDMAIL.EXE
program by Alfredo Cole was compiled with WATTCP, while LYNX.EXE
was compiled with WATT-32. WATT-32 is configured to use "mtu",
while WATTCP uses "mss". The default WATTCP.CFG file that I used
and distributed had only mtu specified. Adding the "mss" value for
backward compatibility allowed SENDMAIL.EXE to work properly. I'll fix
this when I put up the next binary package.
Patch is against dev.6. I haven't had a chance to do dev.7 yet.
Doug
--- lynx2-8-3/src/LYPrint.c Fri Jul 30 08:39:54 1999
+++ lynx2-8-3/src/LYPrint.c.new Sat Aug 28 13:28:38 1999
@@ -770,12 +770,14 @@
if (keypad_mode)
printlist(outfile_fp, FALSE);
-#if defined(WIN_EX) /* 1998/08/17 (Mon) 16:29:49 */
+#ifdef DOSPATH
buffer = NULL;
+#if defined(WIN_EX) /* 1998/08/17 (Mon) 16:29:49 */
if (mail_is_blat)
HTSprintf0(&buffer, "%s %s -t \"%s\"",
system_mail, my_temp, user_response);
else
+#endif /* WIN_EX */
HTSprintf0(&buffer, "%s -t \"%s\" -F %s",
system_mail, user_response, my_temp);
LYCloseTempFP(outfile_fp); /* Close the tmpfile. */
@@ -789,7 +791,7 @@
SetOutputMode( O_BINARY );
LYRemoveTemp(my_temp); /* Delete the tmpfile. */
-#else /* !WIN_EX */
+#else /* DOSPATH */
pclose(outfile_fp);
#endif
#endif /* VMS */
__
Doug Kaufman
Internet: address@hidden (preferred)
address@hidden
- Re: lynx-dev Sending mail, (continued)
- Re: lynx-dev Sending mail, Doug Kaufman, 1999/08/26
- lynx-dev chrtrans for news etc. (was: Sending mail), Klaus Weide, 1999/08/26
- Re: lynx-dev Sending mail, Leonid Pauzner, 1999/08/26
- Re: lynx-dev Sending mail, Vitor Oliveira, 1999/08/26
- Re: lynx-dev Sending mail, Harri Tuominen, 1999/08/26
- Re: lynx-dev Sending mail, Harri Tuominen, 1999/08/27
- lynx-dev lineeditor bindings (was: Sending mail), Klaus Weide, 1999/08/28
DOS patch (Was Re: lynx-dev Sending mail),
Doug Kaufman <=