[GH-ISSUE #37] Deleting emails from web interface fails #24

Closed
opened 2026-02-25 23:39:38 +03:00 by kerem · 5 comments
Owner

Originally created by @t10ss on GitHub (Jan 20, 2022).
Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/37

I suspect it is due to nginx running under nginx user but files being created under root.
What's the fix for that?

Originally created by @t10ss on GitHub (Jan 20, 2022). Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/37 I suspect it is due to nginx running under nginx user but files being created under root. What's the fix for that?
kerem closed this issue 2026-02-25 23:39:38 +03:00
Author
Owner

@jackblk commented on GitHub (Feb 7, 2022):

I'm checking out the project, I use docker run -it -p 25:25 -p 80:80 hascheksolutions/opentrashmail to run the server and I also cannot delete the email. My test email does not have attachment.

Nice project by the way :).

<!-- gh-comment-id:1031246674 --> @jackblk commented on GitHub (Feb 7, 2022): I'm checking out the project, I use `docker run -it -p 25:25 -p 80:80 hascheksolutions/opentrashmail` to run the server and I also cannot delete the email. My test email does not have attachment. Nice project by the way :).
Author
Owner

@jfg commented on GitHub (Mar 23, 2022):

Hello, i have the same issue.
Impossible to delete mail from the client interface.

I use the app from the docker hub.

Thanks

<!-- gh-comment-id:1076566437 --> @jfg commented on GitHub (Mar 23, 2022): Hello, i have the same issue. Impossible to delete mail from the client interface. I use the app from the docker hub. Thanks
Author
Owner

@rlyttle commented on GitHub (May 14, 2022):

This still seems to be happening on master. The delete API request returns 200, but the web interface displays a popup showing Error deleting email: Could not delete email. Permission problem?

API request:
http://2049ad.com:8082/api.php?a=del&email=<EMAIL>@<DOMAIN>&mid=1652515203418&_=1652515026379

Response Status code: 200

Following deleting and clicking OK on the error alert, if I refresh the web page the email has been deleted (but the delete doesn't show in the UI unless I refresh).

[EDIT] Also, great project, thank you!

<!-- gh-comment-id:1126667027 --> @rlyttle commented on GitHub (May 14, 2022): This still seems to be happening on master. The delete API request returns 200, but the web interface displays a popup showing `Error deleting email: Could not delete email. Permission problem?` API request: `http://2049ad.com:8082/api.php?a=del&email=<EMAIL>@<DOMAIN>&mid=1652515203418&_=1652515026379` Response Status code: `200` Following deleting and clicking OK on the error alert, if I refresh the web page the email has been deleted (but the delete doesn't show in the UI unless I refresh). [EDIT] Also, great project, thank you!
Author
Owner

@geek-at commented on GitHub (May 15, 2022):

Oh man I forgot to return the actual return code of the deletion so even if the file was deleted successfully it would says permission problem. So that should be fixed now @rlyttle

<!-- gh-comment-id:1126978436 --> @geek-at commented on GitHub (May 15, 2022): Oh man I forgot to return the actual return code of the deletion so even if the file was deleted successfully it would says permission problem. So that should be fixed now @rlyttle
Author
Owner

@rlyttle commented on GitHub (May 15, 2022):

Many thanks @geek-at !

<!-- gh-comment-id:1126996153 --> @rlyttle commented on GitHub (May 15, 2022): Many thanks @geek-at !
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentrashmail#24
No description provided.