1 /* 2 * $LynxId: LYMail.h,v 1.17 2011/06/02 10:37:23 tom Exp $ 3 */ 4 #ifndef LYMAIL_H 5 #define LYMAIL_H 6 7 #ifndef LYSTRUCTS_H 8 #include <LYStructs.h> 9 #endif /* LYSTRUCTS_H */ 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 #ifdef SH_EX 16 #undef USE_BLAT_MAILER 17 #define USE_BLAT_MAILER 1 18 #endif 19 20 #ifndef USE_ALT_BLAT_MAILER 21 #define USE_ALT_BLAT_MAILER 0 22 #endif 23 24 #ifndef USE_BLAT_MAILER 25 #define USE_BLAT_MAILER 0 26 #endif 27 28 #ifndef ALTBLAT_MAIL_FLAGS 29 #define ALTBLAT_MAIL_FLAGS "" 30 #endif 31 32 #ifndef BLAT_MAIL_FLAGS 33 #define BLAT_MAIL_FLAGS "" 34 #endif 35 36 #ifdef VMS 37 #define USE_VMS_MAILER 1 38 #else 39 #define USE_VMS_MAILER 0 40 #endif 41 42 #ifndef SYSTEM_MAIL 43 #define SYSTEM_MAIL "sendmail" 44 #endif 45 46 #ifndef SYSTEM_MAIL_FLAGS 47 #define SYSTEM_MAIL_FLAGS "" 48 #endif 49 50 /* 51 * Ifdefs in case we have a working popen/pclose, useful for piping to the 52 * mail program. 53 */ 54 #ifndef CAN_PIPE_TO_MAILER 55 #if !defined(HAVE_POPEN) || USE_VMS_MAILER || defined(DOSPATH) || defined(__CYGWIN__) 56 #define CAN_PIPE_TO_MAILER 0 57 #else 58 #define CAN_PIPE_TO_MAILER 1 59 #endif 60 #endif 61 62 extern BOOLEAN term_letter; 63 64 extern BOOLEAN LYSystemMail(void); 65 extern BOOLEAN LYMailPMDF(void); 66 extern FILE *LYPipeToMailer(void); 67 extern int LYSendMailFile(char *the_address, 68 char *the_filename, 69 char *the_subject, 70 char *the_ccaddr, 71 char *message); 72 extern void mailform(const char *mailto_address, 73 const char *mailto_subject, 74 const char *mailto_content, 75 const char *mailto_type); 76 extern void mailmsg(int cur, 77 char *owner_address, 78 char *filename, 79 char *linkname); 80 extern void reply_by_mail(char *mail_address, 81 char *filename, 82 const char *title, 83 const char *refid); 84 85 #ifdef __cplusplus 86 } 87 #endif 88 #endif /* LYMAIL_H */ 89