diff --git a/include/class.email.php b/include/class.email.php
index efc4a12601250c18c2ef9094e2f34ed5879bf6d9..aa6facef4bdc65069d159e27aaca430160a54c1f 100644
--- a/include/class.email.php
+++ b/include/class.email.php
@@ -38,6 +38,10 @@ class Email {
 
 
         $this->ht=db_fetch_array($res);
+        $this->ht['mail_proto'] = $this->ht['mail_protocol'];
+        if ($this->ht['mail_encryption'] == 'SSL')
+            $this->ht['mail_proto'] .= "/".$this->ht['mail_encryption'];
+
         $this->id=$this->ht['email_id'];
         $this->address=$this->ht['name']?($this->ht['name'].'<'.$this->ht['email'].'>'):$this->ht['email'];
 
@@ -261,6 +265,9 @@ class Email {
                 $errors['passwd'] = 'Unable to encrypt password - get technical support';
         }
 
+        list($vars['mail_protocol'], $encryption) = explode('/', $vars['mail_proto']);
+        $vars['mail_encryption'] = $encryption ?: 'NONE';
+
         if($vars['mail_active']) {
             //Check pop/imapinfo only when enabled.
             if(!function_exists('imap_open'))
diff --git a/include/class.mailfetch.php b/include/class.mailfetch.php
index 4e83c6f4843b78a29bf992a0190e515b1e82e8ff..3ab0d891a84e15a14a7a7c2ccd0634d557776a6b 100644
--- a/include/class.mailfetch.php
+++ b/include/class.mailfetch.php
@@ -723,6 +723,15 @@ class MailFetcher {
         return $ticket;
     }
 
+    static function getSupportedProtos() {
+        return array(
+            'IMAP/SSL'  => 'IMAP + SSL',
+            'IMAP'      => 'IMAP',
+            'POP/SSL'   => 'POP + SSL',
+            'POP'       => 'POP',
+        );
+    }
+
 
     function fetchEmails() {
 
diff --git a/include/staff/email.inc.php b/include/staff/email.inc.php
index c54ec8085b3c586b878af7ead77d86f6c8b3b7c7..e8d3a430e74c3f66a40dc374c1974b2dd3a9fa6d 100644
--- a/include/staff/email.inc.php
+++ b/include/staff/email.inc.php
@@ -25,6 +25,12 @@ if($email && $_REQUEST['a']!='add'){
     $info['ispublic']=isset($info['ispublic'])?$info['ispublic']:1;
     $info['ticket_auto_response']=isset($info['ticket_auto_response'])?$info['ticket_auto_response']:1;
     $info['message_auto_response']=isset($info['message_auto_response'])?$info['message_auto_response']:1;
+    if (!$info['mail_fetchfreq'])
+        $info['mail_fetchfreq'] = 5;
+    if (!$info['mail_fetchmax'])
+        $info['mail_fetchmax'] = 10;
+    if (!isset($info['smtp_auth']))
+        $info['smtp_auth'] = 1;
     $qstr.='&a='.$_REQUEST['a'];
 }
 $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);