Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Oct 2001 01:21:27 -0500
From:      Mike Meyer <mwm@mired.org>
To:        "Dan O'Connor" <dan@mostgraveconcern.com>
Cc:        questions@freebsd.org
Subject:   Re: Automatically cvsupdating?
Message-ID:  <15293.20839.392353.382944@guru.mired.org>
In-Reply-To: <018f01c14d45$fb840520$059b140a@dan>
References:  <15292.6734.657188.339878@guru.mired.org> <018f01c14d45$fb840520$059b140a@dan>

next in thread | previous in thread | raw e-mail | index | archive | help
Dan O'Connor <dan@mostgraveconcern.com> types:
> > Um  - just curious, but why are you making it HTML mail then wrapping
> > it in PRE? Why not just leave it as text/plain?
> 
> So that the e-mail shows up in a fixed-width font (Courier New) in Outlook
> Express. Plain text shows up in a proportially-spaced font, and it's difficult
> to read reports and logs.

In other words, you're working around a bug in Outlook Express.

As a warning to others, this kind of things works fine for cvsup, but
for general text you need to filter it.

> Then, create an executable file /usr/local/bin/cvsrun:
>
>     echo "Subject: `hostname` weekly cvsup run"
>     echo "Content-type: text/html"
>     echo ""
>     echo ""
>     echo "<PRE>"
>     /usr/local/bin/cvsup -g -L 2 /usr/src/stable-supfile
>     echo "</PRE>"

To be completely safe,that middle line should be:

/usr/local/bin/cvsup -g -L 2 /usr/src/stable-supfile | sed -e 's/&/&amp;/g' -e 's/</\&lt;/g'


	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Q: How do you make the gods laugh?		A: Tell them your plans.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15293.20839.392353.382944>