[cvsnt] How to invoke internal mailer
barts2108 at yahoo.co.uk
Mon Dec 15 08:33:44 GMT 2008
I have tested the situation again
my CVSNT version is 2.5.03 (Scorpio) Build 2382
1: Notify file is empty. This confirmed that the internal mailer is invoked
2: Notify_email contains DEFAULT mail_tpl_01
3: mail_tpl_01 containst the following:
To: my-email at invalid.com <<---- I have my company email in here
Cc: [to_user] <<---- the to_user keyword
Subject: CVS Commit to [module]
Module name: [module]
Changes by: [user] ([email])
On host: [hostname]
[change_type] [filename] [tag] [old_revision] -> [new_revision] [bugid]
Now I do receive an email and I get an SMTP error.
The email I get was sent to the TO address containing my own hardcoded email address.
4: In the users file I have the following line as 35bsw is my username and my-email at invalid.com is my email
(note that I do not put my company email here to prevent from spamming)
35bsw:my-email at invalid.com
the [to_user] in the CC field expands to....
35bsw at invalid.com
Expected result for the to_user field was that the email for user 35bsw was looked up and
the email of the user was used to replace the [to_user] field.
Seems that there is some mismatch in using the users file, the default domain and the keyword
From: Arthur Barrett <arthur.barrett at march-hare.com>
To: Bart S <barts2108 at yahoo.co.uk>; cvsnt at cvsnt.org
Sent: Sunday, 14 December, 2008 23:52:59
Subject: RE: [cvsnt] How to invoke internal mailer
> As far as I remember I *had* to add a line in the notify file
> like ALL mail %s To get the internal mailer kicked off...
> but that's what I need to retest now
If you mean the CVSROOT/notify_email file and if your template is named
'CVSROOT/mail' then yes - as per the documentation, if you mean
CVSROOT/notify then no that is not needed for the e-mail trigger.
CVSROOT/notify is used for older style integrations like CVSMailer.
Whilst the 'API' CVSMailer uses is quite old it is apparently quite a
comprehensive package, we never intended the e-mail trigger to be a
replacement for CVSMailer - more to provide a 'simpler' (and cross
platform) way to get e-mail running quickly and to provide a 'template'
for other people to contribute enhancements to.
More information about the cvsnt