mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
job: fix delete_msg_on_imap documentation
This commit is contained in:
11
src/job.rs
11
src/job.rs
@@ -590,12 +590,13 @@ impl Job {
|
|||||||
|
|
||||||
/// Deletes a message on the server.
|
/// Deletes a message on the server.
|
||||||
///
|
///
|
||||||
/// foreign_id is a MsgId pointing to a message in the trash chat
|
/// `foreign_id` is a MsgId.
|
||||||
/// or a hidden message.
|
|
||||||
///
|
///
|
||||||
/// This job removes the database record. If there are no more
|
/// If the message is in the trash chat or hidden, this job
|
||||||
/// records pointing to the same message on the server, the job
|
/// removes database record, otherwise it only clears the
|
||||||
/// also removes the message on the server.
|
/// `server_uid` column. If there are no more records pointing to
|
||||||
|
/// the same message on the server, the job actually removes the
|
||||||
|
/// message on the server.
|
||||||
async fn delete_msg_on_imap(&mut self, context: &Context, imap: &mut Imap) -> Status {
|
async fn delete_msg_on_imap(&mut self, context: &Context, imap: &mut Imap) -> Status {
|
||||||
if let Err(err) = imap.prepare(context).await {
|
if let Err(err) = imap.prepare(context).await {
|
||||||
warn!(context, "could not connect: {:?}", err);
|
warn!(context, "could not connect: {:?}", err);
|
||||||
|
|||||||
Reference in New Issue
Block a user