Author Topic: Problem with IMAP folder without read access rights  (Read 8686 times)

doctorow

  • Jr. Member
  • **
  • Posts: 87
Problem with IMAP folder without read access rights
« on: November 29, 2012, 06:50:26 pm »
We have implemented a shared IMAP folder in our mail server (running Cyrus-Imapd) where all users can move undetected spam to. This folder is used to train our spam filter.

The shared folder is configured in such a way that every user has list and insert access rights, meaning every user can see that the folder exists and has the right to copy mails into that folder. Notably, users do not have the r right, which would allow them to list all messages (including from other users who dropped mail in there), read the messages, search in the messages, and copy messages from the folder.

In Aqua Mail, I defined this folder to be our spam folder. But when I move a spam mail to this shared folder, Aqua Mail would complain with "Error synchronizing mail: Mail folder is missing on the server". Worse, it appears it would periodically try to move the mail to this folder, leading to a lot of duplicate copies in that folder (see attached screenshot) and leaving the original spam mail in the inbox.

K9/Kaiten doesn't exhibit this issue. To solve this issue, Aqua Mail could fine grain its permission checking on folders. In order to move a mail to a folder, a client doesn't need read access rights. The same applies to checking the existence of a folder. Just because a client doesn't have read access to a folder doesn't imply that the folder is missing.

Cheers

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Problem with IMAP folder without read access rights
« Reply #1 on: November 30, 2012, 02:22:01 am »
Which app version is this?

Does the server support UIDPLUS?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

doctorow

  • Jr. Member
  • **
  • Posts: 87
Re: Problem with IMAP folder without read access rights
« Reply #2 on: November 30, 2012, 03:45:21 am »
Latest Google market version (1.2.0.4 Pro).

Server does support UIDPLUS:

Quote
telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
* OK postfach Cyrus IMAP4 v2.2.13-Debian-2.2.13-19+squeeze3 server ready
C01 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE STARTTLS AUTH=CRAM-MD5 AUTH=DIGEST-MD5 SASL-IR
C01 OK Completed

Would a debug log file be helpful?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Problem with IMAP folder without read access rights
« Reply #3 on: December 01, 2012, 12:01:48 am »
Yes, a debug log would help -- from 1.2.0.4 and if the issue persists, from 1.2.0.5 which I'm about to release. Please send it to kmansoft / at sign / gmail / dot com.

On this and the other issue (message list jumping when you a star a message past the first page of messages) --

-- I can work with you to try and resolve them outside the release cycle. If you're interested, please contact me.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

doctorow

  • Jr. Member
  • **
  • Posts: 87
Re: Problem with IMAP folder without read access rights
« Reply #4 on: December 01, 2012, 12:19:59 am »
Will do as soon as possible.

Cheers