summaryrefslogtreecommitdiff
path: root/src/LYMail.h
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2025-09-24 22:26:00 +0200
committerPhilip Wittamore <philip@wittamore.com>2025-09-24 22:26:00 +0200
commitc2ecaf87e462fd6600ce5ee6a29cb352de042714 (patch)
tree70f607a8c9bce7f0d40c559ec4112d3dd154eb50 /src/LYMail.h
downloadlynx-c2ecaf87e462fd6600ce5ee6a29cb352de042714.tar.gz
lynx-c2ecaf87e462fd6600ce5ee6a29cb352de042714.tar.bz2
lynx-c2ecaf87e462fd6600ce5ee6a29cb352de042714.zip
update
Diffstat (limited to 'src/LYMail.h')
-rw-r--r--src/LYMail.h88
1 files changed, 88 insertions, 0 deletions
diff --git a/src/LYMail.h b/src/LYMail.h
new file mode 100644
index 0000000..f75f686
--- /dev/null
+++ b/src/LYMail.h
@@ -0,0 +1,88 @@
+/*
+ * $LynxId: LYMail.h,v 1.17 2011/06/02 10:37:23 tom Exp $
+ */
+#ifndef LYMAIL_H
+#define LYMAIL_H
+
+#ifndef LYSTRUCTS_H
+#include <LYStructs.h>
+#endif /* LYSTRUCTS_H */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef SH_EX
+#undef USE_BLAT_MAILER
+#define USE_BLAT_MAILER 1
+#endif
+
+#ifndef USE_ALT_BLAT_MAILER
+#define USE_ALT_BLAT_MAILER 0
+#endif
+
+#ifndef USE_BLAT_MAILER
+#define USE_BLAT_MAILER 0
+#endif
+
+#ifndef ALTBLAT_MAIL_FLAGS
+#define ALTBLAT_MAIL_FLAGS ""
+#endif
+
+#ifndef BLAT_MAIL_FLAGS
+#define BLAT_MAIL_FLAGS ""
+#endif
+
+#ifdef VMS
+#define USE_VMS_MAILER 1
+#else
+#define USE_VMS_MAILER 0
+#endif
+
+#ifndef SYSTEM_MAIL
+#define SYSTEM_MAIL "sendmail"
+#endif
+
+#ifndef SYSTEM_MAIL_FLAGS
+#define SYSTEM_MAIL_FLAGS ""
+#endif
+
+/*
+ * Ifdef's in case we have a working popen/pclose, useful for piping to the
+ * mail program.
+ */
+#ifndef CAN_PIPE_TO_MAILER
+#if !defined(HAVE_POPEN) || USE_VMS_MAILER || defined(DOSPATH) || defined(__CYGWIN__)
+#define CAN_PIPE_TO_MAILER 0
+#else
+#define CAN_PIPE_TO_MAILER 1
+#endif
+#endif
+
+ extern BOOLEAN term_letter;
+
+ extern BOOLEAN LYSystemMail(void);
+ extern BOOLEAN LYMailPMDF(void);
+ extern FILE *LYPipeToMailer(void);
+ extern int LYSendMailFile(char *the_address,
+ char *the_filename,
+ char *the_subject,
+ char *the_ccaddr,
+ char *message);
+ extern void mailform(const char *mailto_address,
+ const char *mailto_subject,
+ const char *mailto_content,
+ const char *mailto_type);
+ extern void mailmsg(int cur,
+ char *owner_address,
+ char *filename,
+ char *linkname);
+ extern void reply_by_mail(char *mail_address,
+ char *filename,
+ const char *title,
+ const char *refid);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* LYMAIL_H */