The Courier mailing list manager
List all subscribed users:
couriermlm lsub /var/list/news\@somedomain.net
Count subscriptions:
couriermlm lsub /var/list/news\@somedomain.net| wc -l
Export:
couriermlm exports to a textfile: one address per line, subscription infos, followed by a line which contains a single dot for separation
couriermlm export /var/list/news\@somedomain.net/ > export_subscibers
Import:
couriermlm expects a nasty text file format for import: one address per line, separated by a line containing just a single dot.
couriermlm import /var/list/news\@somedomain.net/ < export_subscibers
Converter script, which reads a textfile containing one address per line, roughly checks the addresses and outputs couriermlm import format:
Links: