Removed the draft message in favor for a consistent draft folder facility
[mmh] / h / prototypes.h
1 /*
2  * prototypes.h -- various prototypes
3  */
4
5 /*
6  * missing system prototypes
7  */
8 #ifndef HAVE_TERMCAP_H
9 extern int tgetent (char *bp, char *name);
10 extern int tgetnum (char *id);
11 extern int tgetflag (char *id);
12 extern char *tgetstr (char *id, char **area);
13 extern char *tgoto (char *cm, int destcol, int destline);
14 extern int tputs (char *cp, int affcnt, int (*outc) (int));
15 #endif
16
17 /*
18  * prototype from config.h
19  */
20 char *etcpath(char *);
21
22 /*
23  * prototypes from the nmh subroutine library
24  */
25 void adios (char *, char *, ...) NORETURN;
26 void admonish (char *, char *, ...);
27 void advertise (char *, char *, char *, va_list);
28 void advise (char *, char *, ...);
29 void ambigsw (char *, struct swit *);
30 int atooi(char *);
31 char **brkstring (char *, char *, char *);
32 int check_charset (char *, int);
33 void closefds(int);
34 char *concat (char *, ...);
35 int context_del (char *);
36 char *context_find (char *);
37 int context_foil (char *);
38 void context_read (void);
39 void context_replace (char *, char *);
40 void context_save (void);
41 char *copy (char *, char *);
42 char **copyip (char **, char **, int);
43 void cpydata (int, int, char *, char *);
44 void cpydgst (int, int, char *, char *);
45 int decode_rfc2047 (char *, char *, size_t);
46 void discard (FILE *);
47 int default_done (int);
48 int ext_hook(char *, char *, char *);
49 int fdcompare (int, int);
50 int folder_addmsg (struct msgs **, char *, int, int, int, int, char *);
51 int folder_delmsgs (struct msgs *, int, int);
52 void folder_free (struct msgs *);
53 int folder_pack (struct msgs **, int);
54 struct msgs *folder_read (char *);
55 struct msgs *folder_realloc (struct msgs *, int, int);
56 int gans (char *, struct swit *);
57 char **getans (char *, struct swit *);
58 int getanswer (char *);
59 char **getarguments (char *, int, char **, int);
60 char *get_charset();
61 char *getcpy (char *);
62 char *getfolder(int);
63 int lkclose(int, char*);
64 int lkfclose(FILE *, char *);
65 FILE *lkfopen(char *, char *);
66 int lkopen(char *, int, mode_t);
67 int m_atoi (char *);
68 char *m_backup (char *);
69 int m_convert (struct msgs *, char *);
70 char *m_draft (char *);
71 int m_getfld (int, unsigned char *, unsigned char *, int, FILE *);
72 int m_gmprot (void);
73 char *m_maildir (char *);
74 char *m_mailpath (char *);
75 char *m_name (int);
76 int m_putenv (char *, char *);
77 char *m_mktemp(const char *, int *, FILE **);
78 char *m_mktemp2(const char *, const char *, int *, FILE **);
79 void m_unknown(FILE *);
80 int makedir (char *);
81 char *nmh_getpass(const char *);
82 char *norm_charmap(char *);
83 char *new_fs (char *, char *, char *);
84 char *path(char *, int);
85 int peekc(FILE *ib);
86 int pidwait (pid_t, int);
87 int pidstatus (int, FILE *, char *);
88 char *pluspath(char *);
89 void print_help (char *, struct swit *, int);
90 void print_sw (char *, struct swit *, char *, FILE *);
91 void print_version (char *);
92 void push (void);
93 char *pwd (void);
94 char *r1bindex(char *, int);
95 void readconfig (struct node **, FILE *, char *, int);
96 int refile (char **, char *);
97 void ruserpass(char *, char **, char **);
98 int seq_addmsg (struct msgs *, char *, int, int, int);
99 int seq_addsel (struct msgs *, char *, int, int);
100 char *seq_bits (struct msgs *);
101 int seq_delmsg (struct msgs *, char *, int);
102 int seq_delsel (struct msgs *, char *, int, int);
103 int seq_getnum (struct msgs *, char *);
104 char *seq_list (struct msgs *, char *);
105 int seq_nameok (unsigned char *);
106 void seq_print (struct msgs *, char *);
107 void seq_printall (struct msgs *);
108 void seq_read (struct msgs *);
109 void seq_save (struct msgs *);
110 void seq_setcur (struct msgs *, int);
111 void seq_setprev (struct msgs *);
112 void seq_setunseen (struct msgs *, int);
113 int showfile (char **, char *);
114 int smatch(char *, struct swit *);
115 char *snprintb (char *, size_t, unsigned, char *);
116 int ssequal (char *, char *);
117 int stringdex (char *, char *);
118 char *trimcpy (unsigned char *);
119 int unputenv (char *);
120 int uprf (char *, char *);
121 int vfgets (FILE *, char **);
122 char *write_charset_8bit (void);
123
124 #ifdef RPATHS
125 int get_returnpath (char *, int, char *, int);
126 #endif
127
128 /*
129  * prototypes for compatibility functions in library
130  */
131 #ifndef HAVE_SNPRINTF_PROTOTYPE
132 int snprintf (char *, size_t, const char *, ...);
133 int vsnprintf (char *, size_t, const char *, va_list);
134 #endif
135
136 int mh_strcasecmp (const char *s1, const char *s2);
137 int strncasecmp (const char *s1, const char *s2, size_t n);
138
139
140 /*
141  * some prototypes for address parsing system
142  * (others are in addrsbr.h)
143  */
144 char *LocalName(void);
145 char *SystemName(void);
146 char *OfficialName(char *);
147
148 /*
149  * prototypes for some routines in uip
150  */
151 int annotate (char *, char *, char *, int, int, int, int);
152 void annolist(char *, char *, char *, int);
153 void annopreserve(int);
154 int distout (char *, char *, char *);
155 void replout (FILE *, char *, char *, struct msgs *, int,
156         int, char *, char *, char *);
157 int sendsbr (char **, int, char *, struct stat *, int, char *, int);
158 int what_now (char *, int, int, char *, char *,
159         int, struct msgs *, char *, int, char *);