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: [email protected]            <<---- 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 
[email protected] is my email
(note that I do not put my company email here to prevent from spamming)

35bsw:[email protected]

the [to_user] in the CC field expands to....

[email protected] 

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 <[email protected]>
To: Bart S <[email protected]>; [email protected]
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


      
_______________________________________________
cvsnt mailing list
[email protected]
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt

Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/

Reply via email to