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

Add -format-one-email option #331

Merged
merged 1 commit into from Feb 15, 2017

Conversation

knqyf263
Copy link
Contributor

I accidentally closed...
I'm sorry to send PR again.
#310

@knqyf263 knqyf263 force-pushed the add_one-email branch 5 times, most recently from 9ea8152 to d9e5a6d Compare February 13, 2017 11:42
@knqyf263 knqyf263 changed the title Add -one-email option Add -format-one-email option Feb 13, 2017
@kotakanbe
Copy link
Member

#295

report/email.go Outdated
conf.EMail.To,
[]byte(message),
if conf.FormatOneEMail {
subject := fmt.Sprintf("%s %s",
Copy link
Member

Choose a reason for hiding this comment

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

How do you think it would be better to display a summary at the top of the mail?

               message = fmt.Sprintf(
                       `
One Line Summary
================
%s


%s`,
                       toOneLineSummary(rs...), message)

Copy link
Member

Choose a reason for hiding this comment

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

One Line Summary
================
cent6   Total: 87 (High:21 Medium:57 Low:5 ?:4)         85 updatable packages
u16     Total: 111 (High:20 Medium:60 Low:7 ?:24)       106 updatable packages

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I got it. Good idea!
I'll fix.

@kotakanbe
Copy link
Member

Many Thanks!

@kotakanbe kotakanbe merged commit c9b7c3f into future-architect:master Feb 15, 2017
@knqyf263 knqyf263 deleted the add_one-email branch February 15, 2017 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants