Bonjour,
Je viens de tomber sur un vieux patch (février 2007 !) qui traînait
dans ma copie de travail des lrde-tools, concernant Vcs.
Je l'applique ?
Index: vcs/lib/vcs/mail.rb
===================================================================
--- vcs/lib/vcs/mail.rb (revision 454)
+++ vcs/lib/vcs/mail.rb (working copy)
@@ -12,6 +12,9 @@
@@mailer ||= Sendmail.new
@@default_options ||= {
:mime => true,
+ # Use Latin-1 by default.
+ :charset => 'iso-8859-1',
+ :encoding => 'quoted-printable',
:header => { 'X-Mailer' => "Vcs.mail (#{Vcs::Version})" }
}
cattr_accessor :mail_options
@@ -37,9 +40,13 @@
from = header['From']
options.from = from[/<(.*)>/, 1] || from
options.header.merge! header
- options.header.symbolize_keys!
return if header['To'].nil?
rev = header['Revision']
+ options.header['X-svn-url'] = url.read.chomp
+ options.header['X-svn-revision'] = rev
+ options.charset = 'iso-8859-1'
+ options.encoding = 'quoted-printable'
+ options.header.symbolize_keys!
unless MAIL.exist?
print_body(MAIL, options, files)
end
Index: vcs/lib/vcs/form.rb
===================================================================
--- vcs/lib/vcs/form.rb (revision 454)
+++ vcs/lib/vcs/form.rb (working copy)
@@ -56,7 +56,7 @@
@@subject_format ||= '<%= Revision %>: <%= Title %>'
- @@message_line ||= '--text follow this line--'
+ @@message_line ||= '--text follows this line--'
def mk_form! ( files=[], options={} )
with_cache! Form, 'complete form (title, subject, ChangeLog entry, diff)' do