From 1ea06981b36d56576eb36799919b5ef74e91021d Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Fri, 27 May 2011 09:54:07 -0400 Subject: snapshot of project "lynx", label v2-8-8dev_8h --- src/LYMail.c | 74 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'src/LYMail.c') diff --git a/src/LYMail.c b/src/LYMail.c index 4a43564f..188bf144 100644 --- a/src/LYMail.c +++ b/src/LYMail.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYMail.c,v 1.82 2011/05/26 01:00:05 tom Exp $ + * $LynxId: LYMail.c,v 1.83 2011/05/27 08:51:44 tom Exp $ */ #include #include @@ -329,57 +329,57 @@ static char *blat_cmd(char *mail_cmd, { char *b_cmd = NULL; -#ifdef USE_ALT_BLAT_MAILER + if (mail_is_altblat) { - HTSprintf0(&b_cmd, "%s %s -t \"%s\" -s \"%s\" %s%s%s%s", - mail_cmd, - filename, - address, - subject, - system_mail_flags, - ccaddr ? " -c \"" : "", - NonNull(ccaddr), - ccaddr ? "\"" : ""); + HTSprintf0(&b_cmd, "%s %s -t \"%s\" -s \"%s\" %s%s%s%s", + mail_cmd, + filename, + address, + subject, + system_mail_flags, + ccaddr ? " -c \"" : "", + NonNull(ccaddr), + ccaddr ? "\"" : ""); -#else /* !USE_ALT_BLAT_MAILER */ + } else { - char bl_cmd_file[LY_MAXPATH]; - FILE *fp; + char bl_cmd_file[LY_MAXPATH]; + FILE *fp; #ifdef __CYGWIN__ - char dosname[LY_MAXPATH]; + char dosname[LY_MAXPATH]; #endif - bl_cmd_file[0] = '\0'; - if ((fp = LYOpenTemp(bl_cmd_file, ".blt", "w")) == NULL) { - HTAlert(FORM_MAILTO_FAILED); - return NULL; - } + bl_cmd_file[0] = '\0'; + if ((fp = LYOpenTemp(bl_cmd_file, ".blt", "w")) == NULL) { + HTAlert(FORM_MAILTO_FAILED); + return NULL; + } #ifdef __CYGWIN__ - cygwin_conv_to_full_win32_path(filename, dosname); - fprintf(fp, "%s\n", dosname); + cygwin_conv_to_full_win32_path(filename, dosname); + fprintf(fp, "%s\n", dosname); #else - fprintf(fp, "%s\n", filename); + fprintf(fp, "%s\n", filename); #endif - fprintf(fp, "-t\n%s\n", address); - if (subject) - fprintf(fp, "-s\n%s\n", subject); - if (non_empty(mail_addr)) { - fprintf(fp, "-f\n%s\n", mail_addr); - } - if (non_empty(ccaddr)) { - fprintf(fp, "-c\n%s\n", ccaddr); - } - LYCloseOutput(fp); + fprintf(fp, "-t\n%s\n", address); + if (subject) + fprintf(fp, "-s\n%s\n", subject); + if (non_empty(mail_addr)) { + fprintf(fp, "-f\n%s\n", mail_addr); + } + if (non_empty(ccaddr)) { + fprintf(fp, "-c\n%s\n", ccaddr); + } + LYCloseOutput(fp); #ifdef __CYGWIN__ - cygwin_conv_to_full_win32_path(bl_cmd_file, dosname); - HTSprintf0(&b_cmd, "%s \"@%s\"", mail_cmd, dosname); + cygwin_conv_to_full_win32_path(bl_cmd_file, dosname); + HTSprintf0(&b_cmd, "%s \"@%s\"", mail_cmd, dosname); #else - HTSprintf0(&b_cmd, "%s @%s", mail_cmd, bl_cmd_file); + HTSprintf0(&b_cmd, "%s @%s", mail_cmd, bl_cmd_file); #endif -#endif /* USE_ALT_BLAT_MAILER */ + } return b_cmd; } -- cgit 1.4.1-2-gfad0