mlazdans / qnote

QNote add-on for Thunderbird email application
13 stars 4 forks source link

QNote won't save note on a particular email, but instead, throws up an error #40

Open rogerval opened 1 year ago

rogerval commented 1 year ago

When trying to save a note attached to a particular email, the save fails, and instead I get the following message: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nslFile.moveTo] Also, I notice that for each attempt to save the note, there's a temporary file created in the folder Qnote is using to save the notes. There's nothing unusual about the email itself; it has a couple of attachments, but it's perfectly readable, so this error has me baffled. I'm currently using Qnote 0.12.2; Thunderbird 102.7.0 on Windows 10 Pro version 22H2. Any suggestions on how to eliminate this error? Thanks in advance, Roger V.

QNote error 2023-02-01

rogerval commented 1 year ago

I think I may have found the problem: the message ID for this particular email was huge (a string of 80 characters repeated 4 times, instead of a total length of 72, which another message had). When I forwarded this message to myself, the ID was far shorter, and QNote happliy attached a note to it. Problem appears to be solved. πŸ™‚

mlazdans commented 1 year ago

Thanks! Probably should trim large message ids.

rogerval commented 1 year ago

That sounds like a great idea. πŸ™‚ The particular ID was this (and was probably a β€œone off” bug from the email server, not likely to happen very often) " MEAPR01MB439008629B998CEE642CF7A199CE9@MEAPR01MB4390.ausprd01.prod.outlook.com MEAPR01MB439008629B998CEE642CF7A199CE9@MEAPR01MB4390.ausprd01.prod.outlook.com MEAPR01MB439008629B998CEE642CF7A199CE9@MEAPR01MB4390.ausprd01.prod.outlook.com MEAPR01MB439008629B998CEE642CF7A199CE9@MEAPR01MB4390.ausprd01.prod.outlook.com " which is ridiculously long (and repeats itself 4x for some reason). Anyway, thanks for your hard work. πŸ™‚