Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get it work #8

Open
iliesh opened this issue Jan 13, 2018 · 10 comments
Open

Cannot get it work #8

iliesh opened this issue Jan 13, 2018 · 10 comments

Comments

@iliesh
Copy link

iliesh commented Jan 13, 2018

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

@ArtificialOwl
Copy link
Member

the issue might be the '@' in the username

@iliesh
Copy link
Author

iliesh commented Jan 13, 2018

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?

@ArtificialOwl
Copy link
Member

can you try to reach the page with curl ?

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

@iliesh
Copy link
Author

iliesh commented Jan 16, 2018

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

@Olen
Copy link

Olen commented Jan 29, 2018

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

@jtsage
Copy link

jtsage commented Oct 5, 2018

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)

@small1
Copy link

small1 commented Feb 22, 2019

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

@MichaelSmi
Copy link

Push

@ArtificialOwl
Copy link
Member

ArtificialOwl commented Jul 4, 2019

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

  $ php -f NextcloudMailCatcher.php test

@box18box
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants