Changeset View
Changeset View
Standalone View
Standalone View
scripts/mail/mail_handler.php
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | if (preg_match('@text/(plain|html)@', $attachment->getContentType()) && | ||||
$attachment->getContentDisposition() == 'inline') { | $attachment->getContentDisposition() == 'inline') { | ||||
// If this is an "inline" attachment with some sort of text content-type, | // If this is an "inline" attachment with some sort of text content-type, | ||||
// do not treat it as a file for attachment. MimeMailParser already picked | // do not treat it as a file for attachment. MimeMailParser already picked | ||||
// it up in the getMessageBody() call above. We still want to treat 'inline' | // it up in the getMessageBody() call above. We still want to treat 'inline' | ||||
// attachments with other content types (e.g., images) as attachments. | // attachments with other content types (e.g., images) as attachments. | ||||
continue; | continue; | ||||
} | } | ||||
// TODO | |||||
Lint: TODO Comment: This comment has a TODO. | |||||
$file = PhabricatorFile::newFromFileData( | $file = PhabricatorFile::newFromFileData( | ||||
$attachment->getContent(), | $attachment->getContent(), | ||||
array( | array( | ||||
'name' => $attachment->getFilename(), | 'name' => $attachment->getFilename(), | ||||
'viewPolicy' => PhabricatorPolicies::POLICY_NOONE, | 'viewPolicy' => PhabricatorPolicies::POLICY_NOONE, | ||||
)); | )); | ||||
$attachments[] = $file->getPHID(); | $attachments[] = $file->getPHID(); | ||||
} | } | ||||
Show All 12 Lines |
This comment has a TODO.