Skip to content
Snippets Groups Projects
Commit abb8321b authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #1921 from greezybacon/issue/warn-pop-folder


email: Add warning for archive folder for POP

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents fc8fe9e7 7445869d
No related branches found
No related tags found
No related merge requests found
...@@ -296,8 +296,12 @@ class Email { ...@@ -296,8 +296,12 @@ class Email {
if(!isset($vars['postfetch'])) if(!isset($vars['postfetch']))
$errors['postfetch']=__('Indicate what to do with fetched emails'); $errors['postfetch']=__('Indicate what to do with fetched emails');
elseif(!strcasecmp($vars['postfetch'],'archive') && !$vars['mail_archivefolder'] ) elseif(!strcasecmp($vars['postfetch'],'archive')) {
$errors['postfetch']=__('Valid folder required'); 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']) { if($vars['smtp_active']) {
......
...@@ -218,7 +218,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ...@@ -218,7 +218,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<td> <td>
<span> <span>
<select name="mail_proto"> <select name="mail_proto">
<option value=''>&mdash; <?php __('Select protocol'); ?> &mdash;</option> <option value=''>&mdash; <?php echo __('Select protocol'); ?> &mdash;</option>
<?php <?php
foreach (MailFetcher::getSupportedProtos() as $proto=>$desc) { ?> foreach (MailFetcher::getSupportedProtos() as $proto=>$desc) { ?>
<option value="<?php echo $proto; ?>" <?php <option value="<?php echo $proto; ?>" <?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment