Maildir Header Cache. More...
#include <stdlib.h>
Go to the source code of this file.
Functions | |
void | maildir_hcache_close (struct HeaderCache **ptr) |
Close the Header Cache. | |
int | maildir_hcache_delete (struct HeaderCache *hc, struct Email *e) |
Delete an Email from the Header Cache. | |
struct HeaderCache * | maildir_hcache_open (struct Mailbox *m) |
Open the Header Cache. | |
struct Email * | maildir_hcache_read (struct HeaderCache *hc, struct Email *e, const char *fn) |
Read an Email from the Header Cache. | |
int | maildir_hcache_store (struct HeaderCache *hc, struct Email *e) |
Save an Email to the Header Cache. | |
Maildir Header Cache.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file hcache.h.
void maildir_hcache_close | ( | struct HeaderCache ** | ptr | ) |
Close the Header Cache.
ptr | Header Cache |
Definition at line 69 of file hcache.c.
int maildir_hcache_delete | ( | struct HeaderCache * | hc, |
struct Email * | e | ||
) |
Delete an Email from the Header Cache.
hc | Header Cache |
e | Email to delete |
0 | Success |
-1 | Error |
Definition at line 81 of file hcache.c.
struct HeaderCache * maildir_hcache_open | ( | struct Mailbox * | m | ) |
Open the Header Cache.
m | Mailbox |
Definition at line 96 of file hcache.c.
struct Email * maildir_hcache_read | ( | struct HeaderCache * | hc, |
struct Email * | e, | ||
const char * | fn | ||
) |
Read an Email from the Header Cache.
[in] | hc | Header Cache |
[in] | e | Email to find |
[in] | fn | Filename |
ptr | Email from Header Cache |
Definition at line 113 of file hcache.c.
int maildir_hcache_store | ( | struct HeaderCache * | hc, |
struct Email * | e | ||
) |
Save an Email to the Header Cache.
hc | Header Cache |
e | Email to save |
0 | Success |
-1 | Error |
Definition at line 155 of file hcache.c.