2006-12-12 [paul] 2.6.1cvs21
[claws.git] / src / partial_download.h
bloba40eb9ba30d3c9ca9b46efed1bcd50e4e7ab37cc
1 /*
2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Claws Mail team
4 * This file (C) 2004 Colin Leroy
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef __PARTIAL_DOWNLOAD_H__
21 #define __PARTIAL_DOWNLOAD_H__
23 #ifdef HAVE_CONFIG_H
24 # include "config.h"
25 #endif
27 #include <glib.h>
28 #include <time.h>
30 #include "procmsg.h"
32 typedef enum {
33 POP3_PARTIAL_DLOAD_UNKN = 0,
34 POP3_PARTIAL_DLOAD_DLOAD= 1,
35 POP3_PARTIAL_DLOAD_DELE = 2
36 } PartialDownloadAction;
38 typedef enum {
39 POP3_TOTALLY_RECEIVED = 0,
40 POP3_PARTIALLY_RECEIVED = 1,
41 POP3_MUST_COMPLETE_RECV = 2
42 } PartialDownloadStatus;
44 gint partial_msg_in_uidl_list (MsgInfo *msginfo);
45 int partial_mark_for_download(MsgInfo *msginfo);
46 int partial_mark_for_delete (MsgInfo *msginfo);
47 int partial_unmark (MsgInfo *msginfo);
48 gchar *partial_get_filename (const gchar *server,
49 const gchar *login,
50 const gchar *muidl);
51 void partial_delete_old (const gchar *file);
53 #endif /* __PARTIAL_DOWNLOAD_H__ */