diff options
author | alecpl <alec@alec.pl> | 2011-05-13 16:29:19 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-05-13 16:29:19 +0000 |
commit | a208a4fa68d3c26c34ca3dae250267fec761675c (patch) | |
tree | 2daca4f626ae711226f157722c7235282d86269b /program/include | |
parent | 79275b4df5a60d4ffa70ab0e63479a41a962c6e1 (diff) |
- Add forward-as-attachment feature
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/rcube_imap.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index ab2bc2a5e..eb987dca0 100644 --- a/program/include/rcube_imap.php +++ b/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); } |