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

oc_mail_messages and oc_mail_recipients not cleared after deleting mail account from app #10333

Open
github3845 opened this issue Nov 10, 2024 · 1 comment

Comments

@github3845
Copy link

github3845 commented Nov 10, 2024

Steps to reproduce

  1. Install mail app
  2. Add email account and read some mails
  3. Delete email account
  4. dump database and search for emails

Expected behavior

The emails are supposed to be deleted from the database once I delete the mail account. I set up a cron job every 5 minutes and did not configure a window thing, so 5 minutes after deleting the mail account from the app, there should not be a trace of it left in the nextcloud database.

Actual behavior

The emails remain in the database after the mail account was deleted from the app.

Mail app version

4.0.2

Nextcloud version

30.0.2

Mailserver or service

imap server

Operating system

Ubuntu 24.04

PHP engine version

PHP 8.3

Nextcloud memory caching

No response

Web server

Nginx

Database

MySQL

Additional info

The emails also remain in the database when the app is uninstalled.

@kesselb
Copy link
Contributor

kesselb commented Nov 11, 2024

The background job to remove stale data runs once per 24 hours: https://github.com/nextcloud/mail/blob/main/lib/BackgroundJob/CleanupJob.php

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

No branches or pull requests

2 participants