Summary | IMP_Fetchmail_imap defaults never apply |
Queue | IMP |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | Horde Developers (at) |
Requester | jwm (at) horde (dot) net |
Created | 10/17/2005 (7174 days ago) |
Due | |
Updated | 05/12/2007 (6602 days ago) |
Assigned | 10/17/2005 (7174 days ago) |
Resolved | 05/12/2007 (6602 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
for remote mailboxes, and since they were never used...
in the UI somehow. Possibly by having $fm_account->getValue() return
the default if the $account key is null; then it's just a matter of
finding a nice way for $fm_account to get its default values - I
looked at the code some and it wasn't falling in to pace for me.
Does having an empty value for {l,r}mailbox make any sense (IOW, do
any remote servers interpret this as a sane default)?
parameter that hasn't been added yet, even) where there's a non-empty
default for a parameter that can validly be empty. We don't want to
make it impossible for users to zero out parameters that can be empty.
Moving the whole fetchmail form to use Horde_Form would actually take
care of all of this.
State ⇒ Assigned
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ IMP_Fetchmail_imap defaults never apply
Queue ⇒ IMP
function IMP_Fetchmail_imap($params)
{
/* Default values for a couple of parameters. */
$defaults = array(
'rmailbox' => 'INBOX',
'lmailbox' => 'INBOX'
);
$params = array_merge($defaults, $params);
but these values never apply because imp/fetchmailprefs.php
unconditionally sets all parameters:
foreach ($fetchmail->getParameterList() as $val) {
$fm_account->setValue($val, Util::getFormData('fm_' . $val),
$to_edit);
}
so they wind up being empty strings ("").
Should IMP_Fetchmail_imap() override empty strings with the defaults?
Does having an empty value for {l,r}mailbox make any sense (IOW, do
any remote servers interpret this as a sane default)?