Files downloaded should have same naming syntax as those via web mojedatovaschranka.cz
The default filenames in the official web mojedatovaschranka.cz interface are:
zprava_%i_prijata.[zfo|pdf]
priloha_%i_[0-9]*_%f
prilohy_zpravy_%i.zip
dorucenka_%i.[zfo|pdf]
But, the application for unclear reason has by default DS_%i
set or whetever. That is wrong. I want to stick to the defaults to keep in-line with files fetched so far from mojedatovaschranka.cz . For that a new variable say %I
must be introduced to represent the number of the attachment in a series.
BTW, if one downloads a ZIP from of all attachments from mojedatovaschranka.cz for a message id %i
, then the file is named prilohy_zpravy_%i.zip
.
If you unpack the ZIP file, you get files, e.g.:
blah.pdf
blah.docx
blah.xlsx
instead of
prilohy_zpravy_%i_1_blah.pdf
prilohy_zpravy_%i_2_blah.docx
prilohy_zpravy_%i_3_blah.xlsx
But that is a bug at mojedatovaschranka.cz of the function generating the ZIP file for download. It is handy to keep the files prefixed by prilohy_zpravy_%i_
to avoid filename mismatches and keep things organized. Also the [1-3]
are helpful to keep ordering of the attachments. More below on this.
If you manually fetch those three example attachments via web interface you would end up with
prilohy_zpravy_%i_0_mainmessage.pdf
prilohy_zpravy_%i_1_blah.pdf
prilohy_zpravy_%i_2_blah.docx
prilohy_zpravy_%i_3_blah.xlsx
Please stick to the same file naming in the Datovka application, both for computers and in the mobile app. The yet to be introduced variable %I
would generate the 0
, 1
, 2
and 3
in the above example.