Re: [Courier-imap] NO Unable to open this mailbox.
Brought to you by:
mrsam
|
From: E.S. R. <es-...@ro...> - 2025-02-24 10:01:47
|
<!DOCTYPE html>
<html style="direction: ltr;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style id="bidiui-paragraph-margins" type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true"
bidimailui-detected-decoding-type="UTF-8">
<div class="moz-cite-prefix">On 23.2.2025 23:47, Sam Varshavchik
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:con...@ri...">E.S.
Rosenberg via Courier-imap writes:
<br>
<br>
<blockquote type="cite">
<br>
Thanks I hope you can make more of these errors than me...
<br>
<br>
Attached the log, am excerpt:
<br>
<br>
<br>
WRITE: 29 OK LSUB completed
<br>
READ: NUMBER: 30
<br>
READ: ATOM: LIST
<br>
READ: QUOTED_STRING:
<br>
READ: QUOTED_STRING: INBOX
<br>
READ: EOL
<br>
WRITE: * LIST (\Marked \HasChildren) "." "INBOX"
<br>
30 OK LIST completed
<br>
WRITE: 15 OK LOGIN Ok.
<br>
READ: NUMBER: 16
<br>
READ: ATOM: CAPABILITY
<br>
READ: EOL
<br>
WRITE: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE
AUTH=PLAIN ACL ACL2=UNION ENABLE UTF8=ACCEPT
<br>
16 OK CAPABILITY completed
<br>
READ: NUMBER: 17
<br>
READ: ATOM: ENABLE
<br>
READ: ATOM: UTF8=ACCEPT
<br>
READ: EOL
<br>
WRITE: * ENABLED UTF8=ACCEPT
<br>
17 OK Options enabled
<br>
READ: NUMBER: 18
<br>
READ: ATOM: SELECT
<br>
READ: QUOTED_STRING: INBOX
<br>
READ: EOL
<br>
WRITE: 18 NO Unable to open this mailbox.
<br>
</blockquote>
<br>
There's nothing in the IMAP command log that points to an issue.
But it does show that the server did log in and cd to the
appropriate directory, and the error is in response to an actual
attempt to read the mailbox, so this is back to a filesystem
permissions issue.
<br>
<br>
As a measure of last resort, strace the IMAP process. Find the pid
of the process that's listening on the IMAP port, port 143 (fuser
-n tcp 143). If using imaps that's port 993. Then, attach strace
to the process:
<br>
<br>
strace -s 256 -f -o /tmp/strace.log -p {pid}
<br>
<br>
You'll need to manually CTRL-C this after a failed login attempt,
to stop it. This is likely to create a large log file, but you can
grep for the error message, and then inspect what the process was
doing just before emitting the error.
<br>
</blockquote>
<p>Hey Sam,</p>
<p>Thanks for walking me through the process!</p>
<p><br>
</p>
<p>My Maildirs were missing a tmp folder so Courier could not create
lock files, sadly it would seem that all the metadata of which
messages were read and which replies belong to what was lost in
the data recovery :(</p>
<p><br>
</p>
<p><font face="monospace">newfstatat(AT_FDCWD,
"./tmp/1740389784.M121381P4014_courierlock.mail-test",
0x7ffccfb0fa40, 0) = -1 ENOENT (No such file or directory)<br>
openat(AT_FDCWD,
"./tmp/1740389784.M121381P4014_courierlock.mail-test",
O_RDWR|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = -1 ENOENT (No such
file or directory)<br>
write(1, "a NO Unable to open this mailbox"..., 35) = 35</font><br>
<br>
</p>
<p>For future reference from what I understand each Maildir folder
and child has 'new' 'cur' and 'tmp' folders.</p>
<p>As well as 'courierimapkeywords/' 'courierimapsubscribed'
'courierimapuiddb'</p>
<p><br>
</p>
<p>To some extent automatic creation of a ./tmp/ folder would seem
to me to be logical instead of that being a fatal error, but I
highly doubt that I have the full picture.</p>
<p><br>
</p>
<p>Thanks for all the help and Guido best of luck with the FreeBSD
issue (sorry I can't help more)!</p>
<p>Eliyahu - אליהו<br>
</p>
<blockquote type="cite"
cite="mid:con...@ri...">
<br>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________
Courier-imap mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cou...@li...">Cou...@li...</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/courier-imap">https://lists.sourceforge.net/lists/listinfo/courier-imap</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>
|