[cvsnt] How to invoke internal mailer

Bart S barts2108 at yahoo.co.uk
Mon Dec 15 08:33:44 GMT 2008


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


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:

From: [email]
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]

CVSROOT:     [repository]
Module name: [module]
Changes by:  [user] ([email])
Date:        [date]
On host:     [hostname]

[begin_directory]
Directory: [directory]

[begin_file]
[change_type] [filename]   [tag]   [old_revision] -> [new_revision]   [bugid]
[end_file]
[end_directory]

Log message:
[message]


-------------------

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
substitution.



________________________________
From: Arthur Barrett <arthur.barrett at march-hare.com>
To: Bart S <barts2108 at yahoo.co.uk>; cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
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.

Regards,


Arthur


      


More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook