Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/PhpImap/Mailbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Mailbox {
protected $imapParams = array();
protected $serverEncoding;
protected $attachmentsDir = null;
protected $sDir = null;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix this plz.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What needs fixing? Not sure...

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@duper51 What is protected $sDir = null; for? It must be deleted.

protected $expungeOnDisconnect = true;
private $imapStream;

Expand Down Expand Up @@ -614,7 +615,7 @@ protected function initMailPart(IncomingMail $mail, $partStructure, $partNum, $m
}
if(!empty($partStructure->parts)) {
foreach($partStructure->parts as $subPartNum => $subPartStructure) {
if($partStructure->type == 2 && $partStructure->subtype == 'RFC822') {
if($partStructure->type == 2 && $partStructure->subtype == 'RFC822' && $partStructure->disposition !== "attachment") {
$this->initMailPart($mail, $subPartStructure, $partNum, $markAsSeen);
}
else {
Expand Down