aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas/nfs/imap.h
blob: 3f3d2aa63fe749dc891de7df33ed88ae1a051bb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
typedef struct Imap Imap;

void		imapcheckbox(Imap *z, Box *b);
Imap*		imapconnect(char *server, int mode, char *root);
int		imapcopylist(Imap *z, char *nbox, Msg **m, uint nm);
void		imapfetchraw(Imap *z, Part *p);
void		imapfetchrawbody(Imap *z, Part *p);
void		imapfetchrawheader(Imap *z, Part *p);
void		imapfetchrawmime(Imap *z, Part *p);
int		imapflaglist(Imap *z, int op, int flag, Msg **m, uint nm);
void		imaphangup(Imap *z, int ticks);
int		imapremovelist(Imap *z, Msg **m, uint nm);
int		imapsearchbox(Imap *z, Box *b, char *search, Msg ***mm);

extern	int	chattyimap;

enum
{
	Unencrypted,
	Starttls,
	Tls,
	Cmd
};