Bug 32422

Summary: readpst -r incorrectly names a file according to its type: Recoverable Items/Calendar Logging/mbox
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: libpst-toolsAssignee: nbr <nbr>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: azol, cas, mike, nbr, sin
Version: unstable   
Hardware: all   
OS: Linux   

Description Ivan Zakharyaschev 2016-08-23 16:06:01 MSK
libpst-tools-0.6.67-alt1

When doing the recursive folders with: readpst -w -o /tmp/readpst//root -r -D /root/mailtst.pst

the result has a mismatch between the name and the type at Recoverable Items/Calendar Logging/mbox:

# find /tmp/readpst/root/mailtst/ -type f -print0 | xargs -0 file
...
/tmp/readpst/root/mailtst/Recoverable Items/Calendar Logging/mbox:                                vCalendar calendar file
/tmp/readpst/root/mailtst/Recoverable Items/Deletions/mbox:                                       UTF-8 Unicode mail text, with very long lines
...
/tmp/readpst/root/mailtst/Календарь/calendar:                                                     vCalendar calendar file
...

It is expected to be named "mbox".
Comment 1 Ivan Zakharyaschev 2016-08-23 16:10:35 MSK
This prevents a correct use of the output as a mail_location for dovecot; as in:

doveadm -Dv sync -u USER -1 -R mbox:/tmp/readpst//root/mailtst:UTF-8:DIRNAME=mbox:INDEX=/tmp/readpst//root/mailtst/.dovecot-index
Comment 2 Ivan Zakharyaschev 2016-08-23 17:45:38 MSK
BTW (just not to forget; not that they are needed to overcome this minor bug): other tools to read PST:

1. https://packages.altlinux.org/en/Sisyphus/srpms/libpff
2. https://packages.altlinux.org/en/Sisyphus/srpms/java-libpst
Comment 3 Ivan Zakharyaschev 2016-08-23 18:02:39 MSK
Reported upstream at https://bugzilla.redhat.com/show_bug.cgi?id=1369499 (the Redhat maintainer turned out to coincide with the upstream maintainer), with a correction:

It is expected to be named "calendar".
Comment 4 nbr 2016-08-23 18:57:37 MSK
will look at it.
Comment 5 Ivan Zakharyaschev 2016-08-23 22:55:26 MSK
https://bugzilla.redhat.com/show_bug.cgi?id=1369499#c3 -- more understanding of this specific issue and of a more global problem of readpst -r
Comment 7 Ivan Zakharyaschev 2016-08-24 12:26:06 MSK
Ну, в нашем примере не так много интересного по таким причинам пропускается -- https://bugzilla.redhat.com/attachment.cgi?id=1193404 . Это в основном как раз про эту "Recoverable Items". И мне так показалось в итоге после проверки новой версии и сравнения результатов, что отдельные календари, которые он может вытащить -- они же лежат в виде attachments к почте в той же папке (и значит, в итоге в каком-то виде приезжают). Если так, да и неплохо это для Recoverable Items.