Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
mickenordin authored Oct 10, 2023
2 parents 0f4c977 + fef0d04 commit 57808d0
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 7 deletions.
7 changes: 7 additions & 0 deletions l10n/eu.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,14 @@ OC.L10N.register(
"Message saved" : "Mezua gordeta",
"Failed to save message" : "Mezua gordetzeak huts egin du",
"Failed to save draft" : "Zirriborroa gordetzeak huts egin du",
"attachment" : "eranskina",
"attached" : "erantsita",
"No sent mailbox configured. Please pick one in the account settings." : "Ez dago bidalitakoen postontzirik konfiguratuta. Aukeratu baten bat kontuaren ezarpenetan, mesedez.",
"You are trying to send to many recipients in To and/or Cc. Consider using Bcc to hide recipient addresses." : "To eta / edo Cc-n hartzaile askori bidaltzen saiatzen ari zara. Hartzaileen helbideak ezkutatzeko Bcc erabili dezakezu.",
"You mentioned an attachment. Did you forget to add it?" : "Eranskin bat aipatu duzu. Gehitzea ahaztu al zaizu?",
"Message discarded" : "Mezua bertan behera utzi da",
"Could not discard message" : "Ezin izan da mezua baztertu",
"Welcome to {cloudName} Mail" : "Ongi etorri {cloudName} postara",
"Autoresponder off" : "Autoerantzulea itzalita",
"Autoresponder on" : "Autoerantzulea piztuta",
"First day" : "Lehen eguna",
Expand Down Expand Up @@ -393,6 +397,7 @@ OC.L10N.register(
"Your signature is larger than 2 MB. This may affect the performance of your editor." : "Zure sinadurak 2MB baino gehiago ditu. Honek editorearen errendimendua gutxitu dezake.",
"Save signature" : "Gorde sinadura",
"Place signature above quoted text" : "Jarri sinadura aipatutako testuaren gainean",
"Edit name or color" : "Editatu izena edo kolorea",
"Saving new tag name …" : "Etiketa-izen berria gordetzen ...",
"Set tag" : "Ezarri etiketa",
"Unset tag" : "Ezarri gabeko etiketa",
Expand Down Expand Up @@ -429,6 +434,8 @@ OC.L10N.register(
"This message contains an unverified digital S/MIME signature. The message might have been changed since it was sent or the certificate of the signer is untrusted." : "Mezu honek egiaztatu gabeko S/MIME sinadura digital bat dauka. Baliteke mezua bidali zenetik aldatu izana edo sinatzailearen ziurtagiria fidagarria ez izatea.",
"Unsubscribe request sent" : "Harpidetza kentze eskaera bidalita",
"Could not unsubscribe from mailing list" : "Ezin izan da posta-zerrendako harpidetza kendu",
"Go to latest message" : "Joan azken mezura",
"Go to newest message" : "Joan mezu berrienera",
"Remove" : "Kendu",
"No senders are trusted at the moment." : "Une honetan ez da igorle fidagarririk.",
"Could not remove trusted sender {sender}" : "Ezin izan da {sender} igorle fidagarria kendu",
Expand Down
7 changes: 7 additions & 0 deletions l10n/eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,14 @@
"Message saved" : "Mezua gordeta",
"Failed to save message" : "Mezua gordetzeak huts egin du",
"Failed to save draft" : "Zirriborroa gordetzeak huts egin du",
"attachment" : "eranskina",
"attached" : "erantsita",
"No sent mailbox configured. Please pick one in the account settings." : "Ez dago bidalitakoen postontzirik konfiguratuta. Aukeratu baten bat kontuaren ezarpenetan, mesedez.",
"You are trying to send to many recipients in To and/or Cc. Consider using Bcc to hide recipient addresses." : "To eta / edo Cc-n hartzaile askori bidaltzen saiatzen ari zara. Hartzaileen helbideak ezkutatzeko Bcc erabili dezakezu.",
"You mentioned an attachment. Did you forget to add it?" : "Eranskin bat aipatu duzu. Gehitzea ahaztu al zaizu?",
"Message discarded" : "Mezua bertan behera utzi da",
"Could not discard message" : "Ezin izan da mezua baztertu",
"Welcome to {cloudName} Mail" : "Ongi etorri {cloudName} postara",
"Autoresponder off" : "Autoerantzulea itzalita",
"Autoresponder on" : "Autoerantzulea piztuta",
"First day" : "Lehen eguna",
Expand Down Expand Up @@ -391,6 +395,7 @@
"Your signature is larger than 2 MB. This may affect the performance of your editor." : "Zure sinadurak 2MB baino gehiago ditu. Honek editorearen errendimendua gutxitu dezake.",
"Save signature" : "Gorde sinadura",
"Place signature above quoted text" : "Jarri sinadura aipatutako testuaren gainean",
"Edit name or color" : "Editatu izena edo kolorea",
"Saving new tag name …" : "Etiketa-izen berria gordetzen ...",
"Set tag" : "Ezarri etiketa",
"Unset tag" : "Ezarri gabeko etiketa",
Expand Down Expand Up @@ -427,6 +432,8 @@
"This message contains an unverified digital S/MIME signature. The message might have been changed since it was sent or the certificate of the signer is untrusted." : "Mezu honek egiaztatu gabeko S/MIME sinadura digital bat dauka. Baliteke mezua bidali zenetik aldatu izana edo sinatzailearen ziurtagiria fidagarria ez izatea.",
"Unsubscribe request sent" : "Harpidetza kentze eskaera bidalita",
"Could not unsubscribe from mailing list" : "Ezin izan da posta-zerrendako harpidetza kendu",
"Go to latest message" : "Joan azken mezura",
"Go to newest message" : "Joan mezu berrienera",
"Remove" : "Kendu",
"No senders are trusted at the moment." : "Une honetan ez da igorle fidagarririk.",
"Could not remove trusted sender {sender}" : "Ezin izan da {sender} igorle fidagarria kendu",
Expand Down
2 changes: 2 additions & 0 deletions l10n/gl.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ OC.L10N.register(
"Message saved" : "Mensaxe gardada",
"Failed to save message" : "Produciuse un fallo ao gardar a mensaxe",
"Failed to save draft" : "Produciuse un fallo ao gardar o borrador",
"attachment" : "anexo",
"attached" : "anexado",
"No sent mailbox configured. Please pick one in the account settings." : "Non foi configurada ningunha caixa de correo enviado. Escolla unha nos axustes da conta.",
"You are trying to send to many recipients in To and/or Cc. Consider using Bcc to hide recipient addresses." : "Está tentando enviar a moitos destinatarios en Para e/ou Cc. Considere usar Cca para agochar os enderezos dos destinatarios.",
"Message discarded" : "Mensaxe desbotada",
Expand Down
2 changes: 2 additions & 0 deletions l10n/gl.json
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@
"Message saved" : "Mensaxe gardada",
"Failed to save message" : "Produciuse un fallo ao gardar a mensaxe",
"Failed to save draft" : "Produciuse un fallo ao gardar o borrador",
"attachment" : "anexo",
"attached" : "anexado",
"No sent mailbox configured. Please pick one in the account settings." : "Non foi configurada ningunha caixa de correo enviado. Escolla unha nos axustes da conta.",
"You are trying to send to many recipients in To and/or Cc. Consider using Bcc to hide recipient addresses." : "Está tentando enviar a moitos destinatarios en Para e/ou Cc. Considere usar Cca para agochar os enderezos dos destinatarios.",
"Message discarded" : "Mensaxe desbotada",
Expand Down
6 changes: 6 additions & 0 deletions l10n/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ OC.L10N.register(
"Mail server" : "Почтовый сервер",
"Sieve filter server" : "Сервер sieve фильтра",
"Update alias" : "Обновить псевдоним",
"Rename alias" : "Переименовать псевдоним",
"Show update alias form" : "Показать обновления для формы alias",
"Delete alias" : "Удалить псевдоним",
"Go back" : "Вернуться назад",
Expand All @@ -107,6 +108,7 @@ OC.L10N.register(
"Put my text to the bottom of a reply instead of on top of it." : "Поместить мой текст внизу ответа, а не поверх него.",
"Automatically classify importance of new email" : "Автоматически определять важность новых писем",
"Could not update preference" : "Не удалось обновить свойство",
"Select an alias" : "Выберите псевдоним",
"Update Certificate" : "Обновить сертификат",
"No certificate" : "Нет сертификата",
"Certificate updated" : "Сертификат обновлен",
Expand Down Expand Up @@ -218,6 +220,7 @@ OC.L10N.register(
"Event created" : "Событие создано",
"Could not create event" : "Не удалось создать событие",
"You accepted this invitation" : "Вы приняли приглашение",
"You tentatively accepted this invitation" : "Вы предварительно приняли это приглашение",
"You declined this invitation" : "Вы отклонили приглашение",
"You already reacted to this invitation" : "Вы уже отреагировали на это приглашение",
"You have been invited to an event" : "Вы были приглашены на мероприятие",
Expand All @@ -226,8 +229,11 @@ OC.L10N.register(
"Comment" : "Комментарий",
"Accept" : "Принять",
"Decline" : "Отклонить",
"Tentatively accept" : "Предварительно принять",
"More options" : "Дополнительные параметры",
"This event was updated" : "Событие было обновлено",
"{attendeeName} accepted your invitation" : "Пользователь {attendeeName} принял ваше приглашение",
"{attendeeName} tentatively accepted your invitation" : "Пользователь {attendeeName} предварительно принял ваше приглашение",
"Could not open mailbox" : "Невозможно открыть папку",
"Loading messages …" : "Загрузка сообщений...",
"Indexing your messages. This can take a bit longer for larger mailboxes." : "Выполняется индексация сообщений, это займёт некоторое время.",
Expand Down
6 changes: 6 additions & 0 deletions l10n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"Mail server" : "Почтовый сервер",
"Sieve filter server" : "Сервер sieve фильтра",
"Update alias" : "Обновить псевдоним",
"Rename alias" : "Переименовать псевдоним",
"Show update alias form" : "Показать обновления для формы alias",
"Delete alias" : "Удалить псевдоним",
"Go back" : "Вернуться назад",
Expand All @@ -105,6 +106,7 @@
"Put my text to the bottom of a reply instead of on top of it." : "Поместить мой текст внизу ответа, а не поверх него.",
"Automatically classify importance of new email" : "Автоматически определять важность новых писем",
"Could not update preference" : "Не удалось обновить свойство",
"Select an alias" : "Выберите псевдоним",
"Update Certificate" : "Обновить сертификат",
"No certificate" : "Нет сертификата",
"Certificate updated" : "Сертификат обновлен",
Expand Down Expand Up @@ -216,6 +218,7 @@
"Event created" : "Событие создано",
"Could not create event" : "Не удалось создать событие",
"You accepted this invitation" : "Вы приняли приглашение",
"You tentatively accepted this invitation" : "Вы предварительно приняли это приглашение",
"You declined this invitation" : "Вы отклонили приглашение",
"You already reacted to this invitation" : "Вы уже отреагировали на это приглашение",
"You have been invited to an event" : "Вы были приглашены на мероприятие",
Expand All @@ -224,8 +227,11 @@
"Comment" : "Комментарий",
"Accept" : "Принять",
"Decline" : "Отклонить",
"Tentatively accept" : "Предварительно принять",
"More options" : "Дополнительные параметры",
"This event was updated" : "Событие было обновлено",
"{attendeeName} accepted your invitation" : "Пользователь {attendeeName} принял ваше приглашение",
"{attendeeName} tentatively accepted your invitation" : "Пользователь {attendeeName} предварительно принял ваше приглашение",
"Could not open mailbox" : "Невозможно открыть папку",
"Loading messages …" : "Загрузка сообщений...",
"Indexing your messages. This can take a bit longer for larger mailboxes." : "Выполняется индексация сообщений, это займёт некоторое время.",
Expand Down
2 changes: 1 addition & 1 deletion l10n/sk.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ OC.L10N.register(
"Loading messages …" : "Načítavam správy ...",
"Indexing your messages. This can take a bit longer for larger mailboxes." : "Indexovanie správ. U väčších poštových schránok to môže chvíľu trvať.",
"Choose target mailbox" : "Vyberte cieľovú schránku",
"No more submailboxes in here" : "Žadne ďaľšie podschránky",
"No more submailboxes in here" : "Žadne ďašie podschránky",
"Choose" : "Vybrať",
"Important info" : "Dôležité informácie",
"Other" : "Iné",
Expand Down
2 changes: 1 addition & 1 deletion l10n/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
"Loading messages …" : "Načítavam správy ...",
"Indexing your messages. This can take a bit longer for larger mailboxes." : "Indexovanie správ. U väčších poštových schránok to môže chvíľu trvať.",
"Choose target mailbox" : "Vyberte cieľovú schránku",
"No more submailboxes in here" : "Žadne ďaľšie podschránky",
"No more submailboxes in here" : "Žadne ďašie podschránky",
"Choose" : "Vybrať",
"Important info" : "Dôležité informácie",
"Other" : "Iné",
Expand Down
6 changes: 4 additions & 2 deletions lib/IMAP/ImapMessageFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
use Horde_Imap_Client_Fetch_Query;
use Horde_Imap_Client_Ids;
use Horde_ListHeaders;
use Horde_ListHeaders_Base;
use Horde_Mime_Exception;
use Horde_Mime_Headers;
use Horde_Mime_Part;
Expand Down Expand Up @@ -523,8 +522,11 @@ private function parseHeaders(Horde_Imap_Client_Data_Fetch $fetch): void {
$listUnsubscribeHeader = $parsedHeaders->getHeader('list-unsubscribe');
if ($listUnsubscribeHeader !== null) {
$listHeaders = new Horde_ListHeaders();
/** @var Horde_ListHeaders_Base[] $headers */
$headers = $listHeaders->parse($listUnsubscribeHeader->name, $listUnsubscribeHeader->value_single);
if (!$headers) {
// Unable to parse headers
return;
}
foreach ($headers as $header) {
if (str_starts_with($header->url, 'http')) {
$this->unsubscribeUrl = $header->url;
Expand Down
6 changes: 4 additions & 2 deletions lib/Service/PreprocessingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ public function process(int $limitTimestamp, Account $account): void {
return $mailbox->getId();
}, $mailboxes));


$messages = $this->messageMapper->getUnanalyzed($limitTimestamp, $mailboxIds);
$messages = [];
foreach(array_chunk($mailboxIds, 1000) as $chunk) {
$messages = array_merge($messages, $this->messageMapper->getUnanalyzed($limitTimestamp, $chunk));
}
if ($messages === []) {
$this->logger->debug('No structure data to analyse.');
return;
Expand Down
4 changes: 3 additions & 1 deletion src/components/MailboxThread.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ export default {
return 3
},
showThread() {
return (this.mailbox.isPriorityInbox === true || this.hasEnvelopes) && this.$route.name === 'message'
return (this.mailbox.isPriorityInbox === true || this.hasEnvelopes)
&& this.$route.name === 'message'
&& this.$route.params.threadId !== 'mailto'
},
query() {
if (this.$route.params.filter === 'starred') {
Expand Down

0 comments on commit 57808d0

Please sign in to comment.