[sork] password and body formatting

Dennis Ortsen mosaic at pinetree.nl
Tue Sep 23 06:24:49 PDT 2003


Hi everyone,

I'm facing an issue with vacation's text that is send. I have several
installations with horde running.
Both machine A and machine B are using mysql for user authentication (using
Courier-IMAP). The subject and the body of the message that is supposed to
be sent, is stored in the same mysql database. A perl script will handle the
vacation program and extract the subject and body from the database and the
sends it to the correct person. This script works fine on both machines.

Machine A contains a cvs co from june this year. Machine B has a cvs co from
today (sep 18 2003). I've noticed some differences between the latest and
the other vacation module. In the old module, the default text you saw when
loading vacation, was written in vacation/templates/main/main.inc. In the
new vacation, that is handled in a different way, it's now written in
vacation/config/conf.php.

The difference between the vacation versions, is that any auto-reply sent
from machine A to any recipient, is that each line in main.inc, is also a
new line in the body of the email. The auto-reply from machine B has only
one single, long line. The email doesn't look nicely formatted. I've been
doing some digging, and am not that familiar with PHP. I've seen some php
functions like htmlspecialchars that are supposed to convert html chars to
something that doesn't mess up apps that don't handle html formatting so
well.

I've got this . "\n" . between the pieces of text that are supposed to start
on a new line. I have about 8 new lines. I thought that . "\n" . was
supposed to let the following text start on a new line, but either my
assumption is wrong, or vacation is?

Can anyone help me out please?

Thanks,

Wkr

Dennis Ortsen



More information about the sork mailing list