last commit i forgot to save changes in x11.c ; this fixes that file
[monky] / src / mail.h
1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
2
3 #ifndef _MAIL_H
4 #define _MAIL_H
5
6 extern char *current_mail_spool;
7
8 void parse_local_mail_args(struct text_object *, const char *);
9
10 #define PRINT_MAILS_PROTO_GENERATOR(x) \
11 void print_##x##mails(struct text_object *, char *, int);
12
13 PRINT_MAILS_PROTO_GENERATOR()
14 PRINT_MAILS_PROTO_GENERATOR(new_)
15 PRINT_MAILS_PROTO_GENERATOR(seen_)
16 PRINT_MAILS_PROTO_GENERATOR(unseen_)
17 PRINT_MAILS_PROTO_GENERATOR(flagged_)
18 PRINT_MAILS_PROTO_GENERATOR(unflagged_)
19 PRINT_MAILS_PROTO_GENERATOR(forwarded_)
20 PRINT_MAILS_PROTO_GENERATOR(unforwarded_)
21 PRINT_MAILS_PROTO_GENERATOR(replied_)
22 PRINT_MAILS_PROTO_GENERATOR(unreplied_)
23 PRINT_MAILS_PROTO_GENERATOR(draft_)
24 PRINT_MAILS_PROTO_GENERATOR(trashed_)
25
26 void free_local_mails(struct text_object *obj);
27
28 void parse_global_imap_mail_args(const char *);
29 void parse_global_pop3_mail_args(const char *);
30
31 void parse_imap_mail_args(struct text_object *, const char *);
32 void parse_pop3_mail_args(struct text_object *, const char *);
33 void free_mail_obj(struct text_object *);
34 void print_imap_unseen(struct text_object *, char *, int);
35 void print_imap_messages(struct text_object *, char *, int);
36 void print_pop3_unseen(struct text_object *, char *, int);
37 void print_pop3_used(struct text_object *, char *, int);
38
39 #endif /* _MAIL_H */