From Atilla.Uergen at coop.ch Thu Feb 15 13:28:31 2007 From: Atilla.Uergen at coop.ch (Atilla.Uergen@coop.ch) Date: Thu Feb 15 13:28:43 2007 Subject: [cvsspam-devel] collect_diffs.rb:50:in `exec': No such file or directory - cvs (Errno::ENOENT) Message-ID: <2F4F51AC253AEF4EA9862FD6EAB141A0019734D4@SVRMHSCLUEXV02.coop.ch> Hello, i habe migrate my solaris from 5.8 to 5.10, an now, the cvsspam doesn't works anymore:(( Can anywherer help my please? here the output form the console: > /opt/cvs/bin/cvs -d /var/cvs/ro commit -m "TEST" Coop/project/project.properties.sample Checking in Coop/project/project.properties.sample; /var/cvs/ro/Coop/project/project.properties.sample,v <-- project.properties.sample new revision: 1.13; previous revision: 1.12 done /opt/cvs/cvsspam/collect_diffs.rb:50:in `exec': No such file or directory - cvs (Errno::ENOENT) from /opt/cvs/cvsspam/collect_diffs.rb:50:in `safer_popen' from /opt/cvs/cvsspam/collect_diffs.rb:48:in `popen' from /opt/cvs/cvsspam/collect_diffs.rb:48:in `safer_popen' from /opt/cvs/cvsspam/collect_diffs.rb:208:in `process_log' from /opt/cvs/cvsspam/collect_diffs.rb:195:in `each' from /opt/cvs/cvsspam/collect_diffs.rb:195:in `process_log' from /opt/cvs/cvsspam/collect_diffs.rb:178:in `open' from /opt/cvs/cvsspam/collect_diffs.rb:178:in `process_log' from /opt/cvs/cvsspam/collect_diffs.rb:447 /opt/cvs/cvsspam/collect_diffs.rb:211:in `process_log': couldn't get cvs status: (exited with 256) (RuntimeError) from /opt/cvs/cvsspam/collect_diffs.rb:195:in `each' from /opt/cvs/cvsspam/collect_diffs.rb:195:in `process_log' from /opt/cvs/cvsspam/collect_diffs.rb:178:in `open' from /opt/cvs/cvsspam/collect_diffs.rb:178:in `process_log' from /opt/cvs/cvsspam/collect_diffs.rb:447 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/cvsspam-devel/attachments/20070215/85c67ee0/attachment.htm From dave at badgers-in-foil.co.uk Thu Feb 15 13:39:34 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Thu Feb 15 13:39:36 2007 Subject: [cvsspam-devel] collect_diffs.rb:50:in `exec': No such file or directory - cvs (Errno::ENOENT) In-Reply-To: <2F4F51AC253AEF4EA9862FD6EAB141A0019734D4@SVRMHSCLUEXV02.coop.ch> References: <2F4F51AC253AEF4EA9862FD6EAB141A0019734D4@SVRMHSCLUEXV02.coop.ch> Message-ID: <20070215133934.GA24247@badgers-in-foil.co.uk> Hi, On Thu, Feb 15, 2007 at 02:28:31PM +0100, Atilla.Uergen@coop.ch wrote: > i habe migrate my solaris from 5.8 to 5.10, an now, the cvsspam doesn't works anymore:(( > /opt/cvs/cvsspam/collect_diffs.rb:50:in `exec': No such file or directory - cvs (Errno::ENOENT) Looks like CVSspam can't find your 'cvs' executable in the $PATH. Either adjust the PATH, or just tell CVSspam where the cvs command is installed by using the appropriate property in cvsspam.conf ta, dave -- http://david.holroyd.me.uk/ From Atilla.Uergen at coop.ch Thu Feb 15 13:59:29 2007 From: Atilla.Uergen at coop.ch (Atilla.Uergen@coop.ch) Date: Thu Feb 15 13:59:35 2007 Subject: AW: [cvsspam-devel] collect_diffs.rb:50:in `exec': No such file ordirectory - cvs (Errno::ENOENT) Message-ID: <2F4F51AC253AEF4EA9862FD6EAB141A0019734D5@SVRMHSCLUEXV02.coop.ch> Hello Dave, the Path is set correctly, accessorily i have set the path in the cvsspam.conf, the same trouble. have you an other idea? regards atilla -----Urspr?ngliche Nachricht----- Von: cvsspam-devel-bounces@lists.badgers-in-foil.co.uk [mailto:cvsspam-devel-bounces@lists.badgers-in-foil.co.uk] Im Auftrag von David Holroyd Gesendet: Donnerstag, 15. Februar 2007 14:40 An: cvsspam-devel@lists.badgers-in-foil.co.uk Betreff: Re: [cvsspam-devel] collect_diffs.rb:50:in `exec': No such file ordirectory - cvs (Errno::ENOENT) Hi, On Thu, Feb 15, 2007 at 02:28:31PM +0100, Atilla.Uergen@coop.ch wrote: > i habe migrate my solaris from 5.8 to 5.10, an now, the cvsspam > doesn't works anymore:(( > /opt/cvs/cvsspam/collect_diffs.rb:50:in `exec': No such file or > directory - cvs (Errno::ENOENT) Looks like CVSspam can't find your 'cvs' executable in the $PATH. Either adjust the PATH, or just tell CVSspam where the cvs command is installed by using the appropriate property in cvsspam.conf ta, dave -- http://david.holroyd.me.uk/ _______________________________________________ cvsspam-devel mailing list cvsspam-devel@lists.badgers-in-foil.co.uk http://lists.badgers-in-foil.co.uk/mailman/listinfo/cvsspam-devel From dave at badgers-in-foil.co.uk Thu Feb 15 14:09:55 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Thu Feb 15 14:09:57 2007 Subject: [cvsspam-devel] collect_diffs.rb:50:in `exec': No such file ordirectory - cvs (Errno::ENOENT) In-Reply-To: <2F4F51AC253AEF4EA9862FD6EAB141A0019734D5@SVRMHSCLUEXV02.coop.ch> References: <2F4F51AC253AEF4EA9862FD6EAB141A0019734D5@SVRMHSCLUEXV02.coop.ch> Message-ID: <20070215140955.GB24247@badgers-in-foil.co.uk> On Thu, Feb 15, 2007 at 02:59:29PM +0100, Atilla.Uergen@coop.ch wrote: > the Path is set correctly, In some CVS configurations (pserver) the server runs under a different user than your personal login. If this is the case, you would need to check that server user too. > accessorily i have set the path in the cvsspam.conf, the same trouble. Does the error message report a different name in the message that reads "No such file or directory - cvs" -- does it say something other that 'cvs' after you change cvsspam.conf? If you check your cvsspam.conf into the repository, did you remember to also commit it after making the change? > On Thu, Feb 15, 2007 at 02:28:31PM +0100, Atilla.Uergen@coop.ch wrote: > > i habe migrate my solaris from 5.8 to 5.10, an now, the cvsspam > > doesn't works anymore:(( > > > /opt/cvs/cvsspam/collect_diffs.rb:50:in `exec': No such file or > > directory - cvs (Errno::ENOENT) -- http://david.holroyd.me.uk/ From Atilla.Uergen at coop.ch Thu Feb 15 14:43:31 2007 From: Atilla.Uergen at coop.ch (Atilla.Uergen@coop.ch) Date: Thu Feb 15 14:43:43 2007 Subject: AW: [cvsspam-devel] collect_diffs.rb:50:in `exec': No such fileordirectory - cvs (Errno::ENOENT) Message-ID: <2F4F51AC253AEF4EA9862FD6EAB141A0019734D6@SVRMHSCLUEXV02.coop.ch> Hello, i have copy the cvsspam.conf in the follow directory "/etc/cvsspam" => i think it works now, but i get the follow error, it is now an solaris libraray error, i just looking. /usr/local/lib/ruby/1.8/sparc-solaris2.10/digest/md5.so: ld.so.1: ruby: fatal: libcrypto.so.0.9.8: open failed: No such file or directory - /usr/local/lib/ruby/1.8/sparc-solaris2.10/digest/md5.so (LoadError) from /usr/local/lib/ruby/1.8/net/smtp.rb:24 from /opt/cvs/cvsspam/cvsspam.rb:1813:in `require' from /opt/cvs/cvsspam/cvsspam.rb:1813 /opt/cvs/cvsspam/collect_diffs.rb:292:in `mailtest': problem running '/opt/cvs/cvsspam/cvsspam.rb' (RuntimeError) from /opt/cvs/cvsspam/collect_diffs.rb:449 (svrpho034)/tmp/projekt: thanks for your help. regards atilla -----Urspr?ngliche Nachricht----- Von: cvsspam-devel-bounces@lists.badgers-in-foil.co.uk [mailto:cvsspam-devel-bounces@lists.badgers-in-foil.co.uk] Im Auftrag von David Holroyd Gesendet: Donnerstag, 15. Februar 2007 15:10 An: cvsspam-devel@lists.badgers-in-foil.co.uk Betreff: Re: [cvsspam-devel] collect_diffs.rb:50:in `exec': No such fileordirectory - cvs (Errno::ENOENT) On Thu, Feb 15, 2007 at 02:59:29PM +0100, Atilla.Uergen@coop.ch wrote: > the Path is set correctly, In some CVS configurations (pserver) the server runs under a different user than your personal login. If this is the case, you would need to check that server user too. > accessorily i have set the path in the cvsspam.conf, the same trouble. Does the error message report a different name in the message that reads "No such file or directory - cvs" -- does it say something other that 'cvs' after you change cvsspam.conf? If you check your cvsspam.conf into the repository, did you remember to also commit it after making the change? > On Thu, Feb 15, 2007 at 02:28:31PM +0100, Atilla.Uergen@coop.ch wrote: > > i habe migrate my solaris from 5.8 to 5.10, an now, the cvsspam > > doesn't works anymore:(( > > > /opt/cvs/cvsspam/collect_diffs.rb:50:in `exec': No such file or > > directory - cvs (Errno::ENOENT) -- http://david.holroyd.me.uk/ _______________________________________________ cvsspam-devel mailing list cvsspam-devel@lists.badgers-in-foil.co.uk http://lists.badgers-in-foil.co.uk/mailman/listinfo/cvsspam-devel From dave at badgers-in-foil.co.uk Thu Feb 15 15:39:00 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Thu Feb 15 15:39:02 2007 Subject: [cvsspam-devel] collect_diffs.rb:50:in `exec': No such fileordirectory - cvs (Errno::ENOENT) In-Reply-To: <2F4F51AC253AEF4EA9862FD6EAB141A0019734D6@SVRMHSCLUEXV02.coop.ch> References: <2F4F51AC253AEF4EA9862FD6EAB141A0019734D6@SVRMHSCLUEXV02.coop.ch> Message-ID: <20070215153900.GA26428@badgers-in-foil.co.uk> On Thu, Feb 15, 2007 at 03:43:31PM +0100, Atilla.Uergen@coop.ch wrote: > i have copy the cvsspam.conf in the follow directory "/etc/cvsspam" => > i think it works now, but i get the follow error, it is now an solaris > libraray error, i just looking. > > > /usr/local/lib/ruby/1.8/sparc-solaris2.10/digest/md5.so: ld.so.1: ruby: fatal: libcrypto.so.0.9.8: open failed: No such file or directory - /usr/local/lib/ruby/1.8/sparc-solaris2.10/digest/md5.so (LoadError) Have a look at the email thread over here: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/166668 ta, dave From Atilla.Uergen at coop.ch Fri Feb 16 13:30:30 2007 From: Atilla.Uergen at coop.ch (Atilla.Uergen@coop.ch) Date: Fri Feb 16 13:31:38 2007 Subject: AW: [cvsspam-devel] collect_diffs.rb:50:in `exec': No suchfileordirectory - cvs (Errno::ENOENT) Message-ID: <2F4F51AC253AEF4EA9862FD6EAB141A0019734E1@SVRMHSCLUEXV02.coop.ch> Hello David, we have installed => openssl-0.9.8d-sol10-sparc-local on solaris 10 and now it works:))) thanks for your help -----Urspr?ngliche Nachricht----- Von: cvsspam-devel-bounces@lists.badgers-in-foil.co.uk [mailto:cvsspam-devel-bounces@lists.badgers-in-foil.co.uk] Im Auftrag von David Holroyd Gesendet: Donnerstag, 15. Februar 2007 16:39 An: cvsspam-devel@lists.badgers-in-foil.co.uk Betreff: Re: [cvsspam-devel] collect_diffs.rb:50:in `exec': No suchfileordirectory - cvs (Errno::ENOENT) On Thu, Feb 15, 2007 at 03:43:31PM +0100, Atilla.Uergen@coop.ch wrote: > i have copy the cvsspam.conf in the follow directory "/etc/cvsspam" => > i think it works now, but i get the follow error, it is now an solaris > libraray error, i just looking. > > > /usr/local/lib/ruby/1.8/sparc-solaris2.10/digest/md5.so: ld.so.1: > ruby: fatal: libcrypto.so.0.9.8: open failed: No such file or > directory - /usr/local/lib/ruby/1.8/sparc-solaris2.10/digest/md5.so > (LoadError) Have a look at the email thread over here: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/166668 ta, dave _______________________________________________ cvsspam-devel mailing list cvsspam-devel@lists.badgers-in-foil.co.uk http://lists.badgers-in-foil.co.uk/mailman/listinfo/cvsspam-devel From glen at delfi.ee Fri Feb 16 16:12:48 2007 From: glen at delfi.ee (Elan =?iso-8859-1?q?Ruusam=E4e?=) Date: Fri Feb 16 16:13:02 2007 Subject: [cvsspam-devel] encoding from header In-Reply-To: <20050711163545.GC11804@vhost.badgers-in-foil.co.uk> References: <200502152334.54960.glen@delfi.ee> <200507081649.56793.glen@delfi.ee> <20050711163545.GC11804@vhost.badgers-in-foil.co.uk> Message-ID: <200702161812.48515.glen@delfi.ee> On Monday 11 July 2005 19:35:45 David Holroyd wrote: > On Fri, Jul 08, 2005 at 04:49:56PM +0300, Elan Ruusam?e wrote: > > but today i noticed some problem, particularilly, i have patch which > > allows you to specify --charset argument to cvsspam [1], which will > > override charset sent to outgoing email. it is used because different > > locations in cvs have files in different encodings. but the problem is > > that CVSROOT/users file is in constant encoding (iso8859-1 in my case), > > and as a side effect the From header gets wrongly encoded. > > > > cvsspam called with --charset utf-8 parameter produces mail header: > > From: Elan =?utf-8?q?Ruusam=e4e?= > > > > perhaps you could look into this issue? > > > > [1] http://cvs.pld-linux.org/SOURCES/cvsspam-charset-arg.patch > > Would it be reasonable to try and detect the system character encoding, > and use that in preference to the --charset argument? Any idea how that > detection should work? > > I've sometimes seen a charset appended to $LANG, but this is not the > case on most of the systems I use. > > I guess that there could simply be an extra option to specify the > encoding, but it would be nice for this to 'just work' without the need > for extra config. sorry for bringing up this old issue, how about adding config option which defines the charset of CVSROOT/users file? and if the variable is not defined, just default to --charset arg or 'iso8859-1'. it just has to set proper encoding when encoding From header, no encoding coversion is neccessary. currently sent out line: From: Elan =?utf-8?q?Ruusam=e4e?= should be just: From: Elan =?iso8859-1?q?Ruusam=e4e?= -- glen From dave at badgers-in-foil.co.uk Fri Feb 16 23:50:56 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Fri Feb 16 23:51:02 2007 Subject: [cvsspam-devel] encoding from header In-Reply-To: <200702161812.48515.glen@delfi.ee> References: <200502152334.54960.glen@delfi.ee> <200507081649.56793.glen@delfi.ee> <20050711163545.GC11804@vhost.badgers-in-foil.co.uk> <200702161812.48515.glen@delfi.ee> Message-ID: <20070216235056.GA30718@badgers-in-foil.co.uk> On Fri, Feb 16, 2007 at 06:12:48PM +0200, Elan Ruusam?e wrote: > On Monday 11 July 2005 19:35:45 David Holroyd wrote: > > On Fri, Jul 08, 2005 at 04:49:56PM +0300, Elan Ruusam?e wrote: > > > but today i noticed some problem, particularilly, i have patch which > > > allows you to specify --charset argument to cvsspam [1], which will > > > override charset sent to outgoing email. it is used because different > > > locations in cvs have files in different encodings. but the problem is > > > that CVSROOT/users file is in constant encoding (iso8859-1 in my case), > > > and as a side effect the From header gets wrongly encoded. > > > > > > cvsspam called with --charset utf-8 parameter produces mail header: > > > From: Elan =?utf-8?q?Ruusam=e4e?= > > > > > > perhaps you could look into this issue? > > > > > > [1] http://cvs.pld-linux.org/SOURCES/cvsspam-charset-arg.patch > > > > Would it be reasonable to try and detect the system character encoding, > > and use that in preference to the --charset argument? Any idea how that > > detection should work? > > > > I've sometimes seen a charset appended to $LANG, but this is not the > > case on most of the systems I use. > > > > I guess that there could simply be an extra option to specify the > > encoding, but it would be nice for this to 'just work' without the need > > for extra config. > > sorry for bringing up this old issue, how about adding config option which > defines the charset of CVSROOT/users file? and if the variable is not > defined, just default to --charset arg or 'iso8859-1'. > > it just has to set proper encoding when encoding From header, no encoding > coversion is neccessary. > > currently sent out line: > From: Elan =?utf-8?q?Ruusam=e4e?= > > should be just: > From: Elan =?iso8859-1?q?Ruusam=e4e?= How about something like that attached (untested) change..? ta, dave -- http://david.holroyd.me.uk/ -------------- next part -------------- Index: cvsspam.rb =================================================================== --- cvsspam.rb (revision 254) +++ cvsspam.rb (working copy) @@ -162,8 +162,9 @@ # gives a string starting "=?", and including a charset specification, that # marks the start of a quoted-printable character sequence - def marker_start_quoted - "=?#{@charset}?#{@encoding}?" + def marker_start_quoted(charset=nil) + charset = @charset if charset.nil? + "=?#{charset}?#{@encoding}?" end # test to see of the given string contains non-ASCII characters @@ -1243,7 +1244,7 @@ # an RFC 822 email address class EmailAddress - def initialize(text) + def initialize(text, charset=nil) if text =~ /^\s*([^<]+?)\s*<\s*([^>]+?)\s*>\s*$/ @personal_name = $1 @address = $2 @@ -1251,9 +1252,10 @@ @personal_name = nil @address = text end + @charset=charset end - attr_accessor :personal_name, :address + attr_accessor :personal_name, :address, :charset def has_personal_name? return !@personal_name.nil? @@ -1284,7 +1286,7 @@ # rfc2047 encode the word, if it contains non-ASCII characters def encode_word(word) if $encoder.requires_rfc2047?(word) - encoded = $encoder.marker_start_quoted + encoded = $encoder.marker_start_quoted(@charset) $encoder.each_char_encoded(word) do |code| encoded << code end @@ -1299,6 +1301,7 @@ cvsroot_dir = "#{ENV['CVSROOT']}/CVSROOT" $config = "#{cvsroot_dir}/cvsspam.conf" $users_file = "#{cvsroot_dir}/users" +$users_file_charset = nil $debug = false $recipients = Array.new @@ -1762,7 +1765,7 @@ io.each_line do |line| if line =~ /^([^:]+)\s*:\s*(['"]?)([^\n\r]+)(\2)/ if email.address == $1 - return EmailAddress.new($3) + return EmailAddress.new($3, $users_file_charset) end end end From glen at delfi.ee Sat Feb 17 17:03:25 2007 From: glen at delfi.ee (Elan =?iso-8859-15?q?Ruusam=E4e?=) Date: Sat Feb 17 17:03:39 2007 Subject: [cvsspam-devel] encoding from header In-Reply-To: <20070216235056.GA30718@badgers-in-foil.co.uk> References: <200502152334.54960.glen@delfi.ee> <200702161812.48515.glen@delfi.ee> <20070216235056.GA30718@badgers-in-foil.co.uk> Message-ID: <200702171903.25190.glen@delfi.ee> On Saturday 17 February 2007, David Holroyd wrote: > > currently sent out line: > > From: Elan =?utf-8?q?Ruusam=e4e?= > > > > should be just: > > From: Elan =?iso8859-1?q?Ruusam=e4e?= > > How about something like that attached (untested) change..? thanks! looks working ok! > ta, > dave -- glen