Thread
Index > Scribe > v233 bug with name of attachments
Author/Date v233 bug with name of attachments
ALL
13/12/2018 8:20pm
1.
In some income and sent mails name of attachments is wrong.
see http://s1.bild.me/bilder/110417/174768120181213-111223.png

2.
If I open mail from mail list, and go to any section: text/html/attachments/header/..., It asks me for 'save the changes'
But I didn't make any changes ! I open and see only

fret
14/12/2018 7:53am
In some income and sent mails name of attachments is wrong.
This can happen normally. If the sender doesn't include an attachment name it won't be displayed, however one will be generated if you try and open or save it. This happens quite a lot when Outlook or Exchange generates a calendar email for me. You have to export the email to disk and check the headers of the attachment's MIME segment to confirm there SHOULD be an attachment name. If you're unsure, send me the raw exported file and I'll have a look.

If I open mail from mail list, and go to any section: text/html/attachments/header/..., It asks me for 'save the changes'
But I didn't make any changes ! I open and see only

I've tried to reproduce this and it's not happening for me. But I'll keep an eye out for it. Maybe something install specific going on here?
ALL
19/12/2018 6:47pm
I come back to v2.2.14
v2.2.14 hasn't bug with name of attachments
fret
19/12/2018 7:14pm
Ok well I'll need to see the export of an example email. I'll try and reproduce it this end, but without the right source email that could be difficult.
AL
20/12/2018 5:55pm
OK.

file:
https://mega.nz/#!LIMHyQja!PKCuApSAcWRybNFaU2GFLZYpgsMTX2Y2kVu-vYBmFFU
pass for file: your nick here

INFO:
1. see folder 'x'. 1 mail has attachment. v 2.2.14 sees attachment's name. v.2.3.5 doesn't.

2. If you 'EXPORT' in UNIX-MBOX this this mail. Exported file HASN'T fields: FROM, TO
(You can import this exported file OR see it in text-editor)

3. If I delete folder 'x' and 'EMPTY TRASH' - I have crash of InScribe (v.2.2.14, ..., v.2.3.5)
fret
20/12/2018 6:31pm
Got it...

The issue was I was using the wrong variable in one spot. Fixed for the next build. Thanks.
fret
27/12/2018 11:10am
Fixed in v2.3.7

Also I've got some logging in for your options file backup problem. If you look at the console output you'll find some entries like:

Code\ScribeApp.cpp:3088 - Scanning backups
Code\ScribeApp.cpp:3022 - Root='C:\Users\matthew\AppData\Roaming\Scribe'
Code\ScribeApp.cpp:3045 - File='C:\Users\matthew\AppData\Roaming\Scribe\ScribeOptions.xml'
Code\ScribeApp.cpp:3045 - File='C:\Users\matthew\AppData\Roaming\Scribe\ScribeOptions_1.bak'
Code\ScribeApp.cpp:3045 - File='C:\Users\matthew\AppData\Roaming\Scribe\ScribeOptions_2.bak'
Code\ScribeApp.cpp:3045 - File='C:\Users\matthew\AppData\Roaming\Scribe\ScribeOptions_3.bak'
Code\ScribeApp.cpp:3045 - File='C:\Users\matthew\AppData\Roaming\Scribe\ScribeOptions_4.bak'
Code\ScribeApp.cpp:3045 - File='C:\Users\matthew\AppData\Roaming\Scribe\ScribeOptions_5.bak'
Code\ScribeApp.cpp:3045 - File='C:\Users\matthew\AppData\Roaming\Scribe\ScribeOptions_6.bak'
Code\ScribeApp.cpp:3061 - Attempt 'C:\Users\matthew\AppData\Roaming\Scribe\ScribeOptions.xml' = 0000000002FF3D00
Code\ScribeApp.cpp:3070 - Files.len=7
Code\ScribeApp.cpp:3077 - Delete 'C:\Users\matthew\AppData\Roaming\Scribe\ScribeOptions_5.bak'


