Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to include/exclude inline attachments #128

Merged
merged 9 commits into from
Nov 19, 2016
Merged

Added option to include/exclude inline attachments #128

merged 9 commits into from
Nov 19, 2016

Conversation

fkoyer
Copy link
Contributor

@fkoyer fkoyer commented Nov 17, 2016

Added an optional argument to getAttachments and saveAttachments to include inline attachments (defaults to false). Also update the README file accordingly.

@@ -389,16 +389,19 @@ public function getAddresses($name)
*
* @return Attachment[]
*/
public function getAttachments()
public function getAttachments($include_inline=false)

Choose a reason for hiding this comment

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

  • Incorrect spacing between argument $include_inline and equals sign; expected 1 but found 0
  • Incorrect spacing between default value and equals sign for argument $include_inline; expected 1 but found 0

@@ -448,9 +451,9 @@ public function getAttachments()
* @return array Saved attachments paths
* @throws Exception
*/
public function saveAttachments($attach_dir)
public function saveAttachments($attach_dir,$include_inline=false)

Choose a reason for hiding this comment

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

  • Incorrect spacing between argument $include_inline and equals sign; expected 1 but found 0
  • Incorrect spacing between default value and equals sign for argument $include_inline; expected 1 but found 0
  • Expected 1 space between comma and argument $include_inline; 0 found

@coveralls
Copy link

coveralls commented Nov 17, 2016

Coverage Status

Coverage increased (+0.02%) to 97.222% when pulling 34cf360 on fko2221:fix-issue-125 into 9e4da9b on php-mime-mail-parser:master.

@coveralls
Copy link

coveralls commented Nov 17, 2016

Coverage Status

Coverage increased (+0.02%) to 97.222% when pulling e4ff50b on fko2221:fix-issue-125 into 9e4da9b on php-mime-mail-parser:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.009%) to 97.214% when pulling 62732c5 on fko2221:fix-issue-125 into 9e4da9b on php-mime-mail-parser:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.009%) to 97.214% when pulling 62732c5 on fko2221:fix-issue-125 into 9e4da9b on php-mime-mail-parser:master.

@fkoyer
Copy link
Contributor Author

fkoyer commented Nov 18, 2016

I changed the default for $include_inline to true to prevent the unit tests from failing

@coveralls
Copy link

coveralls commented Nov 18, 2016

Coverage Status

Coverage increased (+0.009%) to 97.214% when pulling 7e439e6 on fko2221:fix-issue-125 into 9e4da9b on php-mime-mail-parser:master.

@eXorus
Copy link
Member

eXorus commented Nov 18, 2016

Thanks a lot it's a very good job.

But we are missing some test about include inline attachments to false

@eXorus eXorus closed this Nov 18, 2016
@eXorus eXorus reopened this Nov 18, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 97.239% when pulling 7e439e6 on fko2221:fix-issue-125 into 9e4da9b on php-mime-mail-parser:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 97.239% when pulling 7e439e6 on fko2221:fix-issue-125 into 9e4da9b on php-mime-mail-parser:master.

@fkoyer
Copy link
Contributor Author

fkoyer commented Nov 19, 2016

Tell me what you think of the new unit test. It processes all the sample message again but with $include_inline set to false.

@coveralls
Copy link

coveralls commented Nov 19, 2016

Coverage Status

Coverage increased (+0.04%) to 97.248% when pulling 0362de0 on fko2221:fix-issue-125 into 9e4da9b on php-mime-mail-parser:master.

@coveralls
Copy link

coveralls commented Nov 19, 2016

Coverage Status

Coverage increased (+0.008%) to 97.248% when pulling 7169738 on fko2221:fix-issue-125 into 5ecc331 on php-mime-mail-parser:master.

@eXorus eXorus merged commit 2ea6413 into php-mime-mail-parser:master Nov 19, 2016
@eXorus
Copy link
Member

eXorus commented Nov 19, 2016

It will be fine like this for the moment. Thanks.

I really need to work on a new version 3.0 with better improvement and better structure for test and parser.

@fkoyer fkoyer deleted the fix-issue-125 branch November 21, 2016 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants