Re: Restored mail folders conflict with renamed original ones

2023-02-24 Thread Nikolaos Milas

On 23/2/2023 1:20 μ.μ., Nikolaos Milas wrote:


...
Waiting for your feedback, I decided to remove the restored folders 
(Grants Active.European*) in case it makes any difference.

...


After an investigation it turned out that for some reason the 
subscription to the mail folders in question was disabled. So, we simply 
restored the subscription to all folders and things are back to normal.


I didn't try things out with both the original and the restored folders, 
but there was no need for the latter in the end.


Case closed.

Thanks for your help; your troubleshooting guidance (together with some 
associated googling) was very important to help me diagnosing the problem.


All the best,
Nick



Re: Restored mail folders conflict with renamed original ones

2023-02-23 Thread Nikolaos Milas

On 22/2/2023 2:56 μ.μ., Nikolaos Milas wrote:


On 22/2/2023 2:30 μ.μ., Aki Tuomi wrote:

Can you please try

doveadm exec imap -u username_of_the_user
1 LIST "" "*"

and see if it is there?


Here is the output:

# doveadm exec imap -u userx
* PREAUTH [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE 
SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT 
MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS 
LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES 
WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY 
PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE LITERAL+ NOTIFY SPECIAL-USE 
QUOTA] Logged in as userx

1 LIST "" "*"
...
* LIST (\HasChildren \UnMarked) "." "Grants Active"
* LIST (\HasChildren \UnMarked) "." "Grants Active.European"
* LIST (\HasNoChildren \UnMarked) "." "Grants Active.European.URBAN 
RELEAF"

* LIST (\HasChildren \UnMarked) "." "Grants Active.European.SMURBS"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.European.SMURBS.In Kind"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.European.SMURBS.Final Reports"

* LIST (\HasNoChildren \UnMarked) "." "Grants Active.European.RI-URBANS"
* LIST (\HasNoChildren \UnMarked) "." "Grants Active.European.QA4EO"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.European.ATMO-ACCESS"

* LIST (\HasNoChildren \UnMarked) "." "Grants Active.European.IGOSP"
* LIST (\HasNoChildren \UnMarked) "." "Grants Active.European.GAUSS"
* LIST (\HasNoChildren \UnMarked) "." "Grants Active.European.E-SHAPE"
* LIST (\HasNoChildren \UnMarked) "." "Grants Active.European.CIROCCO"
* LIST (\HasNoChildren \UnMarked) "." "Grants Active.European.InCASE"
* LIST (\HasNoChildren) "." "Grants Active.European.EIFFEL"
* LIST (\HasNoChildren) "." "Grants Active.European.ARSINOE"
* LIST (\HasChildren \UnMarked) "." "Grants Active.International"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.International.India - 2320"

* LIST (\HasNoChildren \UnMarked) "." "Grants Active.International.2324"
* LIST (\HasNoChildren \UnMarked) "." "Grants Active.International.GAUSS"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.International.CIROCCO"

* LIST (\HasNoChildren \UnMarked) "." "Grants Active.International.IGOSP"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.International.ATMO-ACCESS"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.International.URBAN RELEAF"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.International.InCASE"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.International.ARSINOE"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.International.RI-URBANS"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.International.E-SHAPE"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.International.EIFFEL"

* LIST (\HasNoChildren \UnMarked) "." "Grants Active.International.QA4EO"
* LIST (\HasChildren \UnMarked) "." "Grants Active.International.SMURBS"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.International.SMURBS.Final Reports"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.International.SMURBS.In Kind"

...

So, yes, the Mail Folders in question are indeed listed above.


Waiting for your feedback, I decided to remove the restored folders 
(Grants Active.European*) in case it makes any difference. After 
removing them I also did:


   # doveadm -v force-resync -u userx Grants\ Active # doveadm -v
   force-resync -u userx Grants\ Active.International

Then I asked the user to access his mailbox again, but it didn't make 
any difference. As in the beginning, the only two directories appearing 
in "Grants Active.International" folder are the following:


   Grants Active.International.2324
   Grants Active.International.India

