Re: Problems with \Noselect folders in cyrus-imap 3.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I took a closer look at closer look at mbexamine in version 3.4.9.

On 8/8/24 15:59, Michael Menge wrote:

2. mbexamine stops after hitting the \Noselect folder
    and does not process later folders

# mbexamine -C /etc/imapd_be.conf user/zrstes8* | grep -A2 -e Exami
Examining user/zrstes8... Mailbox Header Info:
  Path to mailbox: /srv/cyrus-be/ssd-part/B/user/zrstes8
 Mailbox ACL: zrstes8    lrswipkxtecda
--
Examining user/zrstes8/bla...

After creating the folder bla mbexamine does examine all folders


The behavior can be fixed with the following patch:

--- cyrus-imapd-3.4.9/imap/mbexamine.c	2024-07-29 05:06:10.000000000 +0200
+++ cyrus-imapd-3.4.9_patched/imap/mbexamine.c 2024-09-20 10:38:49.532000000 +0200
@@ -196,6 +196,7 @@
     /* don't want partial matches */
     if (!data) return 0;
     if (!data->is_exactmatch) return 0;
+    if (data->mbentry->mbtype == MBTYPE_INTERMEDIATE) return 0;

     signals_poll();

@@ -368,6 +369,7 @@
     /* don't want partial matches */
     if (!data) return 0;
     if (!data->is_exactmatch) return 0;
+    if (data->mbentry->mbtype == MBTYPE_INTERMEDIATE) return 0;

     signals_poll();

@@ -439,6 +441,7 @@
     /* don't want partial matches */
     if (!data) return 0;
     if (!data->is_exactmatch) return 0;
+    if (data->mbentry->mbtype == MBTYPE_INTERMEDIATE) return 0;

     signals_poll();


The funcions "do_examine", "do_quota" and "do_compare" need to stop if they are called with a non-existing folder.

I hope, this helps to solve the other issues too.
--
Ben Müller
Universität Tübingen
Zentrum für Datenverarbeitung
Abt. Zentrale Systeme
Wächterstraße 76, 72074 Tübingen
Tel: +49 (0) 7071 – 29 70325
E-Mail: ben.mueller(at)uni-tuebingen.de

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T72d2e03305c67431-Maeeca833e8aa7e34aebb86db
Delivery options: https://cyrus.topicbox.com/groups/info/subscription

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]
  Powered by Linux