Skip to content

Commit d51f456

Browse files
committed
ImapDriver: removed server prefix from directory listings (todo: this should be configurable)
1 parent 7293d99 commit d51f456

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MailLibrary/Drivers/ImapDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public function setFlag($mailId, $flag, $value)
385385
* @throws DriverException
386386
*/
387387
public function copyMail($mailId, $toMailbox) {
388-
if(!imap_mail_copy($this->resource, $mailId, $this->server . $toMailbox, CP_UID)) {
388+
if(!imap_mail_copy($this->resource, $mailId, /*$this->server . */$toMailbox, CP_UID)) {
389389
throw new DriverException("Cannot copy mail to mailbox '$toMailbox': ".imap_last_error());
390390
}
391391
}
@@ -397,7 +397,7 @@ public function copyMail($mailId, $toMailbox) {
397397
* @throws DriverException
398398
*/
399399
public function moveMail($mailId, $toMailbox) {
400-
if(!imap_mail_move($this->resource, $mailId, $this->server . $toMailbox, CP_UID)) {
400+
if(!imap_mail_move($this->resource, $mailId, /*$this->server . */$toMailbox, CP_UID)) {
401401
throw new DriverException("Cannot copy mail to mailbox '$toMailbox': ".imap_last_error());
402402
}
403403
}

0 commit comments

Comments
 (0)