trash folder

Jens-Uwe Mozdzen <[email protected]>
Newsgroups gmane.comp.horde.sync
Message-ID <[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.

Once I change my account configuration to "use_trash", everything  
works without an error. So I assume that the error is caused because  
the trash folder is not set (as a special folder) and the sync code  
doesn't know where to move the deleted message... as ActiveSync does  
not support the "deleted" flag.

Shouldn't it be possible to define a trash folder in the configuration  
independently of the setting to move deleted mails there?

Regards,
Jens
-- 
Jens-U. Mozdzen                         voice   : +49-40-559 51 75
NDE Netzdesign und -entwicklung AG      fax     : +49-40-559 51 77
Postfach 61 03 15                       mobile  : +49-179-4 98 21 98
D-22423 Hamburg                         e-mail  : [email protected]

         Vorsitzende des Aufsichtsrates: Angelika Mozdzen
           Sitz und Registergericht: Hamburg, HRB 90934
                   Vorstand: Jens-U. Mozdzen
                    USt-IdNr. DE 814 013 983

-- 
sync mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.