summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-05-13 16:29:19 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-05-13 16:29:19 +0000
commit2545cfd8ae678f609786c4d51d778fa3a99d0612 (patch)
tree8f3ce6d530750d7259f6f056254b3df95812cf63 /roundcubemail/program/include
parent2bd8335b04424821ffc5d045c1eaeaf229512b77 (diff)
- Add forward-as-attachment feature
git-svn-id: https://svn.roundcube.net/trunk@4761 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
-rw-r--r--roundcubemail/program/include/rcube_imap.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php
index ab2bc2a5e..eb987dca0 100644
--- a/roundcubemail/program/include/rcube_imap.php
+++ b/roundcubemail/program/include/rcube_imap.php
@@ -2521,14 +2521,17 @@ class rcube_imap
/**
- * Returns the whole message source as string
+ * Returns the whole message source as string (or saves to a file)
+ *
+ * @param int $uid Message UID
+ * @param resource $fp File pointer to save the message
*
- * @param int $uid Message UID
* @return string Message source string
*/
- function &get_raw_body($uid)
+ function &get_raw_body($uid, $fp=null)
{
- return $this->conn->handlePartBody($this->mailbox, $uid, true);
+ return $this->conn->handlePartBody($this->mailbox, $uid,
+ true, null, null, false, $fp);
}