Simple admin utilities to be run by Deno.
mdgrp
- Convert a MDaemon mailing list file to CSV.mdsend
- Queue a new message in MDaemon's raw queue.
WIP
Mdaemon
mailing lists are stored in *.grp
files.
Run the Deno install command:
C:\Users\Administrator>deno install --allow-env --allow-read --allow-write https://raw.githubusercontent.com/ealib/mdaemon-utilities/master/src/mdgrp.ts
Remember to (permanently) add the path where Deno install scripts to
to PATH
:
C:\Users\Administrator>set PATH=%PATH%;C:\Users\Administrator\.deno\bin
Assume MDaemon is installed in C:\MDaemon
.
Run the installed command mdgrp
passing the *.grp
file as argument:
C:\>mdgrp convert --from C:\MDaemon\App\[email protected] --to [email protected]
to generate .\[email protected]
:
ADDRESS | DESCRIPTION | NORMAL | RECEIVE ONLY | SEND ONLY |
---|---|---|---|---|
[email protected] | John B. Smith | x | ||
[email protected] | Amelia J. Jones | x | ||
[email protected] | George T. Williams | x | ||
[email protected] | Olivia A. Taylor | x | ||
[email protected] | Emily J. Wright | x |
Process MDaemon mailing list files (*.grp).
Version 1.1.1
Usage:
mdgrp convert --from=<source_grp> --to=<target_file> [--debug]
mdgrp backup --app-dir=<app_dir> --backup-dir=<backup_dir> [--overwrite] [--debug]
mdgrp restore --backup-dir=<backup_dir> --app-dir=<app_dir> [--overwrite] [--debug]
mdgrp -h | --help
mdgrp --version
Options:
-h --help Show this screen.
--version Show version.
-f --from=<source_grp> Source *.grp file.
-t --to=<target_file> Target file (*.txt, or *.csv).
--app-dir=<app_dir> MDaemon "App" directory.
--backup-dir=<backup_dir> Backup directory.
--overwrite Overwrite output files.
--debug Run in debug mode.```
WIP
Mdaemon raw messages are a job specification for the queue system. Queue system will take the job, process it and, if correct, queue a real e-mail message in one or more message queue(s) for delivery.
Run the Deno install command:
C:\Users\Administrator>deno install --allow-env --allow-write https://raw.githubusercontent.com/ealib/mdaemon-utilities/master/src/mdsend.ts
Remember to (permanently) add the path where Deno install scripts to
to PATH
:
C:\Users\Administrator>set PATH=%PATH%;C:\Users\Administrator\.deno\bin
Queue a new message in MDaemon's raw queue.
Version 1.0.0
Usage:
mdsend --subject <text> --from=<address> --to=<address> [--cc=<address>] [--bcc=<address>] [--debug]
mdsend -h | --help
mdsend --version
Options:
-h --help Show this screen.
--version Show version.
-s --subject=<text> Subject of the message.
-f --from=<address> Sender of the message.
-t --to=<address> Recipient(s).
--cc=<address> Cc(s).
--bcc=<address> Bcc(s)
--debug Run in debug mode.
Copyright © 2021 Emanuele Aliberti
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.