diff src/lib-storage/mail-search.h @ 6962:659e4a606aae HEAD

Replaced SEARCH_<flag> with a generic SEARCH_FLAGS. Use value.size for SEARCH_LARGER and SEARCH_SMALLER and give an error if it's not a valid number.
author Timo Sirainen <tss@iki.fi>
date Sat, 08 Dec 2007 18:26:42 +0200
parents 69babcc2fb80
children ae369569e7de
line wrap: on
line diff
--- a/src/lib-storage/mail-search.h	Sat Dec 08 17:47:48 2007 +0200
+++ b/src/lib-storage/mail-search.h	Sat Dec 08 18:26:42 2007 +0200
@@ -1,6 +1,8 @@
 #ifndef MAIL_SEARCH_H
 #define MAIL_SEARCH_H
 
+#include "mail-types.h"
+
 enum mail_search_arg_type {
 	SEARCH_OR,
 	SEARCH_SUB,
@@ -10,12 +12,7 @@
 	SEARCH_SEQSET,
 
 	/* flags */
-	SEARCH_ANSWERED,
-	SEARCH_DELETED,
-	SEARCH_DRAFT,
-	SEARCH_FLAGGED,
-	SEARCH_SEEN,
-	SEARCH_RECENT,
+	SEARCH_FLAGS,
 	SEARCH_KEYWORD,
 
 	/* dates */
@@ -55,6 +52,8 @@
                 struct mail_search_seqset *seqset;
 		const char *str;
 		time_t time;
+		uoff_t size;
+		enum mail_flags flags;
 	} value;
 
         void *context;