Skip to content

Conversation

@SebastianKrupinski
Copy link
Contributor

Summary

  • Added command to list mail accounts

Usage

List for single user
occ mail:account:list 'user name'

List for all users
occ mail:account:list --all

List with full details
occ mail:account:list --all --full

Output

List all users
image

List single user
image

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the exception of a list all accounts on the system this duplicates https://github.com/nextcloud/mail/blob/main/lib/Command/ExportAccount.php more or less

@SebastianKrupinski
Copy link
Contributor Author

SebastianKrupinski commented Dec 2, 2025

With the exception of a list all accounts on the system this duplicates main/lib/Command/ExportAccount.php more or less

Yeah I agree, I didn't realize the export command displayed the information. We can kill it, I didn't spent that much time on it... or we can also add the ability to search for specific values, which might be handy... Like list account that not using SSL, or using specific ports... etc... it wouldn't be much effort

@ChristophWurst
Copy link
Member

For these specific queries one can always resort to the database. I don't think it's worth developing and maintaining a command for this.

@github-project-automation github-project-automation bot moved this from 🏗️ In progress to ☑️ Done in 💌 📅 👥 Groupware team Dec 3, 2025
@SebastianKrupinski
Copy link
Contributor Author

Okay, no problem

@ChristophWurst ChristophWurst deleted the feat/mail-account-list-command branch December 3, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

3 participants