diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-07-01 09:45:12 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-07-01 09:45:12 +0000 |
commit | 32016c8f74f4914c71e2c006c82ab7a6c7ddebd6 (patch) | |
tree | 3bc556f813a6d8377bddefaf21c36621d56928a0 /mx.h | |
parent | edfda8e884b92c31e0fe1c9a27cc32077862059f (diff) |
Various patches from last week, including:
- new mh/maildir access code.
- subscribe/unsubscribe
- various fixes.
Diffstat (limited to 'mx.h')
-rw-r--r-- | mx.h | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -1,6 +1,7 @@ /* * Copyright (C) 1996-8 Michael R. Elkins <me@cs.hmc.edu> - * + * Copyright (C) 1999 Thomas Roessler <roessler@guug.de> + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -21,6 +22,11 @@ * generic mailbox api. None of these functions should be called directly. */ +#ifndef _MX_H +#define _MX_H + +#include "mailbox.h" + /* supported mailbox formats */ enum { @@ -54,7 +60,12 @@ int mh_check_mailbox (CONTEXT *, int *); int mh_parse_sequences (CONTEXT *, const char *); int maildir_read_dir (CONTEXT *); -void maildir_create_filename (const char *, HEADER *, char *, char *); + +int maildir_commit_message (CONTEXT *, MESSAGE *, HEADER *); +int mh_commit_message (CONTEXT *, MESSAGE *, HEADER *); + +int maildir_open_new_message (MESSAGE *, CONTEXT *, HEADER *); +int mh_open_new_message (MESSAGE *, CONTEXT *, HEADER *); int mbox_strict_cmp_headers (const HEADER *, const HEADER *); int mutt_reopen_mailbox (CONTEXT *, int *); @@ -65,5 +76,9 @@ void mx_update_tables (CONTEXT *, int); FILE *mx_open_file_lock (const char *, const char *); + int mx_lock_file (const char *, int, int, int, int); int mx_unlock_file (const char *path, int fd); + + +#endif |