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

Peter Stamfest peter at stamfest.at
Sat Jun 27 15:21:57 UTC 2015


Am 2015-06-27 um 15:30 schrieb Michael J Rubinsky:
>
> 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.
Well, criticising a report that actually mentiones this in such a snarky
manner isn't either, especially since I did not impose any burden upon
everybody (having fixed MY problem MYSELF). The problem wasn't fixed
when I had it the first time about 2 months ago with a brand new and
up-to-date version. And googling around did not indicate that such a
problem had been fixed recently, so updating was too risky: If updating
to the latest version using pear wasn't as problematic as it is
(breaking my installation about every third time) I would have updated
before debugging and reporting MY solution.

Thanks anyway. The next time (and now) I'll just keep my mouth shut.

peter

>
>
>> 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...
>
>
>
>



More information about the horde mailing list