} ModestSearchFlags;
typedef struct {
+ gchar *msgid; /* E.g. the URI of the message. */
+ gchar *subject;
+ gchar *folder; /* The name, not the URI. */
+ gchar *sender;
+ guint64 msize;
+ gboolean has_attachment;
+ gboolean is_unread;
+ gint64 timestamp;
+} ModestSearchResultHit;
+
+typedef struct {
const gchar *folder; /* The folder to search in */
/* Text to search for in various parts: */
const gchar *body;
/* Other criteria: */
- time_t before, after;
+ time_t start_date, end_date;
guint32 minsize;
ModestSearchFlags flags;
#ifdef MODEST_HAVE_OGS