which are the two newest ones (all the others are the same with those in 
the initial "Grants Active.European" folder which was renamed to "Grants 
Active.International").


I look forward to your advice and assistance. What may be causing the 
mailbox to not open the rest of the folders?


Thanks a lot,
Nick



Re: Restored mail folders conflict with renamed original ones

2023-02-22 Thread Nikolaos Milas

On 22/2/2023 2:30 μ.μ., Aki Tuomi wrote:

Can you please try

doveadm exec imap -u username_of_the_user
1 LIST "" "*"

and see if it is there?


Here is the output:

# doveadm exec imap -u userx
* PREAUTH [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE 
SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT 
MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS 
LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES 
WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY 
PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE LITERAL+ NOTIFY SPECIAL-USE 
QUOTA] Logged in as userx

1 LIST "" "*"
* LIST (\HasNoChildren \UnMarked) "." "IGARSS 2024"
* LIST (\HasNoChildren \UnMarked) "." IAC2022
* LIST (\HasNoChildren \UnMarked \Junk) "." Junk
* LIST (\HasNoChildren \UnMarked) "." "&A5UDwAO5A8QDwQO,A8ADrg- 
&A5kDwwPMA8QDtwPEA7EDwg-"

* LIST (\HasNoChildren) "." "&A50-OC CENTER NOA"
* LIST (\HasNoChildren \UnMarked) "." "Municipalities Interaction"
* LIST (\HasNoChildren \UnMarked) "." MEDINEVO
* LIST (\HasNoChildren \UnMarked) "." Personal
* LIST (\HasNoChildren \UnMarked) "." &A6ADwQO,A7wDrgO4A7UDuQO1A8I-
* LIST (\HasNoChildren \UnMarked) "." &A5UDmwOjA6QDkQOk-
* LIST (\HasNoChildren \UnMarked) "." &A5QDow-
* LIST (\HasNoChildren \UnMarked) "." &A5QDuQOxA7MDyQO9A7kDwwO8A78Drw-
* LIST (\HasChildren) "." "Vagg Personal"
* LIST (\HasNoChildren \UnMarked) "." "Vagg Personal.&A5oDzQPAA8EDvwPC-"
* LIST (\HasNoChildren \UnMarked) "." "Vagg 
Personal.&A5UDuwO1A7MDugPEA7kDugPM-"
* LIST (\HasNoChildren \UnMarked) "." "Vagg 
Personal.&A5oDsQO7A7EDvAOsA8QDsQ-"

* LIST (\HasNoChildren \UnMarked) "." "Vagg Personal.&A5UDkQOg-"
* LIST (\HasChildren \UnMarked) "." "Grants Finished"
* LIST (\HasNoChildren) "." "Grants Finished.PANACEA"
* LIST (\HasNoChildren \UnMarked) "." "Grants Finished.SIMPHAC"
* LIST (\HasNoChildren \UnMarked) "." "Grants Finished.Piraeus AQ"
* LIST (\HasNoChildren \UnMarked) "." "Grants Finished.&A6ADlQOjA6ADmgOR-"
* LIST (\HasNoChildren \UnMarked) "." "Grants Finished.EMISSION"
* LIST (\HasNoChildren \UnMarked) "." "Grants Finished.INFRASTRESS"
* LIST (\HasNoChildren \UnMarked) "." MURAL
* LIST (\HasNoChildren \UnMarked) "." Travels
* LIST (\HasChildren \UnMarked) "." APCG
* LIST (\HasNoChildren \UnMarked) "." APCG.APCG_SEC
* LIST (\HasNoChildren \UnMarked) "." "APCG.APCG IT"
* LIST (\HasNoChildren \UnMarked) "." "ResCom Interaction"
* LIST (\HasNoChildren \UnMarked) "." Training
* LIST (\HasNoChildren \UnMarked) "." "Junk E-mail"
* LIST (\HasNoChildren) "." INBOX.InAIRquality
* LIST (\HasNoChildren) "." INBOX.EMISSION
* LIST (\HasNoChildren \UnMarked) "." "EU Login"
* LIST (\HasChildren \UnMarked) "." Unattached
* LIST (\HasNoChildren) "." Unattached.RuralHUB
* LIST (\HasChildren \UnMarked) "." "&A5gDrQO8A7EDxAOx- 
&A6ADwQO,A8MDyQPAA7kDugO,A80-"
* LIST (\HasNoChildren \UnMarked) "." "&A5gDrQO8A7EDxAOx- 
&A6ADwQO,A8MDyQPAA7kDugO,A80-.Emily"
* LIST (\HasNoChildren \UnMarked) "." "&A5gDrQO8A7EDxAOx- 
&A6ADwQO,A8MDyQPAA7kDugO,A80-.Kim"
* LIST (\HasNoChildren \UnMarked) "." "&A5gDrQO8A7EDxAOx- 
&A6ADwQO,A8MDyQPAA7kDugO,A80-.Jenny"

* LIST (\HasNoChildren \UnMarked) "." &A5UDwAO5A7sDtQO+A7kDvAPMA8QDtwPEA7E-
* LIST (\HasChildren \UnMarked) "." "&A5UDmwOaA5U- &A5QDuQOsA8YDvwPBA7E-"
* LIST (\HasNoChildren \UnMarked) "." "&A5UDmwOaA5U- 
&A5QDuQOsA8YDvwPBA7E-.&A6ADwQPMA8QDxQPAA7E- &A4gDswOzA8EDsQPGA7E-"

* LIST (\HasNoChildren) "." QA4EO
* LIST (\HasChildren \UnMarked \Trash) "." Trash
* LIST (\HasNoChildren \UnMarked) "." Trash.Equality
* LIST (\HasNoChildren \UnMarked) "." "Trash.&A50DsQPDA7kDsQ- PhD"
* LIST (\HasNoChildren) "." Trash.sadf
* LIST (\HasNoChildren \UnMarked) "." Trash.&A5wDnwO5A7oDpQ-
* LIST (\HasNoChildren) "." Trash.InAIRquality
* LIST (\HasChildren) "." Trash.&A5UDmwOZA5QDlQOa-
* LIST (\HasNoChildren) "." Trash.&A5UDmwOZA5QDlQOa-.InAIRquality
* LIST (\HasNoChildren \UnMarked) "." noa-spam
* LIST (\HasNoChildren \UnMarked) "." &A5UDmgORA5Q-3
* LIST (\HasNoChildren) "." &A6MDoAOVA5EDkQ-
* LIST (\HasNoChildren \UnMarked) "." "AirHelp Claim"
* LIST (\HasNoChildren \UnMarked) "." &A6ADsQPBA7EDwwPEA7EDxAO5A7oDrA-
* LIST (\HasNoChildren \Drafts) "." Drafts
* LIST (\HasChildren \UnMarked) "." GEO
* LIST (\HasChildren \UnMarked) "." GEO.GGO
* LIST (\HasNoChildren \UnMarked) "." "GEO.GGO.EuroGEO 2022"
* LIST (\HasNoChildren \UnMarked) "." "GEO.GGO.GGO MAIL"
* LIST (\HasNoChildren \UnMarked) "." GEO.ExCom
* LIST (\HasNoChildren \UnMarked) "." GEO.UHCO
* LIST (\HasChildren \UnMarked) "." "Grants Active"
* LIST (\HasChildren \UnMarked) "." "Grants Active.European"
* LIST (\HasNoChildren \UnMarked) "." "Grants Active.European.URBAN RELEAF"
* LIST (\HasChildren \UnMarked) "." "Grants Active.European.SMURBS"
* LIST (\HasNoChildren \UnMarked) "." "Grants Active.European.SMURBS.In 
Kind"
* LIST (\HasNoChildren \UnMarked) "." "Grants 
Active.European.SMURBS.Final Reports"

* LIST (\HasNoChildren \UnMarked) "." "Grants Active.European.RI-URBANS"
* LIST (\HasNoChil

Re: Restored mail folders conflict with renamed original ones

2023-02-22 Thread Aki Tuomi
Can you please try

doveadm exec imap -u username_of_the_user
1 LIST "" "*"

and see if it is there?

Aki

> On 22/02/2023 14:28 EET Nikolaos Milas  wrote:
> 
> 
> On 21/2/2023 9:56 π.μ., Aki Tuomi wrote:
> > Can you enable mail_debug=yes, restart, ask the user to access the 
> > folder(s) and provide those logs?
> > 
> 
>  Hi Aki,
>  
>  Thank you for the reply.
> 
> I have done as you requested; I isolated the log lines for the user in 
> question, and I pasted the log here: 
> 
> > https://pastebin.com/vMGyikpA
> > 
> At the end of the txt file you can see a directory listing of the directories 
> associated with the problem.
> It seems to me that the folders in question do not get opened and there is no 
> error message or other log entry about them. They seem as being totally 
> ignored.
>  
>  I remain at your disposal for any additional information you may require.
> 
> I look forward to your feedback.
> (Note: I initially tried to post the log text as an attachment, but it seems 
> it remains blocked due to a message size limit.) 
> 
> Thanks again,
>  Nick
>  
>  
>


Re: Restored mail folders conflict with renamed original ones

2023-02-22 Thread Nikolaos Milas

On 21/2/2023 9:56 π.μ., Aki Tuomi wrote:

Can you enable mail_debug=yes, restart, ask the user to access the 
folder(s) and provide those logs?


Hi Aki,

Thank you for the reply.

I have done as you requested; I isolated the log lines for the user in 
question, and I pasted the log here:


   https://pastebin.com/vMGyikpA

At the end of the txt file you can see a directory listing of the 
directories associated with the problem.


It seems to me that the folders in question do not get opened and there 
is no error message or other log entry about them. They seem as being 
totally ignored.


I remain at your disposal for any additional information you may require.

I look forward to your feedback.

(Note: I initially tried to post the log text as an attachment, but it 
seems it remains blocked due to a message size limit.)


Thanks again,
Nick



Re: Restored mail folders conflict with renamed original ones

2023-02-20 Thread Aki Tuomi


> On 20/02/2023 23:42 EET Nikolaos Milas  wrote:
> 
> 
> Hello,
> 
> We are running Dovecot 2.3.18 (together with Postfix) on CentOS 7. It uses a 
> Maildir structure.
> 
> We have a user who has organized his mailbox as shows up at the end of this 
> mail. The user had forgotten that he had renamed his "Grants Active \ 
> European" (.Grants Active.European) folder to "Grants Active \ International" 
> (.Grants Active.International), he thought that it was lost and requested a 
> restore of "Grants Active \ European" (with all of its subfolders) from 
> backup. 
> 
> Since we did that (using a simple "cp -rp" from a backup, observing 
> timestamps, ownership and permissions), mail client software won't see 
> "European" mail folder in"Grants Active" mail folder; "International" mail 
> folder shows up but only with two folders, those which do not exist in 
> "European" branch (obviously, these were created later). 
> 
> I have tried to run the command "doveadm index -u userx Grants\ Active" and 
> likewise for each and every mail subfolder under "Grants\ Active"; I have 
> also tried deleting the dovecot.index.cache and dovecot.index.log from the 
> latter ("Grants\ Active") and then run: 
> 
> > doveadm -vD force-resync -u userx Grants\ Active
> but it didn't do the trick: Mail clients are still stuck as I explained. 
> 
> In the end, I thought that the snag might be that mail folders that are not 
> appearing have identical (duplicate) UIDs; As an example: 
> 
> > [root@mailx .Grants Active.European]# cat dovecot-uidlist
> >  3 V1548680759 N1 G64e70a1130343f61003c715faa8d
> >  [root@mailx .Grants Active.European]# cd ..
> >  [root@mailx Maildir]# cd .Grants\ Active.International
> >  [root@mailx .Grants Active.International]# cat dovecot-uidlist
> >  3 V1548680759 N1 G64e70a1130343f61003c715faa8d
> > 
> If so, how should we overcome this issue? 
> 
> I guess I could simply delete the restored folders to return to an acceptable 
> state? If nevertheless we need to restore the ".European" mail folder from a 
> backup (as it was before getting renamed), what would be the right way to do 
> so?
> 
> Is there another way to resolve the issue without deleting the restored mail 
> folders?
> 
> Here is the list of mail folders in this mailbox (I have intentionally 
> removed lots of them, to reduce irrelevant content; this mailbox includes a 
> large number of mail folders):
> 

Can you enable mail_debug=yes, restart, ask the user to access the folder(s) 
and provide those logs?

Aki