[geary] Fix "BAD Invalid date in Search command" from Cyrus IMAPD.



commit 04671efaee77e344827ff1f7365b9af9ee2bccac
Author: Michael Gratton <mike vee net>
Date:   Thu Nov 13 11:48:18 2014 +1100

    Fix "BAD Invalid date in Search command" from Cyrus IMAPD.
    
    Bug #740041.
    
    * src/engine/imap/message/imap-internal-date.vala:
      Geary.Imap.InternalDate::to_search_parameter was returning the result
      of serialize(), rather than serialize_for_search().

 src/engine/imap/message/imap-internal-date.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/engine/imap/message/imap-internal-date.vala b/src/engine/imap/message/imap-internal-date.vala
index a9d98a2..e9a4f79 100644
--- a/src/engine/imap/message/imap-internal-date.vala
+++ b/src/engine/imap/message/imap-internal-date.vala
@@ -107,7 +107,7 @@ public class Geary.Imap.InternalDate : Geary.MessageData.AbstractMessageData, Ge
      * @see serialize_for_search
      */
     public Parameter to_search_parameter() {
-        return Parameter.get_for_string(serialize());
+        return Parameter.get_for_string(serialize_for_search());
     }
     
     /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]