> Am 05.05.2018 um 14:05 schrieb Axel Rau <axel....@chaos1.de>:
> 
> 2. aox and server produced tons of
>       aox: Note: Expected type string for column „flag“, but received null
This patch seems to stop the error messages for mailboxes without flag:

diff --git a/server/mailbox.cpp b/server/mailbox.cpp
index 7809d34e..b7fca9d6 100644
--- a/server/mailbox.cpp
+++ b/server/mailbox.cpp
@@ -141,7 +141,10 @@ void MailboxReader::execute() {
                                     r->getBigint( "nextmodseq" ),
                                     q->transaction() );
 
-        m->setFlag( r->getEString( "flag" ) );
+        if ( !r->isNull( "flag" ) )
+            m->setFlag( r->getEString( "flag" ) );
+        else
+            m->setFlag( "" );
     }
 
     if ( !q->done() || done )

Axel
---
PGP-Key:29E99DD6  ☀  computing @ chaos claudius

Reply via email to