From oliver.musco at gmx.net Thu Nov 10 11:22:23 2005 From: oliver.musco at gmx.net (Oliver Musco) Date: Thu Nov 10 11:23:38 2005 Subject: [cvsspam-devel] notification emails from "user@localhost" Message-ID: <22475.1131621743@www81.gmx.net> Hi, first: I love CVSSpam :)) ok, my problem - I get notification emails always from "user@localhost", I would like to have the format: user@company.com - what must I change? here is my config: notify: ALL (cat) |mail %s -s "[CVS %r] notify" loginfo: ALL /usr/bin/collect_diffs.rb --from $USER --to oliver.musco@gmx.net %{sVv} commitinfo: ALL /usr/bin/record_lastdir.rb %r/%p %s users: oliver.musco:oliver.musco@gmx.net the email that arrive comes from: "oliver.musco@localhost" and not from "oliver.musco@gmx.net" which is in the "users"-file. any ideas? Regards, Oliver -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner From dave at badgers-in-foil.co.uk Wed Nov 16 12:31:54 2005 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Wed Nov 16 12:32:06 2005 Subject: [cvsspam-devel] Feature requests In-Reply-To: <72B05D2430A134479CE88C7C4BF750B3D59B5E@RNT-BOZ-0201.corp.rightnow.com> References: <72B05D2430A134479CE88C7C4BF750B3D59B5E@RNT-BOZ-0201.corp.rightnow.com> Message-ID: <20051116123153.GB31439@badgers-in-foil.co.uk> Sorry for the delay in replying -- I've been busy with moving house lately. On Mon, Oct 31, 2005 at 11:37:47AM -0700, McCullough, Ryan wrote: > I have 2 feature requests for cvsspam. > > 1) the Subject is currently formatted as [CVS ]. It would be > nice if there was an option for the common directory prefix to be in the > subject. Like '[CVS ]'. Customisable subject formatting is on the TODO list; I just haven't got around to it. Sorry! > 2) When using a frontend like cvsweb, the files should be able to be > linked. Right now there are 3 links. 1 to the previous version, 1 to the > current version and 1 to diff the 2. The file itself should be linked to > the cvs log page for cvsweb: > http:///cgi-bin/cvsweb.cgi/repo// How about the attached patch? Any good? dave -- http://david.holroyd.me.uk/ -------------- next part -------------- Index: cvsspam.rb =================================================================== --- cvsspam.rb (revision 229) +++ cvsspam.rb (working copy) @@ -671,6 +671,12 @@ def diff(file) '->' end + + # may be overridden by subclasses that are able to make a hyperlink to a + # history log for a file + def log(file) + '' + end end # Superclass for objects that can link to CVS frontends on the web (ViewCVS, @@ -711,6 +717,14 @@ "#{super(file)}" end + def log(file) + link = log_url(file) + if link + return "(log)" + end + return nil + end + protected def add_repo(url) if @repository_name @@ -723,6 +737,10 @@ url end end + + def log_url(file) + nil + end end # Link to ViewCVS @@ -781,6 +799,17 @@ def diff_url(file) add_repo("#{@base_url}#{urlEncode(file.path)}.diff?r1=text&tr1=#{file.fromVer}&r2=text&tr2=#{file.toVer}&f=h") end + + protected + + def log_url(file) + if file.toVer + log_anchor = "#rev#{file.toVer}" + else + log_anchor = "" + end + add_repo("#{@base_url}#{urlEncode(file.path)}#{log_anchor}") + end end @@ -1547,11 +1576,14 @@ elsif file.removal? name = "#{name}" end + mail.print("") if file.has_diff? - mail.print("#{prefix}#{name}") + mail.print("#{prefix}#{name}") else - mail.print("#{prefix}#{name}") + mail.print("#{prefix}#{name}") end + mail.print(" #{$frontend.log(file)}") + mail.print("") if file.isEmpty mail.print("[empty]") elsif file.isBinary From glen at delfi.ee Thu Nov 17 22:23:53 2005 From: glen at delfi.ee (Elan =?iso-8859-1?q?Ruusam=E4e?=) Date: Thu Nov 17 22:25:03 2005 Subject: [cvsspam-devel] missing data dir error Message-ID: <200511180023.54162.glen@delfi.ee> as you can see i commited same file at once with same commit (to have the diffs in same mail) using cvsspam-0.2.12 with two patches rfc2047_special_chars.patch cvsweb_loglink.patch i believe it's reproducible as: 0. be in a dir with cvs checkout 1. cp -a . m 2. echo D/m//// >> CVS/Entries 3. date > file 4. date > m/file 5. cvs ci -m '- test' there are files (dirs actually) in cvs server in /tmp, but none of them are owned by my uid. also the dirs that exist have XXXXXX replaced with 8digit integer "~/tmp/cvslRO1ly" 11L, 380C written Checking in config.pm; /usr/local/cvs/cookie/stat/config.pm,v <-- config.pm new revision: 1.101; previous revision: 1.100 done Checking in stat.pm; /usr/local/cvs/cookie/stat/stat.pm,v <-- stat.pm new revision: 1.149; previous revision: 1.148 done Checking in m/config.pm; /usr/local/cvs/cookie/stat/config.pm,v <-- config.pm new revision: 1.99.2.1; previous revision: 1.99 done Checking in m/stat.pm; /usr/local/cvs/cookie/stat/stat.pm,v <-- stat.pm new revision: 1.147.2.1; previous revision: 1.147 done /usr/share/cvsspam/collect_diffs.rb:148:in `process_log': missing data dir (/tmp/#cvsspam.21758.500-XXXXXX) (RuntimeError) from /usr/share/cvsspam/collect_diffs.rb:447 -- glen From dave at badgers-in-foil.co.uk Fri Nov 18 11:21:17 2005 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Fri Nov 18 11:21:34 2005 Subject: [cvsspam-devel] missing data dir error In-Reply-To: <200511180023.54162.glen@delfi.ee> References: <200511180023.54162.glen@delfi.ee> Message-ID: <20051118112116.GC10523@badgers-in-foil.co.uk> On Fri, Nov 18, 2005 at 12:23:53AM +0200, Elan Ruusam?e wrote: > as you can see i commited same file at once with same commit (to have the > diffs in same mail) I think this may be a case of, if it hurts, don't do it! I'm not sure that committing two different changes to the same file is a safe thing to try and do (i.e. although the commandline interface always seems to send changes in alphabetical order, other CVS clients may work differently, and the two versions of your file may not be committed in the order you expect). Is this a technique in common use, that CVSspam should handle better? dave -- http://david.holroyd.me.uk/ From glen at delfi.ee Fri Nov 18 12:57:16 2005 From: glen at delfi.ee (Elan =?iso-8859-1?q?Ruusam=E4e?=) Date: Fri Nov 18 12:58:10 2005 Subject: [cvsspam-devel] missing data dir error In-Reply-To: <20051118112116.GC10523@badgers-in-foil.co.uk> References: <200511180023.54162.glen@delfi.ee> <20051118112116.GC10523@badgers-in-foil.co.uk> Message-ID: <200511181457.17383.glen@delfi.ee> On Friday 18 November 2005 13:21, David Holroyd wrote: > On Fri, Nov 18, 2005 at 12:23:53AM +0200, Elan Ruusam?e wrote: > > as you can see i commited same file at once with same commit (to have the > > diffs in same mail) > > I think this may be a case of, if it hurts, don't do it! > > I'm not sure that committing two different changes to the same file is a > safe thing to try and do (i.e. although the commandline interface always > seems to send changes in alphabetical order, other CVS clients may work > differently, and the two versions of your file may not be committed in > the order you expect). > > Is this a technique in common use, that CVSspam should handle better? i can't s peak for the rest of the world, but i use it quite often to commit changes to different branches at once. haven't faced any data loss so far. and the order is not important as i'm commiting into different branches. > dave -- glen From vshevde at hotmail.com Sun Nov 20 19:52:07 2005 From: vshevde at hotmail.com (vikram shevde) Date: Mon Nov 21 11:01:29 2005 Subject: [cvsspam-devel] Error while commiting into cvs after cvsspam install: libcrypto.so.0.9.8 Message-ID: Hi, I discovered cvsspam after searching google for the best available cvs notifier and was very eager to use it. So i installed Ruby 1.8.3 on our CVS Server( didnt build from source, but got binary from sunfreeware.com). Our CVS box runs solaris. I followed the instructions to setup cvsspam and now when i try commiting any file to cvs, i get the following error: cvs -z9 -q commit -m "Ticket ID: -1 test for cvsspam" application.xpdl (in directory D:\src\app\web\resources\xml\noaa\) Checking in application.xpdl; /cvsroot/app/web/resources/xml/noaa/application.xpdl,v <-- application.xpdl new revision: 1.76.2.30; previous revision: 1.76.2.29 done /usr/local/lib/ruby/1.8/sparc-solaris2.9/digest/md5.so: ld.so.1: /usr/local/bin/ruby: fatal: libcrypto.so.0.9.8: open failed: No such file or directory - /usr/local/lib/ruby/1.8/sparc-solaris2.9/digest/md5.so (LoadError) from /usr/local/lib/ruby/1.8/net/smtp.rb:24 from /cvsroot/CVSROOT/cvsspam.rb:1813 /cvsroot/CVSROOT/collect_diffs.rb:292:in `mailtest': problem running '/cvsroot/CVSROOT/cvsspam.rb' (RuntimeError) from /cvsroot/CVSROOT/collect_diffs.rb:449 *****CVS exited normally with code 0***** Can anyone please help me out in figuring what went wrong? I desperately need to track whats happening to my repository and all help is sincerely appreciated. Thanks so much for building and mainting cvsspam! Vik. From dave at badgers-in-foil.co.uk Mon Nov 21 11:09:38 2005 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Mon Nov 21 11:09:43 2005 Subject: [cvsspam-devel] Error while commiting into cvs after cvsspam install: libcrypto.so.0.9.8 In-Reply-To: References: Message-ID: <20051121110938.GA14092@badgers-in-foil.co.uk> Hi there! On Sun, Nov 20, 2005 at 07:52:07PM +0000, vikram shevde wrote: > So i installed Ruby 1.8.3 on our CVS Server( didnt build from source, but > got binary from sunfreeware.com). Our CVS box runs solaris. I followed the > instructions to setup cvsspam and now when i try commiting any file to cvs, > i get the following error: > > cvs -z9 -q commit -m "Ticket ID: -1 test for cvsspam" application.xpdl (in > directory D:\src\app\web\resources\xml\noaa\) > Checking in application.xpdl; > /cvsroot/app/web/resources/xml/noaa/application.xpdl,v <-- > application.xpdl > new revision: 1.76.2.30; previous revision: 1.76.2.29 > done > /usr/local/lib/ruby/1.8/sparc-solaris2.9/digest/md5.so: ld.so.1: > /usr/local/bin/ruby: fatal: libcrypto.so.0.9.8: open failed: No such file > or directory - /usr/local/lib/ruby/1.8/sparc-solaris2.9/digest/md5.so > (LoadError) > from /usr/local/lib/ruby/1.8/net/smtp.rb:24 > from /cvsroot/CVSROOT/cvsspam.rb:1813 Sounds like there's a problem with the Ruby installation, or its integration into your system. You could try using 'sendmail' to dispatch CVSspam messages, rather than SMTP. I lack experience getting CVSspam to work on Solaris, unfortunately. good luck, dave -- http://david.holroyd.me.uk/ From gkt at cs.luc.edu Sat Nov 26 15:07:41 2005 From: gkt at cs.luc.edu (George K. Thiruvathukal) Date: Sat Nov 26 15:08:19 2005 Subject: [cvsspam-devel] CVSspam + multiple repositories Message-ID: Hello: I am completely new and apologize if this is a duplicate issue. (I did "search" the archives, but it is a pain.) I've set up CVSspam and think its very nicely done. Less is more! There is one improvement I would like to suggest and am willing to help develop. It would be nice if I could customize the subject of the e-mails being sent to include not only the module name but the repository name as well. We tend to use multiple repositories (one per major project) in my organization, and I suspect that many folks do the same. Ideally, colect_diffs.rb would allow a --subject-template option to be specified: --subject "[CVS MyRepositoryName %(RepositoryList)s]" Pardon my use of a Python-like variable reference to the list of modules that were committed. In case there is confusion, I am suggesting that the result of Repository.array.join(',') would be substituted where you see RepositoryList in the template. This is the line of code where it is referenced in cvsspam.rb: $subjectPrefix = "[CVS #{Repository.array.join(',')}]" I believe the change I am proposing can be done such that the default behavior continues to be as is. Only in the presence of --subject-template will the subject template be used. George -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/cvsspam-devel/attachments/20051126/94adac8c/attachment.htm From vshevde at hotmail.com Sat Nov 26 18:18:20 2005 From: vshevde at hotmail.com (vikram shevde) Date: Sat Nov 26 18:19:07 2005 Subject: [cvsspam-devel] cvsspam using SMTP:need help in getting mails to show color. Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/cvsspam-devel/attachments/20051126/141839b9/attachment.html