Evolution complains about "Failed to refresh folder", is this a bug?

I use Evolution for my groupware from several accounts, including my work. At random times, Evolution’s window will display this message ( some details changed out of security concerns, the second line is unchanged ):

Failed to refresh folder “gabriel.pannwitz@example.com : user/a-colleague-of-mine/some-folder-name”.

The reported error was “Error running STATUS: Permission denied”.

My system administrator says that the folder in question has permission “lookup, seen, insert, post”.
Is this behaving as expected? Or, should I file a bug for Evolution?

As a workaround, I tried to unsubscribe from the offending folder, and now I seem to be disconnected from the imap server. This is pretty confusing.

The reported error was “Error running STATUS: Permission denied”.

Hi,

it’s truly an odd error message. STATUS should be just about reading
some folder properties. I suppose you see it (also) whenever you select
the folder in the folder tree.

My system administrator says that the folder in question has
permission “lookup, seen, insert, post

I’m sorry, I do not know what privileges the folder requires. Could you
compare what privileges a working folder has set, please?

I tried to unsubscribe from the offending folder, and now I seem to
be disconnected from the imap server. This is pretty confusing.

Some operations can disconnect from the server, but it’ll reconnect it
as soon as there’s requested anything from the account. Nonetheless,
unsubscribe from a folder should not cause a disconnect. Maybe the
server returned an error, which caused the disconnect. You should be
re-connected when you select a different folder, or when you restart
Evolution process.

By the way, what is your Evolution version, please? It can be copied
from Help->About.

Bye,
Milan

I suppose you see it (also) whenever you select the folder in the folder tree.

Yes, I do see the same error when selecting one of the offending folders.

Could you compare what privileges a working folder has set, please?

My SysAdmin tells me that the permissions on one of my normal folders would be lrswipkxtecda. We are using Cyrus IMAPD, and its permissions are documented here.

Evolution version: 3.44.4-0ubuntu1

I was able to reconnect to the server, after closing another mail client ( Mailspring ), which I guess was trying to connect repeatedly with an old password. This server goes silent after too many incorrect logins, this part is as expected.

Sorry for mixing up the two issues, the “permission denied” one is the one I really care about here. I just wanted to know whether this constitutes bug, or if the error is in how we are using IMAP.

Hi,
okay, according to the documentation you linked the “read” right is
needed to be able to issue the STATUS command, but you claimed the
offending folder has only “lookup, seen, insert, post” rights.

I do not know the nature of the folder, but I’d say a good fix is to
set also the “read” right on it. Or is the folder meant as a write-only
folder?

The libcamel from the evolution-data-server issues the STATUS command
on a folder refresh unconditionally. It’s used to check whether
anything changed in the folder. That can be avoided for the write-only
folders.
Bye,
Milan

Or is the folder meant as a write-only folder?

Yes, this is exactly what is happening here. My SysAdmins have this folder for the whole team to put emails into, that we suspect to be spam. Everyone is supposed to have permission to put emails into it, but only SysAdmins are allowed to see the messages that end up there.

The libcamel from the evolution-data-server issues the STATUS command
on a folder refresh unconditionally. It’s used to check whether
anything changed in the folder. That can be avoided for the write-only
folders.

Is this something that would have to be changed in the Evolution code base? ( So, I would have to raise a feature request on the bug tracker ? ) Or is this something we would have to change on our infrastructure?

Thank you so much for the help, Milan!

    Hi,

as you have intentionally a write-only folder, do open a bug report
against the evolution-data-server, please. A link for it is:

Could you include a snippet of SELECT command down to the failed STATUS
when you select the write-only folder, please? I’d like to see what the
server claims about it. Hide everything private and things you might
not read (encoded strings not readable by humans, which can be
deciphered by machines - even I do not expect any such being in that
part of the log). To get the logging on, run Evolution as:

CAMEL_DEBUG=imapx:io evolution

wait until the output stops adding, then mark the place in the terminal
and then select the offending folder. Everything between “the marked
place” and the end of the terminal output is what I’d like to see.

    Thanks and bye,
    Milan

I opened an issue here.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.