Summary | Ingo mangles paths to subfolders |
Queue | Ingo |
Queue Version | 1.1.5 |
Type | Bug |
State | No Feedback |
Priority | 2. Medium |
Owners | ben (at) , jan (at) horde (dot) org |
Requester | rhoneyager (at) gmail (dot) com |
Created | 01/23/2008 (6324 days ago) |
Due | |
Updated | 03/06/2008 (6281 days ago) |
Assigned | 02/26/2008 (6290 days ago) |
Resolved | 03/06/2008 (6281 days ago) |
Milestone | |
Patch | No |
State ⇒ Feedback
'path_style' to 'mbox' for your configuration.
Assigned to ben
Assigned to Jan Schneider
State ⇒ Assigned
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.
My imap folders look like this:
-Inbox
--Facebook
--Daily
-College
--Lab
--Classes
-Sent
-Trash
-Old Mail
Inbox is not the only folder with subfolders inside it that recieve
mail. Some mail is also delivered to the .College.Classes and
.College.Lab folders. The script that ingo generates creates the
correct path for these folders.
My problem was that, when I select a subfolder of inbox (and only
inbox), the rules that Ingo generates assume that it is a top-level
folder.
State ⇒ Feedback
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Queue ⇒ Ingo
Summary ⇒ Ingo mangles paths to subfolders
Type ⇒ Bug
mail to a subfolder of my inbox folder. When ingo generates the rules,
however, it forgets that the folder is a subfolder of inbox.
I am using a fresh install of Dovecot 1.0.10 as my IMAP server.
example:
Ingo Generates:
26: ##### Facebook #####
27: :0
28: * ^From:.*facebook
29: "$DEFAULT/.Facebook/"
It's supposed to be:
26: ##### Facebook #####
27: :0
28: * ^From:.*facebook
29: $DEFAULT/.INBOX.Facebook/