[imp] Re: changing the contents on how vacation returns emails

Dennis Ortsen Dennis at Pinetree.nl
Mon Feb 17 11:54:10 PST 2003


Hi Eric

I've got an answer on your question...
> > Is there a possibility to remove the first four lines from the email
body?
>
> A long time ago we posted a "work around" to remove the ^M characters,
which
> should fix the above if applied.  Search the sork list archives, and if
you
> can't find it, try the IMP list archives.  If I have time, I'll locate the
> fix and send it to you, but I'm not sure I'll have time right now.

I've searched for it in the archives, unfortunetaly, it didn't fix the ^M
character behaviour. I don't know whether I placed it on the right lines in
vacation/lib/Driver/forwards.php. This is where I added the line: $message =
strtr($message, "^M", " ");
______________
 function set_vacation($user, $realm, $pass, $message, $alias) {

        // Make sure the configuration file is correct
        if (!$this->check_config($realm)) {
            return false;
        }

        // We need to find out what type of database file to use
        $conf = &$GLOBALS['conf'];
        $dbfile = VACATION_BASE . "/files/empty." .
                  $this->params['dbtype'] . ".bin";
        $message = strtr($message, "^M", " ");

        // Build the ftp array to pass to VFS
____________________________

Is this the correct workaround? Or do I need to add more? I've also read
further on in the archive that this workaround isn't  a workaround in every
case...

Thanks again,

Br.

Dennis





More information about the imp mailing list