[imp] Spam Button

Andy Dorman adorman at ironicdesign.com
Fri May 24 13:14:12 UTC 2013


On 05/24/2013 08:01 AM, Arjen de Korte wrote:
> Citeren Simon B <simon.buongiorno at gmail.com>:
>
>> On 24 May 2013 13:18, Arjen de Korte <arjen+horde at de-korte.org> wrote:
>>> Citeren Simon B <simon.buongiorno at gmail.com>:
>>>
>>>>> The line
>>>>>
>>>>> $servers['imap']['disabled'] = true;
>>>>>
>>>>> seems to be missing.
>>>>
>>>>
>> This doesn't tell me where to put that.
>
> Sure it does, a few lines up it clearly states that this should go in
> either backends.local.php or in backends.d/
>
>> And as I read it that's simply the old format that used to be in conf.php
>
> No, it is a way of changing one variable in an array, leaving all other
> elements intact.
>

Simon, PHP is not my primary language, so I like to say "my skills are 
always improving".  I think I understand your confusion and what is 
going on because I made the same mistake just a few days ago when I 
added our backends.local.php.

Setting array variables like below in backends.local.php redefines an 
array and wipes out anything set in backends.php for that same array.

$servers['advanced'] = array(
// Disabled by default
'disabled' => false,
'name' => 'Advanced IMAP Server',
'hostspec' => 'localhost',
'hordeauth' => 'full',
...

However, if you set specific values in the array like this in 
backends.local.php

$servers['imap']['disabled'] = true;

Then you leave the $servers['imap'] array as defined in backends.php 
intact and only add/overwrite the single value for the 'disabled' key in 
the $servers['imap'] array.

Having said all that, what is happening is you have not disabled the 
default $servers['imap'] config in backends.local.php yet, so IMP is 
using that instead of your $servers['advanced'] config values.

Hope this helps.

-- 
Andy Dorman
FanMail.com
Ironic Design, Inc.
AnteSpam.com, HomeFreeMail.com, ComeHome.net

CONFIDENTIALITY NOTICE: This message is for the named person's use only. 
It may contain confidential, proprietary or legally privileged 
information. No confidentiality or privilege is waived or lost by any 
erroneous transmission. If you receive this message in error, please 
immediately destroy it and notify the sender. You must not, directly or 
indirectly, use, disclose, distribute, or copy any part of this message 
if you are not the intended recipient.



More information about the imp mailing list