Merge pull request #3891 from modoboa/fix/dont-fail-when-no-to

Webmail: display message even when there is no To field.
This commit is contained in:
Antoine Nguyen
2026-01-22 17:49:31 +01:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -105,7 +105,7 @@
<v-spacer />
<span class="text-grey">{{ email.date }}</span>
</div>
<div class="mt-2 text-grey">
<div v-if="email.to.length" class="mt-2 text-grey">
{{ $gettext('To') }}
<v-menu v-for="(rcpt, index) in email.to" :key="`to-${index}`">
<template #activator="{ props }">
+1
View File
@@ -45,6 +45,7 @@ class ImapEmail(Email):
self.imapc = self.imapc.__enter__()
self.mbox, self.mailid = self.mailid.split(":")
self.attachments: dict[str, str] = {}
self.To: list = []
def __del__(self):
self.imapc.__exit__()