From: Mark Alan <varia@e-healthexpert.org>
To: mlmmj@mlmmj.org
Subject: Re: [mlmmj] ezmlm-like single command to subscribe an user?
Date: Fri, 28 Jan 2011 08:59:48 +0000 [thread overview]
Message-ID: <4d428589.6686d80a.3d41.44ae@mx.google.com> (raw)
In-Reply-To: <4d39f5ea.47f3d80a.0fcc.fffff1c2@mx.google.com>
On Fri, 28 Jan 2011 06:13:50 +0100, Mads Martin Jørgensen <mmj@mmj.dk>
wrote:
> Why all the commandline stuff? I still fail to see what the problem
> with sending an empty mail through the system mail server, where the
> envelope from is set to any.user@example.com.
>
> mlmmj uses the envelope from to determine who sent the subscription
> request.
Changing the envelope, that's what we need to do now in order to make
it work. But that is fundamentally wrong. It is hardly good practice to
let the system itself act as a spammer, i.e., faking 'From:' envelopes.
In the Drupal CMS code that I mentioned in the first post, at the file
sites/all/modules/ezmlm/ezmlm.module,
we REPLACE the original:
// subscribe address for list formatted below
$to = trim($list_name) . '-subscribe-' . trim($user_name) .
'=' . trim($user_domain) . '@' . trim($list_domain);
$lang = language_default();
drupal_mail('ezmlm', 'subscribe', $to, $lang);
FOR this code:
// subscribe address for list formatted below
$to = trim($list_name) . '+subscribe' .'@' . trim($list_domain);
$from = trim($user_name) . '@' . trim($user_domain);
$lang = language_default();
drupal_mail('ezmlm', 'subscribe', $to, $lang, '', $from);
I am not talking of quick fixes "to just make it working for now", I am
talking of fundamentally sound decisions involving best practices.
Why should we have to fake envelopes or, for that matter, have users
that own a mailing list and at the same time need to members of the
web server group and of the mail server group,
if we could have the much simpler and system/application agnostic:
listname+subscribe-some.user=example.com@domain.tld
Regards,
M.
prev parent reply other threads:[~2011-01-28 8:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-21 21:08 [mlmmj] ezmlm-like single command to subscribe an user? Mark Alan
2011-01-27 10:32 ` Ben Schmidt
2011-01-27 17:14 ` Thomas Goirand
2011-01-27 17:22 ` Mads Martin Jørgensen
2011-01-28 5:13 ` Mads Martin Jørgensen
2011-01-28 6:03 ` Ben Schmidt
2011-01-28 8:59 ` Mark Alan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4d428589.6686d80a.3d41.44ae@mx.google.com \
--to=varia@e-healthexpert.org \
--cc=mlmmj@mlmmj.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox