pub async fn estimate_deletion_cnt(
    context: &Context,
    from_server: bool,
    seconds: i64
) -> Result<usize>
Expand description

Estimates the number of messages that will be deleted by the options delete_device_after or delete_server_after. This is typically used to show the estimated impact to the user before actually enabling deletion of old messages.

If from_server is true, estimate deletion count for server, otherwise estimate deletion count for device.

Count messages older than the given number of seconds.

Returns the number of messages that are older than the given number of seconds. This includes e-mails downloaded due to the show_emails option. Messages in the “saved messages” folder are not counted as they will not be deleted automatically.