[imp] A question about folders
   
    Eric Rostetter
     
    eric.rostetter@physics.utexas.edu
       
    Tue, 24 Sep 2002 09:08:33 -0500
    
    
  
Quoting sand0566@d.umn.edu:
> Is there a way to have imp use not only the Mail inbox but also a Mail folder
> in the home directory (~/Mail in UNIX/Linux) as a default place to look for
> mail folders rather than Inbox and all of the users home directory?
Not only is this possible but this is the normal and recommended setup.
> The only way I can see getting around having imp scan all directories in the
> user home directory is to ahve the user turn on imap subscription and
> subscribe to only those folders/directories.
Set the folder prefix to the directory holding the folders in
horde/imp/config/servers.php such as:
$servers['imap'] = array(
    'name' => 'IMAP Server',
    'server' => 'localhost',
    'protocol' => 'imap/notls',
    'port' => 143,
    'folders' => 'Mail/',
    'namespace' => '',
    'maildomain' => 'physics.utexas.edu',
    'smtphost' => 'mail.ph.utexas.edu',
    'realm' => ''
);
The important line is:
'folders' => 'Mail/',
>  This can take an large amount of time as imp
> indexes all files in a users home directory.
Sure would...
> Any help here would be appreciated.  You may need to know that I have
> $servers['imap'] = array('folders' => '') in the servers.php file.
That is your problem.  Change it to point to the folder prefix you want
to use (Mail/ in your message, mail/ in my case).
-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin
"Can you hear me now? ... Good!"
"Can you hear me now? ... Good!"