Initial commit: bulk-link mail accounts via occ

Wrapper script around `occ mail:account:create` to bulk-link IMAP/SMTP
accounts for multiple Nextcloud users from a CSV file. Includes README
with usage, limitations (no connection test, no initial sync), and
.gitignore that blocks real credential CSVs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Rikdekker
2026-05-27 07:55:56 +02:00
commit 74733b36b7
4 changed files with 217 additions and 0 deletions

4
accounts.example.csv Normal file
View File

@@ -0,0 +1,4 @@
userId,name,email,imapHost,imapPort,imapSsl,imapUser,imapPass,smtpHost,smtpPort,smtpSsl,smtpUser,smtpPass
alice,Werk,alice@voorbeeld.nl,imap.voorbeeld.nl,993,ssl,alice@voorbeeld.nl,geheim1,smtp.voorbeeld.nl,587,tls,alice@voorbeeld.nl,geheim1
bob,Werk,bob@voorbeeld.nl,imap.voorbeeld.nl,993,ssl,bob@voorbeeld.nl,geheim2,smtp.voorbeeld.nl,587,tls,bob@voorbeeld.nl,geheim2
# carol,Vakantie,carol@voorbeeld.nl,imap.voorbeeld.nl,993,ssl,carol@voorbeeld.nl,geheim3,smtp.voorbeeld.nl,587,tls,carol@voorbeeld.nl,geheim3
1 userId name email imapHost imapPort imapSsl imapUser imapPass smtpHost smtpPort smtpSsl smtpUser smtpPass
2 alice Werk alice@voorbeeld.nl imap.voorbeeld.nl 993 ssl alice@voorbeeld.nl geheim1 smtp.voorbeeld.nl 587 tls alice@voorbeeld.nl geheim1
3 bob Werk bob@voorbeeld.nl imap.voorbeeld.nl 993 ssl bob@voorbeeld.nl geheim2 smtp.voorbeeld.nl 587 tls bob@voorbeeld.nl geheim2
4 # carol Vakantie carol@voorbeeld.nl imap.voorbeeld.nl 993 ssl carol@voorbeeld.nl geheim3 smtp.voorbeeld.nl 587 tls carol@voorbeeld.nl geheim3