about summary refs log tree commit diff stats
path: root/src/LYMail.h
blob: 7e58bbf7a7b948436ac3f2268d50768f4197866d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef LYMAIL_H
#define LYMAIL_H

#ifndef LYSTRUCTS_H
#include <LYStructs.h>
#endif /* LYSTRUCTS_H */

#ifdef __cplusplus
extern "C" {
#endif
#ifdef SH_EX
#define USE_BLAT_MAILER 1
#else
#define USE_BLAT_MAILER 0
#endif
#ifdef VMS
#define USE_VMS_MAILER 1
#else
#define USE_VMS_MAILER 0
#endif
/*
 * Ifdef's in case we have a working popen/pclose, useful for piping to the
 * mail program.
 */
#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
    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 */