Re: trash folder
Michael J Rubinsky <[email protected]>
| Newsgroups | gmane.comp.horde.sync |
|---|---|
| Message-ID | <20130220002516.Horde.wA39woYJASO7ccaS5vGv0A1@h4.theupstairsroom.com> |
Quoting Jens-Uwe Mozdzen <[email protected]>: > Hi Mike, > > Zitat von Michael J Rubinsky <[email protected]>: >> Quoting Jens-Uwe Mozdzen <[email protected]>: >> >>> Hi Mike, >>> >>> Zitat von Jens-Uwe Mozdzen <[email protected]>: >>>> Hi Mike, >>>> >>>> Zitat von Michael J Rubinsky <[email protected]>: >>>>> Quoting Jens-Uwe Mozdzen <[email protected]>: >>>>> >>>>>> Hi *, >>>>>> >>>>>> maybe this was introduced with the latest code update or is >>>>>> something else, but I just noticed that my code to limit ActiveSync >>>>>> to only special folders does not longer support my trash folder. >>>>>> >>>>>> In my personal preferences for IMP, I have deactivated moving >>>>>> deleted messages to the trash folder, and therefore have no folder >>>>>> marked as "trash folder". >>>>>> >>>>>> IMP_Mailbox::getSpecialMailboxes() contains: >>>>>> >>>>>> self::SPECIAL_TRASH => $GLOBALS['prefs']->getValue('use_trash') ? >>>>>> self::getPref('trash_folder') : null, >>>>>> >>>>>> therefore no trash folder is reported. >>>>>> >>>>>> Now when I sync my remote device, where I have deleted messages, the >>>>>> SYNC call returns with HTTP error 500 and an error message in the >>>>>> ActiveSync log: >>>>>> >>>>>> --- cut here --- >>>>>> 2013-02-17T19:26:51+01:00 DEBUG: [30306] >>>>>> Horde_Core_ActiveSync_Driver::deleteMessage() INBOX: Array >>>>>> ( >>>>>> [0] => 26765 >>>>>> [1] => 26766 >>>>>> ) >>>>>> >>>>>> 2013-02-17T19:26:51+01:00 ERR: Ordner "" konnte nicht geöffnet werden. >>>>>> --- cut here --- >>>>>> >>>>>> The German message translates to 'folder [or mailbox?] "" could not >>>>>> be opened.' and probably is a native PHP message returned because no >>>>>> trash folder is known. >>>>> >>>>> ..but this would be no Trash folder known on the server, not the >>>>> client. No idea how this would happen unless the FOLDERSYNC state is >>>>> out of sync between the client and server. You can try resetting the >>>>> device account. Otherwise, I would need to see the full SYNC request >>>>> and response to know exactly what is going on. >>>> >>>> even after fully resetting both server and client side, sync after >>>> having deleted a message on the remote client still give me the error >>>> message (plus http 500 error code), so I sent you the according sync >>>> log per email. >>>> >>>> With regards >>>> Jens >>> >>> after having reset both server and client side, I now have the error >>> message even if I have configured IMP to move messages to the trash >>> folder :( >>> >>> I now wonder if it is a follow-up of my patch to limit the synched >>> folders to special folders. >>> >>> Full trace available if you need it. >> [...] >> Also, I'm not really clear on what is going on with that error >> message, because while it appears from the request you are deleting >> from the Trash folder, the command is showing it is trying to remove >> from the INBOX, and to further complicate things, the error message >> shows an empty folder name. Either your patch is screwing something >> up, or it's something to do with Trash being a subfolder of INBOX on >> your server. > > I located the basic origin of the message, which immediately leads > to a follow-up question: > > The error occurs in Horde_ActiveSync_Imap_Adapter::deleteMessages(): > > public function deleteMessages(array $uids, $folderid) > { > $imap = $this->_getImapOb(); > $mbox = new Horde_Imap_Client_Mailbox($folderid); > $ids_obj = new Horde_Imap_Client_Ids($uids); > > // Need to ensure the source message exists so we may properly notify > // the client of the error. > $search_q = new Horde_Imap_Client_Search_Query(); > $search_q->ids($ids_obj); > > *** the following search triggers the error > $fetch_res = $imap->search($from, $search_q); > > if ($fetch_res['count'] != count($uids)) { > $ids_obj = $fetch_res['match']; > } > > Now my question is: What is "$from"? Seems like a block copy error > to me - it's not set here, thus the empty value. Shouldn't that be > $mbox? Indeed. I actually just fixed this as part of tracking down Bug: 12042. -- mike The Horde Project (www.horde.org) [email protected] -- sync mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]
smime.p7s
(application/pkcs7-signature, 5.9 KB) - not displayed