Open KlausdB opened 6 years ago
Insert your horde IMAP log here
Your report is missing a crucial info.
Edit: Ok, I found some instructions here: https://libraries.io/github/nextcloud/mail but not sure if it is still relevant - entered the code in config/config.php but no logs appear.
@ChristophWurst I can't find a horde IMAP log on my system (checked nextcloud/data/ and everywhere else);
the link to instructions for that in the issue template just goes back the main page, I can't see/find an anchor #debug-mode with instructions to enable it on there;
I assume there is a loglevel switch entry somewhere, but can't find it;
my install is on NethServer with NextCloud integrated.
Sorry, looks like our issue template is outdate. Simple enable debug mode and those imap (and smtp) logs will be generated.
OK, Got that now and inserted imap log into the original post. Thanks.
☑️ Folder list
C: 3 LIST "" S: LIST (\HasNoChildren) "." "INBOX.Drafts" S: LIST (\HasNoChildren) "." "INBOX.Deleted Items" S: LIST (\HasNoChildren) "." "INBOX.Sent Items" S: * LIST (\Unmarked \HasChildren) "." "INBOX"
💥 Copying the message to the Trash
folder
C: 5 UID COPY 1 Trash S: 5 NO Error in IMAP command received by server.
-> this obviously fails as there is no Trash
folder.
This either means
I can confirm creating a /.Trash folder structure resolved the delete issue - the default on that server is /.Deleted Items. Therefore assume the client is not creating its required/expected folder structure;
In a similar light, the existence of /.INBOX, .subscriptions and .customflags - created by another IMAP client - stopped the creation/loading of the account. Removed those and all worked as expected. I assume if another client connects and creates those again, the account will fail to load.
In a similar light, the existence of /.INBOX, .subscriptions and .customflags - created by another IMAP client - stopped the creation/loading of the account. Removed those and all worked as expected. I assume if another client connects and creates those again, the account will fail to load.
Sounds similar to https://github.com/nextcloud/mail/blob/0961f1d6ba820881a52520ee66ce6674a7894d6e/lib/Service/FolderMapper.php#L53 - mailboxes that should be ignored
Yes, indeed. With access to the mail server it was simple enough to just remove those files - don't know which client created them (back in 2007!). At this stage just handy to know what causes the issue.
Auto creation of 'Trash' folder if not exists would be handy.
Another issue I found here:
If .INBOX.Trash exists, deletion of messages fails, with this in the log:
C: 4 STATUS INBOX.INBOX (MESSAGES) S: 4 NO Mailbox does not exist, or must be subscribed to.
In this case, .INBOX did not exist, just .INBOX.Trash. Apparently it tried to use this as the deletion folder?
could you try and see if this still happens?
Still occurring. Created a clean mailbox on Courier based server; Mail 1.11.1 is unable to create the Trash mailbox.
@SebastianKrupinski is this the setup issue you experienced as well? We might want to redo https://github.com/nextcloud/mail/pull/9552 as PR (not master push)
@ChristophWurst No this is a different issue, looks like the initial connection/sync is NOT mapping the folders correctly. The issue I experienced was the initial sync failing because it was trying to access a folder that was NOT selectable.
Steps to reproduce
Actual behaviour
When attempting to setup an email account (on Courier-based Server):
If the account has already been used by another mail client, Setup fails with message: "Error while loading the Selected Account" and no folders are visible or accessible;
If an account on that Server has not been used before by any other client, it will connect and display as expected, however, will not allow deletion of emails with message: "Error while deleting message.
Setting up other accounts on different mail servers works without issue.
Mail app
**Mail app version: 0.7.9
**Mailserver or service: standard ISP using Courier/Postfix
**Transport security - IMAP: None, SSL, TLS, STARTTLS all tried.
**Transport security - SMTP: None, SSL, TLS, STARTTLS all tried
**Number of accounts: 2
Mail app version build date: (only if you are using a Nightly Build)
Server configuration
Operating system: Linux 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64
Webserver: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 (fpm-fcgi)
Database: mysql 5.5.56
PHP version: 5.6.25 Modules loaded: Core, date, ereg, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, cgi-fcgi, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, intl, ldap, exif, mysqlnd, PDO, Phar, posix, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlwriter, xsl, zip, mysql, mysqli, pdo_mysql, pdo_sqlite, wddx, xmlreader, json, smbclient, mhash, libsmbclient
Nextcloud version: 12.0.4 - 12.0.4.3
Updated from an older version or fresh install: Fresh
List of activated apps: Enabled:
The content of config/config.php:
Client configuration
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Operating system:Win10 x64
Logs
Web server error log
Server log (data/nextcloud.log)
Horde IMAP log (data/horde_imap.log)
Horde SMTP log (data/horde_smtp.log)
Browser log