about summary refs log tree commit diff stats
path: root/src/LYMail.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2011-05-27 09:54:07 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2011-05-27 09:54:07 -0400
commit1ea06981b36d56576eb36799919b5ef74e91021d (patch)
tree78ea58ff485eb55ecd28444a5da23f39450facc5 /src/LYMail.c
parent6aab9ce5aeba97b6afee05e377027c3c1544583d (diff)
downloadlynx-snapshots-1ea06981b36d56576eb36799919b5ef74e91021d.tar.gz
snapshot of project "lynx", label v2-8-8dev_8h
Diffstat (limited to 'src/LYMail.c')
-rw-r--r--src/LYMail.c74
1 files changed, 37 insertions, 37 deletions
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 <HTUtils.h>
 #include <HTParse.h>
@@ -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;
 }