* New version 2.21.999
[alpine.git] / pith / context.h
blobb7be8d9e5f7abee96cdfa6f179c88d67efb21a47
1 /*
2 * $Id: context.h 764 2007-10-23 23:44:49Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2013-2018 Eduardo Chappa
6 * Copyright 2006 University of Washington
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PITH_CONTEXT_INCLUDED
18 #define PITH_CONTEXT_INCLUDED
21 #include "../pith/foldertype.h"
22 #include "../pith/savetype.h"
25 /* exported prototypes */
26 char *context_digest(char *, char *, char *, char *, char *, size_t);
27 char *context_apply(char *, CONTEXT_S *, char *, size_t);
28 int context_isambig(char *);
29 int context_allowed(char *);
30 long context_create(CONTEXT_S *, MAILSTREAM *, char *);
31 MAILSTREAM *context_open(CONTEXT_S *, MAILSTREAM *, char *, long, long *);
32 long context_status(CONTEXT_S *, MAILSTREAM *, char *, long);
33 long context_status_full(CONTEXT_S *, MAILSTREAM *, char *,
34 long, imapuid_t *, imapuid_t *);
35 long context_status_streamp(CONTEXT_S *, MAILSTREAM **,
36 char *, long);
37 long context_status_streamp_full(CONTEXT_S *, MAILSTREAM **, char *, long,
38 imapuid_t *, imapuid_t *);
39 long context_rename(CONTEXT_S *, MAILSTREAM *, char *, char *);
40 MAILSTREAM *context_already_open_stream(CONTEXT_S *, char *, int);
41 long context_delete(CONTEXT_S *, MAILSTREAM *, char *);
42 long context_append(CONTEXT_S *, MAILSTREAM *, char *, STRING *);
43 long context_append_full(CONTEXT_S *, MAILSTREAM *, char *, char *, char *, STRING *);
44 long context_append_multiple(CONTEXT_S *, MAILSTREAM *, char *, append_t,
45 APPENDPACKAGE *, MAILSTREAM *);
46 long context_copy(CONTEXT_S *, MAILSTREAM *, char *, char *);
47 MAILSTREAM *context_same_stream(CONTEXT_S *, char *, MAILSTREAM *);
48 CONTEXT_S *new_context(char *, int *);
49 void free_contexts(CONTEXT_S **);
50 void free_context(CONTEXT_S **);
53 #endif /* PITH_CONTEXT_INCLUDED */