@@ -116,6 +116,9 @@ discard block |
||
| 116 | 116 | $this->unseen = $unseen; |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | + /** |
|
| 120 | + * @param boolean $clear |
|
| 121 | + */ |
|
| 119 | 122 | protected function flags( $flags, $clear ) { |
| 120 | 123 | $cb = $clear ? 'imap_clearflag_full' : 'imap_setflag_full'; |
| 121 | 124 | |
@@ -214,6 +217,9 @@ discard block |
||
| 214 | 217 | return $this->parts; |
| 215 | 218 | } |
| 216 | 219 | |
| 220 | + /** |
|
| 221 | + * @param string $IMAPMessagePartClass |
|
| 222 | + */ |
|
| 217 | 223 | protected function messageParts( $parts, $sectionPrefix = array(), $IMAPMessagePartClass ) { |
| 218 | 224 | $sectionPrefix = (array)$sectionPrefix; |
| 219 | 225 | |
@@ -263,6 +269,9 @@ discard block |
||
| 263 | 269 | return $this->decode($body); |
| 264 | 270 | } |
| 265 | 271 | |
| 272 | + /** |
|
| 273 | + * @param string $content |
|
| 274 | + */ |
|
| 266 | 275 | public function decode( $content ) { |
| 267 | 276 | return quoted_printable_decode($content); |
| 268 | 277 | } |
@@ -313,6 +322,9 @@ discard block |
||
| 313 | 322 | return file_put_contents($filepath, $this->decode($this->content())); |
| 314 | 323 | } |
| 315 | 324 | |
| 325 | + /** |
|
| 326 | + * @param string $content |
|
| 327 | + */ |
|
| 316 | 328 | public function decode( $content ) { |
| 317 | 329 | return base64_decode($content); |
| 318 | 330 | } |