[Cvsnt] Loginfo email using DOS batch files & utilities

Bo Berglund bo.berglund at telia.com
Thu May 2 20:19:25 BST 2002

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.

A while ago I tried getting email to work and I ended up writing a
small Delphi command line application that reads the info, formats an
email and sends it out to selected users.

It is fairly straightforward and the mail format is hard coded in the
program. An example email body is like this:

Bosse (Bo Berglund) has committed a change in module
d:/cvs/manuals\Mats on 4/25/2002 17:57:36

Log Message:
First time checkin in mats module

File list:
File name	Old rev.	New rev.
readme.txt	NONE	1.1

If you are interested I can supply the program.


On Thu, 2 May 2002 17:07:18 +0000 (UTC), Eric Weidl
<weidl at intersites.com> wrote:

>I'm fairly new to CVSNT. Installation went relatively smoothly and most
>everyone is happy.
>Now, people are asking if they can get email notification when a file is
>committed. I know I have to edit the /CVSROOT/loginfo file; no problem.
>I know there are several perl scripts out there to do just this job, but, I
>need to make it work using only DOS batch files and command line utilities.
>I've downloaded and installed BLAT
><http://gepasi.dbs.aber.ac.uk/softw/Blat.html> to handle sending the email
>itself. Blat can take standard input by specifying the "-" parameter
>immediately after the command name.
>I've downloaded and installed David Tribble's cat for DOS
>I created the following "notify_users.bat" file:
>blat - -to weidl at intersites.com -f cvs at intersites.com -s "CVS Test"
>for testing.
>My loginfo has the following entry:
>DEFAULT cat | notify_users.bat
>Whenever I commit a file, I receive an email, but the body is always blank.
>It would seem to me that the standard input isn't directed to Blat (or my
>batch file) properly.
>If I run the batch file from a command line (c:>cat sometempfile.txt |
>notify_users), it works correctly, that is, I receive the contents of
>sometempfile.txt in an email.
>I feel like I must be missing something simple, but I've been trying all
>kinds of alterations with no real difference in the results.
>Any help appreciated.
>Cvsnt mailing list
>Cvsnt at cvsnt.org
>http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs

(Bo Berglund, developer in Sweden)
Cvsnt mailing list
Cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs

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