I'd be interested in what your copy of Scribe shows?
ALL
27/12/2018 8:36pm
There are 2 starts InScribe 237 in one log file:
Code\ScribeApp.cpp:3022 - Root='F:\Scribe'
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions.bak'
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions.xml'
Code\ScribeApp.cpp:3061 - Attempt 'F:\Scribe\ScribeOptions.xml' = 0000000002349610
Code\ScribeApp.cpp:3070 - Files.len=2
Selecting portable mode based on options file path.
Compiling 'Add Senders To Contacts.script'...
Compiling 'Delete Attachments.script'...
Compiling 'Delete Duplicate Messages.script'...
Compiling 'Mail Filters Menu.script'...
Compiling 'Open by External Browser.script'...
Code\ScribeApp.cpp:4751 - Mail store '1' is disabled.
Code\ScribeApp.cpp:4751 - Mail store '2' is disabled.
Code\ScribeApp.cpp:4751 - Mail store '3' is disabled.
Code\ScribeApp.cpp:4751 - Mail store '4' is disabled.
Code\ScribeApp.cpp:4751 - Mail store '5' is disabled.
Code\ScribeApp.cpp:8376 - '/Spam' doesn't exist.
Code\ScribeApp.cpp:8405 - Default folder 'Spam' doesn't exist.
Code\ScribeApp.cpp:3022 - Root='F:\Scribe'
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions.bak'
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions.xml'
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions_1.bak'
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions_2.bak'
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions_3.bak'
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions_4.bak'
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions_5.bak'
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions_6.bak'
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions_7.bak'
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions_8.bak'
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions_9.bak'
Code\ScribeApp.cpp:3061 - Attempt 'F:\Scribe\ScribeOptions.xml' = 00000000023A4EE0
Code\ScribeApp.cpp:3070 - Files.len=11
Code\ScribeApp.cpp:3077 - Delete 'F:\Scribe\ScribeOptions.bak'
Code\ScribeApp.cpp:3077 - Delete 'F:\Scribe\ScribeOptions_1.bak'
Code\ScribeApp.cpp:3077 - Delete 'F:\Scribe\ScribeOptions_2.bak'
Code\ScribeApp.cpp:3077 - Delete 'F:\Scribe\ScribeOptions_3.bak'
Code\ScribeApp.cpp:3077 - Delete 'F:\Scribe\ScribeOptions_4.bak'
Selecting portable mode based on options file path.
Compiling 'Add Senders To Contacts.script'...
Compiling 'Delete Attachments.script'...
Compiling 'Delete Duplicate Messages.script'...
Compiling 'Mail Filters Menu.script'...
Compiling 'Open by External Browser.script'...
Code\ScribeApp.cpp:4751 - Mail store '1' is disabled.
Code\ScribeApp.cpp:4751 - Mail store '2' is disabled.
Code\ScribeApp.cpp:4751 - Mail store '3' is disabled.
Code\ScribeApp.cpp:4751 - Mail store '4' is disabled.
Code\ScribeApp.cpp:4751 - Mail store '5' is disabled.
Code\ScribeApp.cpp:8376 - '/Spam' doesn't exist.
Code\ScribeApp.cpp:8405 - Default folder 'Spam' doesn't exist.
Code\ScribeApp.cpp:8376 - '/Groups' doesn't exist.
Code\ScribeApp.cpp:8405 - Default folder 'Groups' doesn't exist.
Code\ScribeApp.cpp:8376 - '/Groups' doesn't exist.
Code\ScribeApp.cpp:8405 - Default folder 'Groups' doesn't exist.
Code\ScribeApp.cpp:8376 - '/Groups' doesn't exist.
Code\ScribeApp.cpp:8405 - Default folder 'Groups' doesn't exist.


First starts is without many *.bak files. (I deleted these by hand)
Second starts is normal. After second starts I have ScribeOptions_1 .. ScribeOptions_14 files now.
fret
27/12/2018 10:08pm
Code\ScribeApp.cpp:3045 - File='F:\Scribe\ScribeOptions_9.bak'


It only found up to number 9... but the files continued to number 14. I'm guessing the scanning fails if there are gaps in the numbers. Leaving some files out of the list of backups. You can see it's deleting some of the files it knows about, but the list is incomplete. I'll see what the code actually does in the case there is gaps in the numbers.
ALL
27/12/2018 10:16pm
Yes, maybe, you are right.
I start v237 now and I have:
Files 1..9 were updated now.
Files 10..14 had previous date-stamp.
fret
01/01/2019 5:32pm
So following this up. The scanning code that looks for backups is basically:

for all files in folder:
    if the file name contains 'ScribeOptions' and 
        the extension is 'xml' or 'bak' then:

        add to list of options files

    endif


Now after an options file is loaded successfully, I sort the list by modified date and delete the oldest until there is just the normal xml file and 5 backups. So it's not making sense that the backups aren't being found. Even with gaps in the numbers. I did a test here and made a bunch of backups with missing numbers and they were all found and trimmed by the backup culling code.

Unless somehow the 'ScribeOptions' is no longer in the file name, then they could be missed. Or if the extension changes to something other than xml or bak. Remember the backup cull happens only at startup, not during runtime. So collecting a few more during runtime should be ok. Only if they persist after a restart do I think it's a problem.
Reply