[Tickets #6140] Re: Ingo mangles paths to subfolders

bugs at horde.org bugs at horde.org
Fri Feb 1 20:27:55 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=6140
-----------------------------------------------------------------------
 Ticket             | 6140
 Updated By         | rhoneyager at gmail.com
 Summary            | Ingo mangles paths to subfolders
 Queue              | Ingo
 Version            | 1.1.5
 Type               | Bug
 State              | Feedback
 Priority           | 2. Medium
 Milestone          | 
 Patch              | 
 Owners             | 
-----------------------------------------------------------------------


rhoneyager at gmail.com (2008-02-01 15:27) wrote:

Yes, it still happens.

I think the problem is caused by this function in
ingo/lib/Script/procmail.php

    function procmailPath($folder)
    {
        /* NOTE: '$DEFAULT' here is a literal, not a PHP variable. */
        if (isset($this->_params) &&
            ($this->_params['path_style'] == 'maildir')) {
            if (empty($folder) || ($folder == 'INBOX')) {
                return '$DEFAULT';
            }
            if (substr($folder, 0, 6) == 'INBOX.') {
                $folder = substr($folder, 6);
            }
            return '"$DEFAULT/.' . escapeshellcmd($folder) . '/"';
        } else {
            if (empty($folder) || ($folder == 'INBOX')) {
                return '$DEFAULT';
            }
            return str_replace(' ', '\ ', escapeshellcmd($folder));
        }
    }


There should be an option somewhere to set how ingo handles subfolders of
inbox. Right now, it always just removes the INBOX. part of the subfolder's
name, which changes it to a top-level folder.




More information about the bugs mailing list