[ingo] How do I tell Ingo to inherit parameters from IMP?

Pro Green European pro_green_european at yahoo.com
Fri Jan 24 20:18:36 UTC 2014


Hi.

I'd like to know if it is possible for Ingo to inherit the hostspec parameter from IMP somehow, and based upon which hostspec parameter is set, assign either mbox or maildir to path_style.

This is my backends.local.php file from Ingo:

$backends['procmail'] = array(
    'disabled' => false,
    'transport' => array(
        Ingo::RULE_ALL => array(
            'driver' => 'vfs',
            'params' => array(
                'hostspec' => 'host.local.tld',
                'filename' => '.procmailrc',
                'vfs_path' => '/',
                'vfstype' => 'ftp',
                'port' => 21,
            )
        ),
    ),
    'script' => array(
        Ingo::RULE_ALL => array(
            'driver' => 'procmail',
            'params' => array(
                'path_style' => 'mbox',
                'variables' => array(
                    'SHELL' => '/bin/sh',
                ),
            ),
        ),
    ),
    'shares' => false
);

This is the backends.local.php from IMP:

$servers['a.local.tld'] = array(
    'disabled' => false,
    'name' => 'a.local.tld',
    'hostspec' => 'a.local.tld',
    'hordeauth' => false,
    'protocol' => 'imap',
    'port' => 143,
    'secure' => 'tls',
    'maildomain' => 'local.tld',
    'smtphost' => 'localhost',
    'smtpport' => 25,
    'cache' => true,
    'preferred' => 'true',
);

$servers['b.local.tld'] = array(
    'disabled' => false,
    'name' => 'b.local.tld',
    'hostspec' => 'b.local.tld',
    'hordeauth' => false,
    'protocol' => 'imap',
    'port' => 143,
    'secure' => 'tls',
    'maildomain' => 'local.tld',
    'smtphost' => 'localhost',
    'smtpport' => 25,
    'cache' => true,
    'preferred' => '',
);

As you can see, IMP is set up for access to two IMAP servers, both utilizing .procmailrc. Howerver, server A use path_style mbox, and server B use path_style Maildir.

I've searched horde.org and the rest of the net for information regarding these issues, but I cannot find a solution.

Appreciate all help :)


BR,
/PGE


More information about the ingo mailing list