#include <sys/types.h>
#include <string.h>
#include "utils.h"
-
-typedef struct _MsgInfo MsgInfo;
-typedef struct _MsgFlags MsgFlags;
-typedef struct _MsgFileInfo MsgFileInfo;
-typedef struct _MsgInfoUpdate MsgInfoUpdate;
-typedef struct _MailFilteringData MailFilteringData;
-
-typedef struct _MsgInfoExtraData MsgInfoExtraData;
-
-typedef GSList MsgInfoList;
-typedef GSList MsgNumberList;
+#include "proctypes.h"
#define MSG_NEW (1U << 0)
#define MSG_UNREAD (1U << 1)
#define MSG_RESERVED_CLAWS (1U << 30) /* for claws-mail */
#define MSG_RESERVED (1U << 31)
-typedef guint32 MsgPermFlags;
-
#define MSG_MOVE (1U << 0)
#define MSG_COPY (1U << 1)
#define MSG_MOVE_DONE (1U << 15)
#define MSG_HAS_ATTACHMENT (1U << 30)
#define MSG_SCANNED (1U << 31)
-typedef guint32 MsgTmpFlags;
-
#define MSG_CACHED_FLAG_MASK (MSG_MULTIPART | MSG_ENCRYPTED | MSG_SIGNED | MSG_HAS_ATTACHMENT | MSG_SCANNED)
#define MSG_SET_FLAGS(msg, flags) { (msg) |= (flags); }
#define MSG_IS_SCANNED(msg) (((msg).tmp_flags & MSG_SCANNED) != 0)
/* Claws related flags */
-#define MSG_IS_REALLY_DELETED(msg) (((msg).perm_flags & MSG_REALLY_DELETED) != 0)
#define MSG_IS_IGNORE_THREAD(msg) (((msg).perm_flags & MSG_IGNORE_THREAD) != 0)
#define MSG_IS_RETRCPT_PENDING(msg) (((msg).perm_flags & MSG_RETRCPT_PENDING) != 0)
#define MSG_IS_RETRCPT_SENT(msg) (((msg).perm_flags & MSG_RETRCPT_SENT) != 0)
MSGINFO_UPDATE_DELETED = 1 << 1
} MsgInfoUpdateFlags;
-#include "procmime.h"
+#include "prefs_account.h"
#include "prefs_filtering.h"
#include "folder.h"
gint total_size;
gint planned_download;
+ /* list of tags ids */
GSList *tags;
MsgInfoExtraData *extradata;
struct _MsgInfoExtraData
{
- gchar *xface;
- gchar *face;
+ GSList *avatars;
gchar *dispositionnotificationto;
gchar *returnreceiptto;
+ gchar *resent_from;
+
/* used only for partially received messages */
gchar *partial_recv;
gchar *account_server;
gchar *list_owner;
};
+struct _MsgInfoAvatar
+{
+ gint avatar_id;
+ gchar *avatar_src;
+};
+
struct _MsgFileInfo
{
MsgInfo *msginfo;
PrefsAccount *account;
};
+struct _AvatarCaptureData
+{
+ MsgInfo *msginfo;
+ const gchar *header;
+ const gchar *content;
+};
+
GSList *procmsg_read_cache (FolderItem *item,
gboolean scan_file);
-void procmsg_msg_list_free (GSList *mlist);
+void procmsg_msg_list_free (MsgInfoList *mlist);
+MsgNumberList *procmsg_get_number_list_for_msgs(MsgInfoList *msglist);
void procmsg_get_mark_sum (const gchar *folder,
gint *new_msgs,
gint *unread_msgs,
gboolean procmsg_queue_lock (gchar **errstr);
void procmsg_queue_unlock (void);
gboolean procmsg_queue_is_empty (FolderItem *queue);
-void procmsg_print_message (MsgInfo *msginfo,
- const gchar *cmdline);
MsgInfo *procmsg_msginfo_new ();
MsgInfo *procmsg_msginfo_new_ref (MsgInfo *msginfo);
gint procmsg_remove_special_headers (const gchar *in,
const gchar *out);
+gint procmsg_save_to_outbox(FolderItem *outbox, const gchar *file,
+ gboolean is_queued);
gboolean procmsg_msg_has_flagged_parent (MsgInfo *info,
MsgPermFlags perm_flags);
gboolean procmsg_msg_has_marked_parent (MsgInfo *info);
void procmsg_msginfo_commit_tags(GSList *msglist);
MsgInfo *procmsg_get_msginfo_from_identifier(const gchar *id);
gchar *procmsg_msginfo_get_identifier(MsgInfo *msginfo);
+
+gchar *procmsg_msginfo_get_avatar(MsgInfo *msginfo, gint type);
+void procmsg_msginfo_add_avatar(MsgInfo *msginfo, gint type, const gchar *data);
#endif /* __PROCMSG_H__ */