Hey, is it possible to export the mail-adresses from all mails in an folder as csv?
is there an add onn or so to do this automatically?
1 Like
AFAIK you can import but you cannot export
https://docs.nethserver.org/en/v7/accounts.html#import-users-section
Please could explain us your use case instead of the solution you want to go
I didn’t find a plugin but it can be done on command line.
This example outputs all mail addresses used in the mails of folder test in the inbox of <MAILUSER>
to the file textfile.csv
:
grep -EiIorh '([[:alnum:]_.-]+@[[:alnum:]_.-]+?\.[[:alpha:].]{2,6})' "$@" /var/lib/nethserver/vmail/<MAILUSER>/Maildir/.INBOX.test | sort | uniq > textfile.csv
(Source)
1 Like