View Issue Details

IDProjectCategoryView StatusLast Update
0003552SOGoActiveSyncpublic2016-03-09 21:21
Reportersoletan Assigned Toludovic  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Platform[Server] LinuxOSUbuntuOS Version14.04 LTS
Product Version3.0.1 
Summary0003552: Deleting mails doesn't work
Description

When I try to delete mails over EAS using either Outlook 2016 or FireOS on client side mails get deleted in either client but stay in original folder on server side (e.g. when checking per Web GUI or using some IMAP client).

I checked log with debugging EAS enabled. According to attached excerpt log removal is causing request to move mail from one folder to another. And according to SOGo service this move seems to be successful, doesn't it?

As a side note I had to fix issues with hostname. The name was initially pim.sogo for this was just a local VM's name. Then I switched to pim.cepharum.de to reflect the service's public name. I don't know where SOGo is taking the FldIds from. Most obviously this isn't causing issue here for SrcFldId (derived from outdated hostname) refers to INBOX which is properly synced per EAS.

Additional Information

Feb 28 21:05:52 sogod [11553]: <0x0x7f07caceb2b8[SOGoActiveSyncDispatcher]> EAS - request for device KFSOWI1384536608
523: <?xml version="1.0"?>
<!DOCTYPE ActiveSync PUBLIC "-//MICROSOFT//DTD ActiveSync//EN" "http://www.microsoft.com/&quot;>
<MoveItems xmlns="Move:">
<Move>
<SrcMsgId>156844</SrcMsgId>
<SrcFldId>mail%2Fpim_sogo_1c78_1c7a254b_1</SrcFldId>
<DstFldId>mail%2Fpim_cepharum_de_2d21_1c838a77_6</DstFldId>
</Move>
</MoveItems>

Feb 28 21:05:53 sogod [11553]: <0x0x7f07caceb2b8[SOGoActiveSyncDispatcher]> EAS - response for device KFSOWI138453660
8523: <?xml version="1.0"?>
<!DOCTYPE ActiveSync PUBLIC "-//MICROSOFT//DTD ActiveSync//EN" "http://www.microsoft.com/&quot;>
<MoveItems xmlns="Move:">
<Response>
<SrcMsgId>156844</SrcMsgId>
<Status>1</Status>
</Response>
</MoveItems>

Feb 28 21:05:53 sogod [11553]: 91.9.113.217 "POST /SOGo/Microsoft-Server-ActiveSync?Cmd=MoveItems&User=esoletan&Devic
eId=KFSOWI1384536608523&DeviceType=KFSOWI HTTP/1.0" 200 25/97 0.979 - - 12K

TagsNo tags attached.

Activities

tfu

tfu

2016-02-28 22:43

reporter   ~0009602

Reproduce the problem with ImapDebugEnabled = YES and provide the resulting sogo.log.

soletan

soletan

2016-02-29 00:04

reporter  

imap.log (9,304 bytes)
tfu

tfu

2016-02-29 07:05

reporter   ~0009603

Also enable verbose logging on sql level (
http://sogo.nu/nc/support/faq/article/how-to-enable-more-verbose-logging-in-sogo-2.html)
I see setannotation for each folder other then inbox and that is stange.
Has that worked before?
Are there any errors in the imap server logs?

Output of listfolders would also help:
sogo-toop -v listfolders ...

soletan

soletan

2016-02-29 10:55

reporter  

imap-server.log (8,665 bytes)
soletan

soletan

2016-02-29 10:55

reporter  

sogo-imap-sql.log (12,747 bytes)
soletan

soletan

2016-02-29 11:01

reporter   ~0009605

Find attached requested log files.

"listfolders" isn't supported command of sogo-tool running here. What do you mean exacatly?

Regarding your question this setup is new and thus it didn't ever work before by means of using SOGo with EAS to access IMAP which also available on its own. IMAP of course has been working for years now.

tfu

tfu

2016-02-29 11:27

reporter   ~0009606

I mean: sogo-tool manage-eas listfolders <userid> <deviceid>

soletan

soletan

2016-02-29 11:58

reporter  

listfolders.log (4,613 bytes)
soletan

soletan

2016-02-29 11:58

reporter   ~0009607

This list looks somewhat strange indeed.

tfu

tfu

2016-02-29 15:49

reporter   ~0009610

Listfolder returns duplicate entries: e.g. ?? inbox.sent and inbox/sent ???
You should try to cleanup that before we continue:
Remove the account from the client.
Reset EAS cache: sogo-tool manage-eas resetdevice <userid> <deviceid>
Create the account on the client.
Check whether all folders are synced as expected.
Check sogo-tool manage-eas listfolders <userid> <deviceid>
Upload a sogo.log containing above steps.

soletan

soletan

2016-02-29 23:28

reporter   ~0009613

I'm pretty sorry for wasting your time. Since resetting device didn't succeed at all I started investigation on this issue including checking information IMAP annotations, the related code of SOGo for listing folders and deriving GUIDs ... eventually getting to the list of folder names used for special folders Sent, Trash and Drafts to be synced by EAS. There I realized my fault on not using "/" as mentioned in installation guide but "." for hierarchy separator. After fixing this in configuration I am able to drop mails on FireOS as well with Outlook 2016 (also seeing only one Trash, one Sent and one Drafts folder in eithe client).

tfu

tfu

2016-03-01 06:13

reporter   ~0009617

The use of "." as hierarchy separator should be a problem. If you want to follow-up on that post you're original configuration or start a thread on the mailing list.

tfu

tfu

2016-03-09 21:17

reporter   ~0009665

@inverse - this bug can be closed.
If SOGoTrashFolderName/SOGoDraftsFolderName/... are defined as described in installation guide the reported problem doesn't occur.

Issue History

Date Modified Username Field Change
2016-02-28 20:14 soletan New Issue
2016-02-28 22:43 tfu Note Added: 0009602
2016-02-29 00:04 soletan File Added: imap.log
2016-02-29 07:05 tfu Note Added: 0009603
2016-02-29 10:55 soletan File Added: imap-server.log
2016-02-29 10:55 soletan File Added: sogo-imap-sql.log
2016-02-29 11:01 soletan Note Added: 0009605
2016-02-29 11:27 tfu Note Added: 0009606
2016-02-29 11:58 soletan File Added: listfolders.log
2016-02-29 11:58 soletan Note Added: 0009607
2016-02-29 15:49 tfu Note Added: 0009610
2016-02-29 23:28 soletan Note Added: 0009613
2016-03-01 06:13 tfu Note Added: 0009617
2016-03-09 21:17 tfu Note Added: 0009665
2016-03-09 21:21 ludovic Status new => resolved
2016-03-09 21:21 ludovic Resolution open => no change required
2016-03-09 21:21 ludovic Assigned To => ludovic