mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
fix: Allow fetch_existing_msgs for bots (#4976)
There was a comment in `fetch_existing_msgs()`: "Bots don't want those messages". If a bot doesn't want this setting, why enable it? It's disabled by default anyway.
This commit is contained in:
@@ -766,10 +766,6 @@ impl Imap {
|
|||||||
context: &Context,
|
context: &Context,
|
||||||
session: &mut Session,
|
session: &mut Session,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
if context.get_config_bool(Config::Bot).await? {
|
|
||||||
return Ok(()); // Bots don't want those messages
|
|
||||||
}
|
|
||||||
|
|
||||||
add_all_recipients_as_contacts(context, session, Config::ConfiguredSentboxFolder)
|
add_all_recipients_as_contacts(context, session, Config::ConfiguredSentboxFolder)
|
||||||
.await
|
.await
|
||||||
.context("failed to get recipients from the sentbox")?;
|
.context("failed to get recipients from the sentbox")?;
|
||||||
|
|||||||
Reference in New Issue
Block a user