diff options
author | Thomas Schwinge <thomas@schwinge.name> | 2010-12-29 12:00:30 +0100 |
---|---|---|
committer | Ali Polatel <alip@exherbo.org> | 2011-11-05 01:12:35 +0200 |
commit | 38b245b46a51be82a5a5f798255cbbbbc0186f78 (patch) | |
tree | d4210e76396f3d45614f329f8288e10762fad407 /contrib/notmuch-deliver/src/maildircreate.h | |
parent | 5f53ce3e2b9704f4f2a4be92c91f82c697c15b9d (diff) |
Move files copied from maildrop to a separate hierarchy.
Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
Diffstat (limited to 'contrib/notmuch-deliver/src/maildircreate.h')
-rw-r--r-- | contrib/notmuch-deliver/src/maildircreate.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/contrib/notmuch-deliver/src/maildircreate.h b/contrib/notmuch-deliver/src/maildircreate.h deleted file mode 100644 index ea1c71ac..00000000 --- a/contrib/notmuch-deliver/src/maildircreate.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef maildircreate_h -#define maildircreate_h - -/* -** Copyright 1998 - 2003 Double Precision, Inc. -** See COPYING for distribution information. -*/ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include <stdio.h> - -#ifdef __cplusplus -extern "C" { -#endif - -static const char maildircreate_h_rcsid[]="$Id: maildircreate.h,v 1.10 2006/10/29 00:03:53 mrsam Exp $"; - - /* Create messages in maildirs */ - -struct maildir_tmpcreate_info { - const char *maildir; - unsigned long msgsize; /* If known, 0 otherwise (must use requota later)*/ - const char *uniq; /* You need when creating multiple msgs */ - const char *hostname; /* If known, NULL otherwise */ - int openmode; /* Default open mode */ - int doordie; /* Loop until we get it right. */ - char *tmpname; /* On exit, filename in tmp */ - char *newname; /* On exit, filename in new */ -}; - -#define maildir_tmpcreate_init(i) \ - do \ - { \ - memset( (i), 0, sizeof(*(i))); \ - (i)->openmode=0644; \ - } while(0) - -int maildir_tmpcreate_fd(struct maildir_tmpcreate_info *); -FILE *maildir_tmpcreate_fp(struct maildir_tmpcreate_info *); -void maildir_tmpcreate_free(struct maildir_tmpcreate_info *); - - /* Move created message from tmp to new */ -int maildir_movetmpnew(const char *tmpname, const char *newname); - -#ifdef __cplusplus -} -#endif - -#endif |