[dev] PATCH Per Server default folders.

mike@graftonhall.co.nz mike@graftonhall.co.nz
Fri, 2 Aug 2002 12:25:12 +0100


Along the same lines as the per server quota stuff.. 

here's some per server default folders code. It allows the sent-mail and drafts
default folders to be specified on a per server basis. when these options exist
they override the prefs defaults unless the user specifies a value in their
identities settings.

it means you can do things like this:
$servers['exchange'] = array(
    'name' => 'Exchange 5.5 server',
    'server' => 'exchange.example.com',
    'protocol' => 'imap',
    'port' => 143,
    'folders' => '',
    'namespace' => '',
    'maildomain' => 'example.com',
    'realm' => '',
    'preferred' => ''.
    'defaultfolders' => array(
        'drafts' => 'Drafts',
        'sent_mail' => 'Sent Items')
);

The patch may not be totally clean cause IMP.php and imp.php in
imp/lib/identities are the same things as far as windows is concerned and so
this file may not have been correctly diffed. All other files are fine AFAIK.

http://www.graftonhall.co.nz/mikes/Horde%20Diffs/IMP%20Per%20Server%20default%20folders/

- Mike :-)

-------------------------------------------------------------------------
This mail sent from Mike's CVS HEAD install of IMP: http://horde.org/imp/