files_frommail icon indicating copy to clipboard operation
files_frommail copied to clipboard

Cannot get it work

Open iliesh opened this issue 8 years ago • 10 comments

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

iliesh avatar Jan 13 '18 14:01 iliesh

the issue might be the '@' in the username

ArtificialOwl avatar Jan 13 '18 18:01 ArtificialOwl

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?

iliesh avatar Jan 13 '18 23:01 iliesh

can you try to reach the page with curl ?

curl -X PUT https://yourcloud/index.php/apps/files_frommail/remote/

ArtificialOwl avatar Jan 16 '18 13:01 ArtificialOwl

yes, see below: {"message":"Current user is not logged in"}%

iliesh avatar Jan 16 '18 13:01 iliesh

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" "-"

Olen avatar Jan 29 '18 08:01 Olen

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)

jtsage avatar Oct 05 '18 16:10 jtsage

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

small1 avatar Feb 22 '19 11:02 small1

Push

MichaelSmi avatar Mar 27 '19 10:03 MichaelSmi

new version has been released, you can now have some feedback by adding test when manually running the command:

  $ php -f NextcloudMailCatcher.php test

ArtificialOwl avatar Jul 04 '19 00:07 ArtificialOwl

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

box18box avatar Apr 27 '20 16:04 box18box