-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mitch Planck wrote:
> Hi all,
> I've been working on implementing the
send-reminder-digests.pl and I've
> been running some tests of the script trying to get it
to send the email
> but can't get it to. I've modified the sql query so
that it will only
> return my email address until I get it set up the way I
like:
>
> SELECT maia_users.id, users.email
> FROM maia_users, users
> WHERE users.email = 'mitch ias.net'
> AND maia_users.quarantine_digest_interval
> 0
> ORDER BY maia_users.id ASC;
>
> Running that in mySQL returns my id and email instead
of the list of all
> the email addresses, so that seems to be what I want.
When I run the
> script (as my amavis user or as root) nothing happens.
Your query doesn't specify how the 'users' and 'maia_users'
table should
be linked. You're basically missing an 'AND' clause in
there, such as:
AND users.maia_user_id = maia_users.id
That should get you what you're looking for.
- --
Robert LeBlanc <rjl renaissoft.com>
Renaissoft, Inc.
Maia Mailguard <http://www.maiamail
guard.com/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFbHbMGmqOER2NHewRAmWcAJ9NjeOvSi3tnIRsFfz29GE4yQ38gACf
aW7d
d4CxrfjEyPiekyW6Y5GWOeI=
=ZGdt
-----END PGP SIGNATURE-----
_______________________________________________
Maia-users mailing list
Maia-users renaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
|