Project

General

Profile

Feature #61271

Updated by Alexey Bobyr over 1 year ago

solve Failed to read message content for direct ref

if scalix-api.log contains such log entries and it prevents some user to get Calendars
> Failed to read message content for direct ref DREF

need to find for Owner of this appointment and folder where it stored
> [root@mail]# omdref DREF

for e.g.
<pre>
[root@mail logs]# omdref 001be6fd4b8ec597
USER FOLDER: Alexey Bobyr / uk, hq/CN=Alexey Bobyr
FILING AREA: User 429 Filing Tray : RecNo : ItemNo
FOLDER: Calendar : 5 : 830795
MESSAGE: XX-XXXXXXXXXXX : 11 : 19982938

[root@mail logs]#
</pre>

To export one message need to know folder-id for sxmboxexp command

> sxmboxlist -u 'USER'

<pre>
[root@mail logs]# sxmboxlist -u 'Alexey Bobyr / uk, hq/CN=Alexey Bobyr'
# Archive contents : Alexey Bobyr
# Archive date : 2019-01-29 00:49:03

F-0000000001 Inbox
F-0001868224 Inbox/SPAM
F-0000000002 Outbox
F-0000000003 Sent Items
F-0000830790 Deleted Items
F-0000830795 Calendar
F-0000830796 Contacts
F-0000830797 Drafts
F-0000830798 Notes
F-0000830799 Tasks
F-0002360804 Sent
F-0008531139 Sent Messages
F-0009124183 Trash
F-0009173245 sdfdsfdsfdsf
F-0012419556 Test
F-0015913717 Journal
F-0015913718 RSS Feeds
F-0015913719 Conversation Action Settings
F-0015913720 Quick Step Settings
F-0015913725 Junk E-mail
F-0018120405 Deleted Items
[root@mail]#
</pre>

Since omdref showed folder Calendar so we need
> F-0000830795
since sxmboxlist output
> F-0000830795 Calendar

Now lets export item.

> sxmboxexp -F -f FOLDER_ID_FROM_MBOXLIST -u 'USER' -d MSG_DREFS -a ./DEST_FILENAME.mbox

<pre>
[root@mail]# sxmboxexp -F -f F-0000830795 -u 'Alexey Bobyr / uk, hq/CN=Alexey Bobyr' -d 001be6fd4b8ec597 -a ./001be6fd4b8ec597.mbox
[root@mail]#
</pre>

Lets check our mbox file what he contains.
> sxmboxlist -a ./ARCHIVE_FILE_NAME.mbox -v m

<pre>
sxmboxlist -a ./001be6fd4b8ec597.mbox -v m
# Archive file : ./001be6fd4b8ec597.mbox
# Archive contents : Alexey Bobyr
# Archive date : 2019-01-29 00:51:55

F-0000830795 Calendar
M-0019982938 XX-XXXXXXXXXXX 2018-04-26 08:55:28 XXXXXXXXXX
</pre>

Lets delete message. First lets ensure that we will delete only one email
> omtidyu -B -u 'USER' 'Alexey Bobyr / uk, hq/CN=Alexey Bobyr' -l 'Calendar' -T f -t "SUBJECT_FROM_ONDREF"

<pre>
[root@mail]# omtidyu -B -u 'Alexey Bobyr / uk, hq/CN=Alexey Bobyr' -l 'Calendar' -T f -t "XX-XXXXXXXXXXX"
Deletable items for 'Alexey Bobyr /uk,hq/CN=Alexey Bobyr'

Folder 'Calendar': 1 items

</pre>

to delete item need to add '-d' option
<pre>
[root@mail]# omtidyu -B -u 'Alexey Bobyr / uk, hq/CN=Alexey Bobyr' -l 'Calendar' -T f -t "XX-XXXXXXXXXXX" -d
Items moved to the WasteBasket for 'Alexey Bobyr /uk,hq/CN=Alexey Bobyr'

Folder 'Calendar': 1 items
[root@mail]#
</pre>

import
> [root@mail]# sxmboximp -a ./001be6fd4b8ec597.mbox

Back