summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-09-18 11:43:17 +0200
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-09-18 11:43:17 +0200
commit2d119df6d392699e46556780d1fdc17f4c424e3a (patch)
treea89ae1ad19fa723333f40e08820b16283d4eb7fe /plugins
parentb99b0555fdfbaac36213b7c342cc2fb5eca1b583 (diff)
* update i18n/L10n
* remove superfluous whitespace
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Imap/ImapPlugin.php8
-rw-r--r--plugins/Imap/imapmanager.php4
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Imap/ImapPlugin.php b/plugins/Imap/ImapPlugin.php
index 66be799d3..1661ed86e 100644
--- a/plugins/Imap/ImapPlugin.php
+++ b/plugins/Imap/ImapPlugin.php
@@ -51,16 +51,16 @@ class ImapPlugin extends Plugin
function initialize(){
if(!isset($this->mailbox)){
- throw new Exception("must specify a mailbox");
+ throw new Exception(_m("A mailbox must be specified."));
}
if(!isset($this->user)){
- throw new Exception("must specify a user");
+ throw new Exception(_m("A user must be specified.");
}
if(!isset($this->password)){
- throw new Exception("must specify a password");
+ throw new Exception(_m("A password must be specified."));
}
if(!isset($this->poll_frequency)){
- throw new Exception("must specify a poll_frequency");
+ throw new Exception(_m("A poll_frequency must be specified."));
}
return true;
diff --git a/plugins/Imap/imapmanager.php b/plugins/Imap/imapmanager.php
index 0bbd42e78..68b8b7d87 100644
--- a/plugins/Imap/imapmanager.php
+++ b/plugins/Imap/imapmanager.php
@@ -92,12 +92,12 @@ class ImapManager extends IoManager
{
return $this->check_mailbox() > 0;
}
-
+
function pollInterval()
{
return $this->plugin->poll_frequency;
}
-
+
protected function connect()
{
$this->conn = imap_open($this->plugin->mailbox, $this->plugin->user, $this->plugin->password);