Fixed-width font in commit mails?
Could a fixed-width font be used in the diff section of the commit mails? That would help columns to align properly.
On Apr 18, 2007, at 7:15 PM, Ryan Schmidt wrote:
Could a fixed-width font be used in the diff section of the commit mails? That would help columns to align properly.
you could always view the plain-text alternative in a mailer with a fixed-width font... Otherwise, I think the commit mails are the default SVN::Notify HTML::ColorDiff style. I'm not sure if there's a simple hook to change the font that the CSS sets. -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
In Mail.app, Fonts & Colors -> Use fixed-width font for plain text messages affects the diff section of trac's mails, too. I know this does not answer your question but it might still achieve what you're looking for. It did for me. Regards, Elias On Apr 19, 2007, at 1:15 AM, Ryan Schmidt wrote:
Could a fixed-width font be used in the diff section of the commit mails? That would help columns to align properly.
On Apr 18, 2007, at 21:45, Daniel J. Luke wrote:
On Apr 18, 2007, at 7:15 PM, Ryan Schmidt wrote:
Could a fixed-width font be used in the diff section of the commit mails? That would help columns to align properly.
you could always view the plain-text alternative in a mailer with a fixed-width font...
Yes, but I do not wish to press the "view plain-text alternative" keyboard shortcut every time I open a message from the macports- changes list, and I do not want to configure my email program to always show the plain-text alternative, because I generally have nothing against HTML email. Also, I do not have my email program configured to view my plain-text emails in a fixed-width font, nor do I want to do that. If a portfile uses tabs to align columns, then this may or may not align properly when viewed in a mail program, depending on the mail program's definition of a tabstop. If a portfile uses spaces to align columns (which is the preferred method to ensure it looks right regardless of the user's editor's tabstop rules -- assuming fixed- width fonts in the editor), then it will not look right in any email client unless a fixed-width font is used. Therefore, the mail should be sent with a fixed-width font specified.
Otherwise, I think the commit mails are the default SVN::Notify HTML::ColorDiff style. I'm not sure if there's a simple hook to change the font that the CSS sets.
I wanted to play with svnnotify to see if I could find such an option, but I don't know how to install it. Is there a MacPorts way to install svnnotify?
On Apr 21, 2007, at 4:25 AM, Ryan Schmidt wrote:
Otherwise, I think the commit mails are the default SVN::Notify HTML::ColorDiff style. I'm not sure if there's a simple hook to change the font that the CSS sets.
I wanted to play with svnnotify to see if I could find such an option, but I don't know how to install it. Is there a MacPorts way to install svnnotify?
It's just the SVN::Notify perl module, so it's easy :) ... but I just created a macports port for it (p5-svn-notify), so you should be able to install it from macports soon. -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
On Apr 21, 2007, at 08:30, Daniel J. Luke wrote:
Otherwise, I think the commit mails are the default SVN::Notify HTML::ColorDiff style. I'm not sure if there's a simple hook to change the font that the CSS sets.
I wanted to play with svnnotify to see if I could find such an option, but I don't know how to install it. Is there a MacPorts way to install svnnotify?
It's just the SVN::Notify perl module, so it's easy :)
... but I just created a macports port for it (p5-svn-notify), so you should be able to install it from macports soon.
Thanks, Daniel. I've tried installing perl modules myself before, outside of MacPorts, and have always been rather incompetent. And, see, installing p5-svn-notify ended up installing 16 other p5 ports. So I'm glad that went smoothly. Now I'll look into setting it up.
On Apr 30, 2007, at 04:31, Ryan Schmidt wrote:
Otherwise, I think the commit mails are the default SVN::Notify HTML::ColorDiff style. I'm not sure if there's a simple hook to change the font that the CSS sets.
I wanted to play with svnnotify to see if I could find such an option, but I don't know how to install it. Is there a MacPorts way to install svnnotify?
It's just the SVN::Notify perl module, so it's easy :)
... but I just created a macports port for it (p5-svn-notify), so you should be able to install it from macports soon.
Thanks, Daniel. I've tried installing perl modules myself before, outside of MacPorts, and have always been rather incompetent. And, see, installing p5-svn-notify ended up installing 16 other p5 ports. So I'm glad that went smoothly. Now I'll look into setting it up.
Ok. I'm trying to set it up. I don't have a local SMTP server so I want to use a remote one. So I'm using the options --smtp, --smtp- user and --smtp-pass. But I don't seem to have the required modules to do this: Can't locate Net/SMTP_auth.pm in @INC (@INC contains: /opt/local/lib/ perl5/5.8.8/darwin-2level /opt/local/lib/perl5/5.8.8 /opt/local/lib/ perl5/site_perl/5.8.8/darwin-2level /opt/local/lib/perl5/site_perl/ 5.8.8 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl/ 5.8.8/darwin-2level /opt/local/lib/perl5/vendor_perl/5.8.8 /opt/local/ lib/perl5/vendor_perl .) at /opt/local/lib/perl5/vendor_perl/5.8.8/ SVN/Notify.pm line 2047. Using "port search p5" and "port search smtp" I can't find this Net/ SMTP_auth.pm. Is it available via MacPorts? If not, can it be made available?
Ryan Schmidt <ryandesign@macports.org> on Tuesday, May 1, 2007 at 5:48 PM -0800 wrote:
Otherwise, I think the commit mails are the default SVN::Notify HTML::ColorDiff style. I'm not sure if there's a simple hook to change the font that the CSS sets.
I wanted to play with svnnotify to see if I could find such an option, but I don't know how to install it. Is there a MacPorts way to install svnnotify?
It's just the SVN::Notify perl module, so it's easy :)
... but I just created a macports port for it (p5-svn-notify), so you should be able to install it from macports soon.
Thanks, Daniel. I've tried installing perl modules myself before, outside of MacPorts, and have always been rather incompetent. And, see, installing p5-svn-notify ended up installing 16 other p5 ports. So I'm glad that went smoothly. Now I'll look into setting it up.
Ok. I'm trying to set it up. I don't have a local SMTP server so I want to use a remote one. So I'm using the options --smtp, --smtp- user and --smtp-pass. But I don't seem to have the required modules to do this:
Can't locate Net/SMTP_auth.pm in @INC (@INC contains: /opt/local/lib/ perl5/5.8.8/darwin-2level /opt/local/lib/perl5/5.8.8 /opt/local/lib/ perl5/site_perl/5.8.8/darwin-2level /opt/local/lib/perl5/site_perl/ 5.8.8 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl/ 5.8.8/darwin-2level /opt/local/lib/perl5/vendor_perl/5.8.8 /opt/local/ lib/perl5/vendor_perl .) at /opt/local/lib/perl5/vendor_perl/5.8.8/ SVN/Notify.pm line 2047.
Using "port search p5" and "port search smtp" I can't find this Net/ SMTP_auth.pm. Is it available via MacPorts? If not, can it be made available?
Oops, sent with wrong address again. Resending minus CC's ------ See if this has what you need: p5-net I created that recently and it has SMTP stuff in it and is listed on CPAN as Net::SMTP. I called it p5-net because FreeBSD did that, there are a lot of non-mail modules, and there are quite a few libraries listed on CPAN listed as Net::SMTP:XXX (none of which are ported.) If it isn't that one you'll need to find the right one on CPAN and port it. Mark
On May 1, 2007, at 20:11, Mark Duling wrote:
Can't locate Net/SMTP_auth.pm in @INC (@INC contains: /opt/local/lib/ perl5/5.8.8/darwin-2level /opt/local/lib/perl5/5.8.8 /opt/local/lib/ perl5/site_perl/5.8.8/darwin-2level /opt/local/lib/perl5/site_perl/ 5.8.8 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/ vendor_perl/ 5.8.8/darwin-2level /opt/local/lib/perl5/vendor_perl/5.8.8 /opt/ local/ lib/perl5/vendor_perl .) at /opt/local/lib/perl5/vendor_perl/5.8.8/ SVN/Notify.pm line 2047.
See if this has what you need:
p5-net
I created that recently and it has SMTP stuff in it and is listed on CPAN as Net::SMTP. I called it p5-net because FreeBSD did that, there are a lot of non-mail modules, and there are quite a few libraries listed on CPAN listed as Net::SMTP:XXX (none of which are ported.) If it isn't that one you'll need to find the right one on CPAN and port it.
Thanks for the tip! It looks like that contains Net/SMTP.pm, but not Net/SMTP_auth.pm. So I made a new port, p5-net-smtp_auth. This is my first perl module port so I hope I got it all right. svnnotify seems to work now. Still, I'd appreciate it if a p5 expert would look over the new port and make any necessary corrections. http://trac.macosforge.org/projects/macports/browser/trunk/dports/ perl/p5-net-smtp_auth/Portfile Daniel, I think p5-net-smtp_auth should be added as a dependency to p5-svn-notify; this is what I get now when I install it: $ sudo port -t install p5-svn-notify ---> Fetching p5-svn-notify ---> Verifying checksum(s) for p5-svn-notify ---> Extracting p5-svn-notify ---> Configuring p5-svn-notify Warning: Target configure has an undeclared dependency on p5-net- smtp_auth ---> Building p5-svn-notify with target all ---> Staging p5-svn-notify into destroot ---> Installing p5-svn-notify 2.65_0 ---> Activating p5-svn-notify 2.65_0 ---> Cleaning p5-svn-notify $
On May 2, 2007, at 4:07 AM, Ryan Schmidt wrote:
So I made a new port, p5-net-smtp_auth. This is my first perl module port so I hope I got it all right. svnnotify seems to work now. Still, I'd appreciate it if a p5 expert would look over the new port and make any necessary corrections.
http://trac.macosforge.org/projects/macports/browser/trunk/dports/ perl/p5-net-smtp_auth/Portfile
Daniel, I think p5-net-smtp_auth should be added as a dependency to p5-svn-notify;
the Net::SMTP_auth module isn't needed for SVN::Notify (unless you want/need to use SMTP auth)... but it probably doesn't make the build take too long, so I'll go ahead and add it to the p5-svn-notify port.
this is what I get now when I install it:
$ sudo port -t install p5-svn-notify ---> Fetching p5-svn-notify ---> Verifying checksum(s) for p5-svn-notify ---> Extracting p5-svn-notify ---> Configuring p5-svn-notify Warning: Target configure has an undeclared dependency on p5-net- smtp_auth ---> Building p5-svn-notify with target all ---> Staging p5-svn-notify into destroot ---> Installing p5-svn-notify 2.65_0 ---> Activating p5-svn-notify 2.65_0 ---> Cleaning p5-svn-notify $
That's an artifact of how the perl build system and trace mode interact (if you remove the smtp_auth module installed, svn-notify would still build/test/install/work fine, but with it installed it will allow that additional functionality) -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
participants (4)
-
Daniel J. Luke
-
Elias Pipping
-
markd@macports.org
-
Ryan Schmidt