[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mail_is_blat (was Re: lynx-dev Problems of DOS port (dev12) [PATCH]
From: |
Leonid Pauzner |
Subject: |
mail_is_blat (was Re: lynx-dev Problems of DOS port (dev12) [PATCH] |
Date: |
Thu, 21 Oct 1999 20:34:50 +0400 (MSD) |
21-Oct-99 07:38 Doug Kaufman wrote:
> On Thu, 21 Oct 1999, Leonid Pauzner wrote:
> I am not sure that I understand any of the above paragraphs. The
> BLAT mailer is only for Windows, as far as I know. "mail_is_blat" is
> defined only for WIN_EX, not for SH_EX in the current LYPrint.c. Where
> does SH_EX come into this?
> Doug
grep for "mail_is_blat"
It is found in LYGlobaldefs.h, LYMain.c, LYMail.c and LYPrint.c.
Apparently it always declared and used under SH_EX
except in LYPrint.c where it is used under WIN_EX.
There is an inconsistencies if you compile with one flag but without
another, that is what I am discussing about.
Hiroyuki, is it intended for windows-only or any platform in general
(the latter is strange since UNIX world prefer sendmail definitely)?
..... LYGlobalDefs.h ---->
#ifdef SH_EX
extern BOOLEAN show_cfg;
extern BOOLEAN mail_is_blat;
#ifdef WIN_EX
extern int debug_delay;
#endif
extern BOOLEAN no_table_center;
#endif
.... LYMain.c: ---->
#ifdef SH_EX
PUBLIC BOOLEAN show_cfg = FALSE;
PUBLIC BOOLEAN mail_is_blat = TRUE;
#ifdef WIN_EX
PUBLIC int debug_delay = 0; /* 1998/10/06 (Tue) 08:41:20 */
#endif
PUBLIC BOOLEAN no_table_center = FALSE; /* 1998/10/09 (Fri) 15:12:49 */
#endif /* SH_EX */
..... and
#ifdef SH_EX
PARSE_SET(
"noblat", TOGGLE_ARG, &mail_is_blat,
"select mail tool (`BLAT' ==> `sendmail')"
),
#endif
......LYMail.c ---->
#ifdef SH_EX /* 1999/01/03 (Sun) 22:00:47 */
extern BOOLEAN mail_is_blat;
/*
syntax:
Blat <filename> -t <recipient> [optional switches (see below)]
<filename> : file with the message body
-t <recipient>: recipient list (comma separated)
-s <subj> : subject line
-f <sender> : overrides the default sender address (must be known to server)
-i <addr> : a 'From:' address, not necessarily known to the SMTP server.
-c <recipient>: carbon copy recipient list (comma separated)
-b <recipient>: blind carbon copy recipient list (comma separated)
-h : displays this help.
-mime : MIME Quoted-Printable Content-Transfer-Encoding.
-q : supresses *all* output.
-server <addr>: overrides the default SMTP server to be used.
...
.......LYPrint.c ---->
#ifdef WIN_EX
static BOOLEAN mail_is_blat = FALSE;
#endif
...... and
#if defined(WIN_EX) /* 1998/08/17 (Mon) 16:29:49 */
buffer = NULL;
if (mail_is_blat)
HTSprintf0(&buffer, "%s %s -t \"%s\"",
system_mail, my_temp, user_response);
else
HTSprintf0(&buffer, "%s -t \"%s\" -F %s",
system_mail, user_response, my_temp);
LYCloseTempFP(outfile_fp); /* Close the tmpfile. */
stop_curses();