Closed Hergeirs closed 4 weeks ago
Not a typo. But they changed the function name, see: https://searchfox.org/comm-esr115/source/mailnews/base/public/nsIMsgMessageService.idl#103 https://searchfox.org/comm-esr128/source/mailnews/base/public/nsIMsgMessageService.idl#101
that's always the risk when we use "experimental" code - meaning legacy code to get at the good Sh*t - the functions that aren't covered via the extensions API. I will write a patch shortly!
Here is a quick fix version. It's fully backwards compatible so it can be installed in both Tb115 and Tb128 as I included both options depending on their presence.
To try the version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)
Thank you for the quickfix.
I didn't realize how foolish my assumption was until I saw that the code was committed 3 years ago.
Love the extension btw. Really helps my workflow immensely.
The quick fix worked for saving as eml. Changing to html or txt just changes the extension of the file, but has identical content. Is this intended behaviour? I.e. creates invalid HTML files.
https://searchfox.org/comm-esr128/source/mailnews/base/public/nsIMsgMessageService.idl#88
this is the function that is used to save a message as file:
/**
* When you want to spool a message out to a file on disk.
* This is an asynch operation of course. You must pass in a
* url listener in order to figure out when the operation is done.
*
* @param aMessageURI The uri representing the message to spool out to disk.
* @param aFile The file you want the message saved to
* @param aGenerateDummyEnvelope Usually FALSE. Set to TRUE if you want the msg
* appended at the end of the file.
* @param aUrlListener
* @param canonicalLineEnding
* @param aMsgWindow
*/
void saveMessageToDisk(in AUTF8String aMessageURI, in nsIFile aFile,
in boolean aGenerateDummyEnvelope,
in nsIUrlListener aUrlListener,
in boolean canonicalLineEnding, in nsIMsgWindow aMsgWindow);
Fixed in 4.2 - Published 15/10/2024
Running the same filter with any other action works perfectly. Even
Save Attachments To
There was no useful information in the filter log.While looking around for the cause and ruling out encoding issues and the like I think I found the issue.
In the debug console of thunderbird I consistently got this error:
I put a breakpoint at the failure point and saw that indeed
service.SaveMessageToDisk
is undefined.service
does however contain the methodsaveMessageToDisk
with a lowercase "s" .It seems to me like it might be a simple spelling mistake. Please correct me if i'm wrong.
I could attempt a pull request, but I'm just not sure wether changing that 1 letter would be all that's needed.