[horde] ActiveSync suddenly stopped working with Samsung Galaxy S5mini - quick and dirty fix

Michael J Rubinsky mrubinsk at horde.org
Sat Jun 27 13:30:34 UTC 2015


Quoting Peter Stamfest <peter at stamfest.at>:

> Hello List!
>
> Maybe this is nothing new, but I just tracked down a problem I
> experienced for the second time wrt ActiveSync and a Cyrus-IMAPd backed
> mailserver. The first time it happened I chose to wipe the account on my
> mobile and restart syncing, but this time I dug around a little deeper.
> The horde installation itself is not really up to date (It is some minor
> releases behind, and I am reluctant to update through pear, because this
> tends to blow up, but this is a different problem).

Well, reporting bugs in versions that are not up to date isn't very  
productive. The problem you describe has been fixed a long time ago.


> The problem was, that the mail client on my smartphone insists on
> showing SMS text messages along with e-mails. In retrospect, trouble
> started once I deleted such a message like an ordinary E-Mail. From that
> point onwards, the client wanted to delete an e-mail with an ID the IMAP
> server could not parse.
>
> From the IMAP log:
>
> C: 8 UID SEARCH RETURN (ALL COUNT) UID
> 11076,11074:11075,IGNORESMS_SMS_1435049274714,IGNORESMS_SMS_1434993955622,11084
> S: 8 BAD Invalid Search criteria
>
> Note the "IGNORESMS_SMS_..." IDs.
>
> I "fixed" the problem by filtering messages IDs containing "SMS" by
> adding one line to the deleteMessage method in
> Horde/Core/ActiveSync/Driver.php:
>
> --- /tmp/Driver.php    2015-06-27 12:39:40.755653607 +0200
> +++ /usr/share/pear/Horde/Core/ActiveSync/Driver.php    2015-06-27
> 12:29:47.870643052 +0200
> @@ -1536,6 +1536,7 @@
>       */
>      public function deleteMessage($folderid, array $ids)
>      {
> +$ids = array_filter($ids, function($id) { return ! preg_match("/SMS/",
> $id); });
>          $this->_logger->info(sprintf(
>              "[%s] Horde_Core_ActiveSync_Driver::deleteMessage() %s: %s",
>              $this->_pid,
>
> This is not a proper fix, obviously, but now sync works again, which is
> the most important thing for me.
>
> I thought I would document this, in case this is seen as a big enough
> problem to have it fixed more properly by somebody more knowledgeable in
> Horde internals...


-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5869 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/horde/attachments/20150627/9f31b77c/attachment.bin>


More information about the horde mailing list