get_message_cached


Description:

[ Version ( since = "3.24" ) ]
public virtual MimeMessage? get_message_cached (string message_uid, Cancellable? cancellable = null)

Gets the message corresponding to message_uid from the this cache, if available locally.

This should not do any network I/O, only check if message is already downloaded and return it quickly, not being blocked by the folder's lock. Returning NULL is not considered as an error, it just means that the message is still to-be-downloaded.

Note: This function is called automatically within get_message_sync .

Parameters:

this

a Folder

message_uid

the message UID

cancellable

optional Cancellable object, or null

Returns:

a cached MimeMessage corresponding to the requested UID




2022 vala-language.org