<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32422</bug_id>
          
          <creation_ts>2016-08-23 16:06:01 +0300</creation_ts>
          <short_desc>readpst -r incorrectly names a file according to its type: Recoverable Items/Calendar Logging/mbox</short_desc>
          <delta_ts>2016-08-24 12:26:06 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>libpst-tools</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="nbr">nbr</assigned_to>
          <cc>azol</cc>
    
    <cc>cas</cc>
    
    <cc>grenka</cc>
    
    <cc>mike</cc>
    
    <cc>nbr</cc>
    
    <cc>sin</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>158246</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-08-23 16:06:01 +0300</bug_when>
    <thetext>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 &quot;mbox&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158247</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-08-23 16:10:35 +0300</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158251</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-08-23 17:45:38 +0300</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158253</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-08-23 18:02:39 +0300</bug_when>
    <thetext>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 &quot;calendar&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158256</commentid>
    <comment_count>4</comment_count>
    <who name="nbr">nbr</who>
    <bug_when>2016-08-23 18:57:37 +0300</bug_when>
    <thetext>will look at it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158257</commentid>
    <comment_count>5</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-08-23 22:55:26 +0300</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158258</commentid>
    <comment_count>6</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-08-24 04:19:38 +0300</bug_when>
    <thetext>Fixed in 0.6.67-alt3 -- http://git.altlinux.org/gears/l/libpst.git?p=libpst.git;a=commit;h=a4d617368ddbfbf392fa35721f191869fcd130f8 .

See also more notes in https://bugzilla.redhat.com/show_bug.cgi?id=1369499#c4 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158261</commentid>
    <comment_count>7</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-08-24 12:26:06 +0300</bug_when>
    <thetext>Ну, в нашем примере не так много интересного по таким причинам пропускается -- https://bugzilla.redhat.com/attachment.cgi?id=1193404 . Это в основном как раз про эту &quot;Recoverable Items&quot;. И мне так показалось в итоге после проверки новой версии и сравнения результатов, что отдельные календари, которые он может вытащить -- они же лежат в виде attachments к почте в той же папке (и значит, в итоге в каком-то виде приезжают). Если так, да и неплохо это для Recoverable Items.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>