<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>Ingo mangles paths to subfolders</title>
  <pubDate>Fri, 04 Jul 2008 17:53:23 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/6140</link>
  <atom:link rel="self" type="application/rss+xml" title="Ingo mangles paths to subfolders" href="http://bugs.horde.org/ticket/6140/rss" />
  <description>Ingo mangles paths to subfolders</description>

  
  
  <item>
   <title>In Ingo, I created a set of procmail rules were supposed to </title>
   <description>In Ingo, I created a set of procmail rules were supposed to deliver 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: &quot;$DEFAULT/.Facebook/&quot; 

It's supposed to be:
 26: ##### Facebook #####
 27: :0 
 28: * ^From:.*facebook
 29: $DEFAULT/.INBOX.Facebook/

</description>
   <pubDate>Wed, 23 Jan 2008 18:08:00 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6140#t41413</link>
  </item>
  <item>
   <title>'DEFAULT' should be set to the .INBOX directory in config/ba</title>
   <description>'DEFAULT' should be set to the .INBOX directory in config/backends.php, no?</description>
   <pubDate>Thu, 31 Jan 2008 12:05:32 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6140#t41713</link>
  </item>
  <item>
   <title>I should have been more specific.
My imap folders look like</title>
   <description>I should have been more specific.
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.</description>
   <pubDate>Thu, 31 Jan 2008 17:22:06 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6140#t41760</link>
  </item>
  <item>
   <title>Can you test if this still happens with Ingo 2.2 RC2?</title>
   <description>Can you test if this still happens with Ingo 2.2 RC2?</description>
   <pubDate>Fri, 01 Feb 2008 04:23:12 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6140#t41791</link>
  </item>
  <item>
   <title>Yes, it still happens.

I think the problem is caused by t</title>
   <description>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-&gt;_params) &amp;&amp;
            ($this-&gt;_params['path_style'] == 'maildir')) {
            if (empty($folder) || ($folder == 'INBOX')) {
                return '$DEFAULT';
            }
            if (substr($folder, 0, 6) == 'INBOX.') {
                $folder = substr($folder, 6);
            }
            return '&quot;$DEFAULT/.' . escapeshellcmd($folder) . '/&quot;';
        } 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.
</description>
   <pubDate>Fri, 01 Feb 2008 15:27:55 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6140#t41829</link>
  </item>
  <item>
   <title>Hopefully someone can take a peek at this soon... Ben? :)</title>
   <description>Hopefully someone can take a peek at this soon... Ben? :)</description>
   <pubDate>Sun, 17 Feb 2008 18:27:19 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6140#t42510</link>
  </item>
  <item>
   <title>Looking at the code that you pasted it should work, if you s</title>
   <description>Looking at the code that you pasted it should work, if you set 'path_style' to 'mbox' for your configuration.</description>
   <pubDate>Tue, 26 Feb 2008 16:52:28 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/6140#t43152</link>
  </item>
  

 </channel>
</rss>
