I suggest Karl Fogel's book again (the links below should each be on a single line, 
the mail lists may corrupt this):
http://cvsbook.red-bean.com/cvsbook/cvsbook.html

http://cvsbook.red-bean.com/cvsbook/cvsbook.html#loginfo

http://cvsbook.red-bean.com/cvsbook/cvsbook.html#Commit_Emails

http://cvsbook.red-bean.com/cvsbook/cvsbook.html#Log_Messages_And_Commit_Emails

There is really no limit to the number of lines in the loginfo file, but you should 
check the way and sequence they are executed.
Maybe it is as simple as this:
change the line from:
^MultiV `mutt -s 'Commit Emails from MultiVoIP' [EMAIL PROTECTED]`
to:
MultiV mutt -s 'Commit Emails from MultiVoIP' [EMAIL PROTECTED]
(no ^ leading char and no surrounding `)
Also check on the way to add the files that are affected to the message by using the 
%s specifier. Where it is placed depends on how your program treats arguments, but the 
%s will expand to a list of files to be put in the message body but only for the first 
occurrence on the loginfo line. Like so:

MultiV mutt -s  %s 'Commit Emails from MultiVoIP' [EMAIL PROTECTED]

In this case mutt must put the parameter leading the subject into the body.

/Bo


-----Original Message-----
From: Milan Sengupta [mailto:[EMAIL PROTECTED]]
Sent: den 3 juni 2002 08:13
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; CvsNT
Subject: [cvsgui] Re: [Cvsnt] Loginfo File...
Importance: High


Hi Bo,

Thanks a lot for your help. Well, the 'Mutt' is like a Mail Agent on the Linux
Server. Linux probably uses Sendmail as the default but since configuration of
SendMail is difficult, I switched to 'Mutt'. As you said, was right, that there
are hard-coded email addresses in there because Mutt takes them as arguments and
sends mail to those recipients when a 'Commit' happens on any file in the project
'Mtv02' or in 'MultiV'.

The directory structure is like :

$ ls -l

 CVSROOT
 MultiV
 Mtv02

The MultiV and Mtv02 are projects (seperately IMPORTed) into the Server. The
loginfo file in the CVSROOT directory contains the few lines I had written and
they would work on these projects as soon as the Commit happens on any file.

This works pretty well for Mtv02 but when I add the same for MultiV, it does
not. That's why I was wondering if there were any limitations. I am not sure if
I could make it clear. Was just wondering how I could make the same work for the
other projects also. Any idea.....???

Milan Sengupta.
India.



> Bo Berglund wrote:
>
> I am not aware of any limitation to the number of entries you can have,
> but I think that if you have a list of lines they are scanned one by one until one 
>fits,
> then this is excuted and the decoding stops.
>
> I am not especially good at regular expressions and such so I cannot judge what the 
>two single
> entries you have will actually decode as:
> ^mtv02 `mutt
> and
> ^MultiV `mutt
> I am especially confused about the strange executable you have specified (second 
>item on the line),
> what is this `mutt really??? Is it an executable program on your machine? If not 
>then your problem is right here.
>
> Everything following the second item on a line is considered as command line 
>arguments to the program
> in the second item. I see that you have a lot of hard coded mail addresses here...
>
> Sorry,
> but I don't think I can help any more than this.
>
> /Bo
>
> -----Original Message-----
> From: Milan Sengupta [mailto:[EMAIL PROTECTED]]
> Sent: den 15 maj 2001 08:07
> To: [EMAIL PROTECTED]
> Cc: CvsNT
> Subject: Re: [Cvsnt] Loginfo File...
> Importance: High
>
> Thanks Bo.... Here it is! The problem is that the Module/Project 'MTVP02'
> works fine but I want to add another entry for 'MultiV', that does not work.
> Why is that? Plz. advise!
>
> - Milan.
>
> LOGINFO FILE in /CVSROOT directory....
>
> # The "loginfo" file controls where "cvs commit" log information
> # is sent.  The first entry on a line is a regular expression which must match
> # the directory that the change is being made to, relative to the
> # $CVSROOT.  If a match is found, then the remainder of the line is a filter
> # program that should expect log information on its standard input.
> #
> # If the repository name does not match any of the regular expressions in this
> # file, the "DEFAULT" line is used, if it is specified.
> #
> # If the name ALL appears as a regular expression it is always used
> # in addition to the first matching regex or DEFAULT.
> #
> # You may specify a format string as part of the
> # filter.  The string is composed of a `%' followed
> # by a single format character, or followed by a set of format
> # characters surrounded by `{' and `}' as separators.  The format
> # characters are:
> #
> #   s == file name
> #   V == old version number (pre-checkin)
> #   v == new version number (post-checkin)
> #
> # For example:
> #DEFAULT (echo ""; id; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog
> # or
> #DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog
>
>
> #DEFAULT mail -s %s [EMAIL PROTECTED]
>
>
> #milan CVSROOT/log.pl %s -f CVSROOT/commitlog -m [EMAIL PROTECTED]
> #CVSROOT/log.pl %s -f CVSROOT/commitlog -m [EMAIL PROTECTED]
> #mail -s "Cvs Test 23rd May" milans < milan
> #echo to:[EMAIL PROTECTED] | var/qmail/bin/qmail-inject
> #milans cvsroot/log.pl -f CVSROOT/commitlog
> ^mtv02 `mutt -s 'Commit Mails' [EMAIL PROTECTED] [EMAIL PROTECTED] 
>[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 
>[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 
>[EMAIL PROTECTED] [EMAIL PROTECTED]`
> #
> ^MultiV `mutt -s 'Commit Emails from MultiVoIP' [EMAIL PROTECTED]`
>
>
> Bo Berglund wrote:
>
> > On Fri, 31 May 2002 05:46:09 +0000 (UTC), Milan Sengupta
> > <[EMAIL PROTECTED]> wrote:
> >
> > >--
> > >[ Picked text/plain from multipart/alternative ]
> > >Hi Cvs Experts...
> > >
> > >Is there any restriction on the number of module entries that we can
> > >give in the /CVSROOT/loginfo file to send mails to the Users. It works
> > >for me if I have it for 1 folder/directory but the moment I give the
> > >other, it does not work. Why is that.......???
> > >
> > >Any help would be appreciated!
> > >
> > >Milan.
> > >
> >
> > Give an example how your loginfo file looks like.
> > Don't send it as an attachment, but include it in the body of your
> > message.
> >
> > /Bo
> > (Bo Berglund, developer in Sweden)
> >
> > _______________________________________________
> > Cvsnt mailing list
> > [EMAIL PROTECTED]
> > http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
> >


[Non-text portions of this message have been removed]


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tied to your PC? Cut Loose and
Stay connected with Yahoo! Mobile
http://us.click.yahoo.com/QBCcSD/o1CEAA/sXBHAA/z3wwlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


_______________________________________________
Cvsnt mailing list
[EMAIL PROTECTED]
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt

Reply via email to