Cannot get it work
Hi, I cannot get it working. In logs, i'm receiving the following error:
2018-01-13 14:47:26 Catching a new mail 2018-01-13 14:47:26 Generate curl request to https://cloud.mydomain.net/index.php/apps/files_frommail/remote/ with username '[email protected]' 2018-01-13 14:47:26 Content-Length: 22752 (0MB) 2018-01-13 14:47:26 Mail NOT forwarded: Unauthorized access
Opening directly https://cloud.mydomain.net/index.php/apps/files_frommail/remote/ - i'm receiving error:
This page isn’t working If the problem continues, contact the site owner. HTTP ERROR 405
Opening https://cloud.mydomain.net/index.php/apps/files_frommail - works fine. Thank You
NextCloud 12.0.4
the issue might be the '@' in the username
Hi @daita, I tried with another user without '@' symbol in the username - but still receiving the same error (Mail NOT forwarded: Unauthorized access). I just wonder why I'm receiving HTTP ERROR 405 when accessing: https://cloud.mydomain.net/index.php/apps/files_frommail/remote/? I think so, there is actually the problem. What doesn't mean path 'remote' in the link?
can you try to reach the page with curl ?
curl -X PUT https://yourcloud/index.php/apps/files_frommail/remote/
yes, see below: {"message":"Current user is not logged in"}%
I have the same problem. NC 12.0.4. Some debugging shows that it seems to be an http-error 500.
curl -vu username -X PUT https://cloud.server/index.php/apps/files_frommail/remote
This returns an error 500-page, and the server logs shows the same:
host.name - username [29/Jan/2018:09:15:49 +0100] "PUT /index.php/apps/files_frommail/remote/ HTTP/1.1" 500 6287 "-" "curl/7.53.1" "-"
Fwiw, +1 what @Olen said - nextcloud 14.0.1, php 7.2
Web server log shows 500 errors, but there is no extended error logging in either nextcloud or the server error log.
To be fair, for my specific use case, ripmime and croning occ files:scan is probably going to make more sense anyway, but wanted to let you know.
(As a final side note, PUT with authentication gives the error, without it kicks back the json that @iliesh posted)
Tried to make some sense out of it. But got as far as the server throws an error 500 when logging in. On nextcloud 15.0.4
Push
new version has been released, you can now have some feedback by adding test when manually running the command:
$ php -f NextcloudMailCatcher.php test
Hi This is telling me OK (php -f NextcloudMailCatcher.php test) But in Nextcloud 18 I have: Now: Module 'mailparse' already loaded at Unknown#0 (after I compile)
Between : PHP Startup: mailparse: Unable to initialize module Module compiled with module API=20190902 PHP compiled with module API=20180731 These options need to match at Unknown#0
In the beginnig: PHP Startup: Unable to load dynamic library 'mailparse' (tried: /usr/lib/php/20180731/mailparse (/usr/lib/php/20180731/mailparse: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/mailparse.so (/usr/lib/php/20180731/mailparse.so: undefined symbol: mbfl_convert_filter_flush)) at Unknown#0