diff --git a/include/class.email.php b/include/class.email.php index d38806f75f668c558872f2035208edeab924f2b2..26cd68648b799c1cd76ae3fb6ef13fdd3a2d99ae 100644 --- a/include/class.email.php +++ b/include/class.email.php @@ -296,8 +296,12 @@ class Email { if(!isset($vars['postfetch'])) $errors['postfetch']=__('Indicate what to do with fetched emails'); - elseif(!strcasecmp($vars['postfetch'],'archive') && !$vars['mail_archivefolder'] ) - $errors['postfetch']=__('Valid folder required'); + elseif(!strcasecmp($vars['postfetch'],'archive')) { + if ($vars['mail_protocol'] == 'POP') + $errors['postfetch'] = __('POP mail servers do not support folders'); + elseif (!$vars['mail_archivefolder']) + $errors['postfetch'] = __('Valid folder required'); + } } if($vars['smtp_active']) { diff --git a/include/staff/email.inc.php b/include/staff/email.inc.php index 1ae20c19f740ebb5de7fffd58d1bd640b85fa676..2ee0222fa15589f83a3b5caa0931b00bd12c1bc8 100644 --- a/include/staff/email.inc.php +++ b/include/staff/email.inc.php @@ -218,7 +218,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); <td> <span> <select name="mail_proto"> - <option value=''>— <?php __('Select protocol'); ?> —</option> + <option value=''>— <?php echo __('Select protocol'); ?> —</option> <?php foreach (MailFetcher::getSupportedProtos() as $proto=>$desc) { ?> <option value="<?php echo $proto; ?>" <?php