[Zope] wrapping email at 72 characters ?

Jens Vagelpohl jens@zope.com
Thu, 8 Aug 2002 08:01:15 -0400


code that does the following whould do it:

- read 72 characters into the email body
- go backwards from there until you encounter an empty space
- replace the empty space with a newline character
- repeat the preceding steps, starting from the first character after =
the=20
newline you just inserted.

if there is already newlines in the body of text you can replace all of=20=

them with empty spaces before you start parsing.

jens




On Thursday, August 8, 2002, at 07:40 , Geir B=E6kholt wrote:

>
>
> Does anyone have a python snippet or something that helps format
> outgoing emails, so that lines wrap nicely at 72 characters?
>
> :)
>
>
> --
> Geir B=E6kholt                      web-developer
> geirh@funcom.com             funcom oslo | webdev-team