Skip to content

Commit 3201810

Browse files
committed
fixup! fix no sent mailbox configured
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
1 parent b65c976 commit 3201810

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

lib/Service/MailManager.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -441,28 +441,6 @@ public function updateSubscription(Account $account, Mailbox $mailbox, bool $sub
441441
return $this->mailboxMapper->find($account, $mailbox->getName());
442442
}
443443

444-
public function setImapSpecialUseAtrribute(Account $account, Mailbox $mailbox, string $specialUse): Mailbox {
445-
446-
$client = $this->imapClientFactory->getClient($account);
447-
try {
448-
$client->setMetadata($mailbox->getName(), [
449-
'/private/specialuse' => $specialUse,
450-
]);
451-
} catch (Horde_Imap_Client_Exception $e) {
452-
throw new ServiceException(
453-
'Could not set special use attribute for mailbox ' . $mailbox->getId() . ' on IMAP: ' . $e->getMessage(),
454-
$e->getCode(),
455-
$e
456-
);
457-
} finally {
458-
$client->logout();
459-
}
460-
461-
$this->mailboxSync->sync($account, $this->logger, true);
462-
463-
return $this->mailboxMapper->find($account, $mailbox->getName());
464-
}
465-
466444
public function enableMailboxBackgroundSync(Mailbox $mailbox,
467445
bool $syncInBackground): Mailbox {
468446
$mailbox->setSyncInBackground($syncInBackground);

0 commit comments

Comments
 (0)