Name Description Size
FolderPopulation.cpp 2129
FolderPopulation.h Populate the recursive folder hierarchy rooted at `parent`. Use the provided `messageStore` to discover child folders at each level in the hierarchy. If `deep` is true, child folder hierarchies will be recursively populated. 856
mailnews_ffi_glue.cpp 2734
mailnews_ffi_glue.h Helper function to instantiate an `nsIAuthModule` with the desired method/type from outside of C++. If a module could not be retrieved, `NS_ERROR_INVALID_ARG` is returned. This can happen if `authMethod` is unknown, or if we're trying to create an NTLM module but NTLM is unavailable (see `nsNTLMAuthModule::InitTest`). This means that, as long as this function succeeds, `outModule` is always a non-null `nsIAuthModule`. 1633
mailnews_ui_glue.h The symbols in this header file are implemented in Rust as part of the crate `mailnews_prompt_glue`. 1988
moz.build 665
OfflineStorage.cpp 18581
OfflineStorage.h A stream listener that forwards method calls to another stream listener, while substituting the request argument with the provided channel. Consumers are expected to call `OnStartRequest` themselves, so that their own consumers are informed of the entire operation (which might involve e.g. downloading the message from a remote server). Any call to `OnStartRequest` after the first one is silently ignored. `ReadMessageFromStore` can be called from a channel ran within an `nsIDocShell` to render the message. The stream listener that `nsIDocShell` calls `AsyncOpen` with expects the request used in method calls to be channel-like (i.e. it can be QI'd as an `nsIChannel`). Additionally, we want to use `nsIInputStreamPump` to pump the data from the message content's input stream (which we get from the message store) into the provided stream listener. However, the default `nsIInputStreamPump` implementation calls the stream listener methods with itself as the request argument, but only implements `nsIRequest` (and not `nsIChannel`), causing the operation to fail. Therefore we need this "proxy" listener to forward the method calls to the listener `AsyncOpen` is originally provided with, while substituting the request arguments with an actual channel. Additionally, it's a good place to check for read errors when streaming a message to the destination, and clearing malformed messages from the offline storage (so they can be downloaded again). 10538