On May 7, 2007, at 6:35 PM, Zack wrote: >
Thanks brother! I can't wait to test it out - you really helped me
out big time! I love dada and what to use all the features of it with my
existing scripts I'm good at incorporating my scripts into other scripts
but not ones that weren't written by me Still have to work on learning that Again, I appreciate it a lot!!
There's also the example script on sending a list message using Dada
Mail, by piping to a simple script called, "send_dada_mail
pl"
It's
in the alpha version of Dada Mail right now, but should work with
2
10
13/2
10
14 no problem
You can grab it here:
http://mojomail
cvs
sourceforge
net/*checkout*/mojomail/
dada_mail_stable/dada/extensions/send_dada_mail pl? pathrev=dada_mail_2_11-features_branch
Here is the docs for it:
[docs]
NAME
send_dada_mail
pl - a small extension that allows you to send a
mailing
list message out from the command line
VERSION
Refer to the version of Dada Mail you're using - NEVER use a
version of
this proggy with an earlier or later version of Dada Mail
Saying that, this extension is a work in progress, and probably
breaks all over the place
USAGE
This program is supposed to be used similar to how the sendmail
utility
is to be used - although it's not (in no way, shape or form) a
sendmail
command replacement
No
Anyways, you can use it via the command line by calling it up:
prompt:] /home/account/cgi-bin/dada/extensions/
send_dada_mail pl --list mylist
And type out your message:
Subject: This is my subject!
This is my message!
-- Justin
^D
The, message part of this should be a full on email message,
headers and
all
As the above example shows, you can just place in the
headers you'd
like to have and any missing fields will be filled in
intelligently for
you
One header I'd make sure to put in is the Subject: header
Skip two new lines and start entering your actual message
Like the sendmail command, it's real use is when you call it in
another script In Perl, that would look like this:
#!/usr/bin/perl
open( DADA, "|/home/youraccount/cgi-bin/dada/extensions/
send_dada_mail pl --list mylist") or die $!; print DADA "Subject: This is my subject!\n\n"; print DADA "This is my message!\n\n"; print DADA "-- Justin"; close DADA or die $!;
REQUIRED ARGUMENTS
As you'll notice from these examples, the, --list flag is being
passed,
and the paramater is set to a valid list short name
If this paramater is missing, or the list short name is not
valid the
script will exit with an "exit" status of, 1 and you won't be
sending
anything
OPTIONS Currently, the only flag that's accepted is the --list flag
DIAGNOSTICS
CONFIGURATION AND ENVIRONMENT
You probably want to set the explict paths to your Dada Mail
libraries
For example, if your Dada Mail installation is at:
/home/account/cgi-bin/dada
Your Dada Mail libraries would be at:
/home/account/cgi-bin/dada
and:
/home/account/cgi-bin/dada/DADA/perllib
The following lines on top of this script would be changed from:
use lib qw(
/
/DADA
/DADA/perllib
);
to:
use lib qw(
/
/DADA
/DADA/perllib
/home/account/cgi-bin/dada
/home/account/cgi-bin/dada/DADA/perllib
);
DEPENDENCIES
This script is currently being shipped in the 2
11 alpha
versions of
Dada Mail, but there's no reason why it wouldn't work for the
2
10
14
releases of Dada Mail either
CAVEATS
Currently, there's not much security in this script - only the
check for
a valid list short name
Normally, you'd have to either log into
the
List Control Panel to send a message out, which requires a
password, or,
use the dada_bridge
pl plugin, which has it's own slew of checks
Because of that, I'd only use this script where you're mighty
sure that
abuse will not happen (ha
)
Abuse of this extension is quite
possible
and very easy, as you're giving the option of any program to
send to any
Dada Mail-administrated list as much as it would like
You see
where I'm
going here with this
OK? Ok
Future versions will most likely have some semblance of security
and feedback (general) about this extension is more than welcome
INCOMPATIBILITIES BUGS AND LIMITATIONS Please, let me know if you find any bugs
AUTHOR Justin Simoni
See: http://mojo
skazat
com/contact
LICENCE AND COPYRIGHT Copyright (c) 2007 Justin Simoni All rights reserved
This program is free software; you can redistribute it and/or
modify it
under the terms of the GNU General Public License as published
by the
Free Software Foundation; either version 2 of the License, or
(at your
option) any later version
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
See the GNU
General Public License for more details
You should have received a copy of the GNU General Public
License along
with this program; if not, write to the Free Software
Foundation, Inc
,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
[/docs]
Start a new thread, email: dadadev@dadamailproject.com
This is the developer discussion mailing list for Dada Mail.
If you are just looking for support Dada Mail, consult the message boards at:
https://forum.dadamailproject.com
Documentation for Dada Mail:
Specifically, see the Error FAQ:
https://dadamailproject.com/d/FAQ-errors.pod.html
To post to this list, send a message to:
mailto:dadadev@dadamailproject.com
All subscribers of this list may post to the list itself.
Topics that are welcome:
Dada Mail is on Github:
https://github.com/justingit/dada-mail/
If you would like to fork, branch, send over PRs, open up issues, etc.
This Privacy Policy is for this mailing list, and this mailing list only.
Email addresses collection through this mailing list are used explicitly to work within this email discussion list.
We only collect email addresses through our Closed-Loop Opt-In system.
We don't use your email address for any other purpose.
We won't be sharing your email address with any other entity.
Unsubscription can be done at any time. Please contact us at: justin@dadamailproject.com for any help regarding your subscription, including removal from the mailing list.
All mailing list messages sent from us will include a subscription removal link, which will allow you to remove yourself from this mailing list automatically, and permanently.
All consent to use your email address for any other purpose stated at the time of the mailing list subscription will also be revoked upon mailing list removal.