mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +03:00
Accept &str instead of AsRef<str> in fetch_new_mesages()
This commit is contained in:
@@ -715,7 +715,7 @@ impl Job {
|
||||
Config::ConfiguredSentboxFolder,
|
||||
] {
|
||||
if let Some(folder) = job_try!(context.get_config(*config).await) {
|
||||
if let Err(e) = imap.fetch_new_messages(context, folder, true).await {
|
||||
if let Err(e) = imap.fetch_new_messages(context, &folder, true).await {
|
||||
// We are using Anyhow's .context() and to show the inner error, too, we need the {:#}:
|
||||
warn!(context, "Could not fetch messages, retrying: {:#}", e);
|
||||
return Status::RetryLater;
|
||||
|
||||
Reference in New Issue
Block a user