6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
1/1/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#2799] IMP_Fetchmail_imap defaults never apply
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ . ,. ..___. . [__) \./ | | | | | \ | |__| | \__|
Comment
> IMP_Fetchmail_imap supplies defaults for {l,r}mailbox in its constructor: > > > > 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)? > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers