partial_download.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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
  5. *
  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.
  10. *
  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.
  15. *
  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.
  19. */
  20. #ifndef __PARTIAL_DOWNLOAD_H__
  21. #define __PARTIAL_DOWNLOAD_H__
  22. #ifdef HAVE_CONFIG_H
  23. # include "config.h"
  24. #endif
  25. #include <glib.h>
  26. #include <time.h>
  27. #include "procmsg.h"
  28. typedef enum {
  29. POP3_PARTIAL_DLOAD_UNKN = 0,
  30. POP3_PARTIAL_DLOAD_DLOAD= 1,
  31. POP3_PARTIAL_DLOAD_DELE = 2
  32. } PartialDownloadAction;
  33. typedef enum {
  34. POP3_TOTALLY_RECEIVED = 0,
  35. POP3_PARTIALLY_RECEIVED = 1,
  36. POP3_MUST_COMPLETE_RECV = 2
  37. } PartialDownloadStatus;
  38. gint partial_msg_in_uidl_list (MsgInfo *msginfo);
  39. int partial_mark_for_download(MsgInfo *msginfo);
  40. int partial_mark_for_delete (MsgInfo *msginfo);
  41. int partial_unmark (MsgInfo *msginfo);
  42. gchar *partial_get_filename (const gchar *server,
  43. const gchar *login,
  44. const gchar *muidl);
  45. void partial_delete_old (const gchar *file);
  46. #endif /* __PARTIAL_DOWNLOAD_H__ */