Menu

#17 Unique ID for calendar item filenames

open
nobody
5
2012-12-11
2012-04-06
Anonymous
No

Hi Petr,

If you export multiple calendar item which have the same summary information, NbuExplorer will request whether the existing file should be overwritten. It would be useful if NbuExplorer would add a unique id to each filename to avoid this, which I think can be done by merging lines 681 and 682 of file FormMain.OpenFile.cs (I looked at revision 52 of this file):

filename = calendar[\"SUMMARY\"];
if (filename.Length == 0) filename = numToName(files.Count + 1);

to become something like:

filename = calendar[\"SUMMARY\"] + numToName(files.Count + 1);

I\'m not familiar with the language NbuExplorer is written in, but I hope you get the gist.

Hope this helps!

Best regards,

Bo Overgaauw (creation of SourceForge account pending...)

Discussion

  • petrusek

    petrusek - 2012-04-10

    There is a mechanism which should append [increasing_number] at the end of each duplicated filename with different content. This must not work if you get into described situation. Does parse log contain some errors? Could you provide some sample backup with such behavior?

     
  • Boudewijn OVERGAAUW

    I may not be able to get hold of the nbu file that caused me to file the feature request as it's a file I do not own, but what I can tell you is, that the *text* of the items is identical, only the time/date characteristics are unique. The items that I wanted to extract are daily mileage notes, without any additional information added, and I needed to assemble a periodic overview. If this is not sufficient information I may be able to recreate a similar situation with my own E71.

     
  • petrusek

    petrusek - 2012-04-12

    Yes, please create and send me such backup.