2 * $Id: save.h 942 2008-03-04 18:21:33Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006-2008 University of Washington
6 * Copyright 2013-2022 Eduardo Chappa
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_SAVE_INCLUDED
18 #define PITH_SAVE_INCLUDED
21 #include "../pith/savetype.h"
22 #include "../pith/context.h"
23 #include "../pith/msgno.h"
24 #include "../pith/state.h"
25 #include "../pith/store.h"
28 #define SV_DELETE 0x1 /* delete source msg after save */
29 #define SV_FOR_FILT 0x2 /* save called from filtering routine, */
30 /* just different status messages */
31 #define SV_FIX_DELS 0x4 /* remove Del mark before saving */
32 #define SV_INBOXWOCNTXT 0x8 /* interpret "inbox" as one true inbox */
33 #define SV_PRESERVE 0x10 /* preserve order */
39 #define SSCP_ANSWER_IS_YES 0x4
42 /* exported prototypes */
43 char *save_get_default(struct pine
*, ENVELOPE
*, long, char *, CONTEXT_S
**);
44 void save_get_fldr_from_env(char *, int, ENVELOPE
*, struct pine
*, long, char *);
45 long save(struct pine
*, MAILSTREAM
*, CONTEXT_S
*, char *, MSGNO_S
*, int);
46 long save_fetch_append_cb(MAILSTREAM
*, void *, char **, char **, STRING
**);
47 int save_fetch_append(MAILSTREAM
*, long, char *, MAILSTREAM
*, char *, CONTEXT_S
*,
48 unsigned long, char *, char *, STORE_S
*);
49 void saved_date(char *, char *);
50 MAILSTREAM
*save_msg_stream(CONTEXT_S
*, char *, int *);
51 int create_for_save(CONTEXT_S
*, char *);
54 #endif /* PITH_SAVE_INCLUDED */