这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@AGhost-7
Copy link

@AGhost-7 AGhost-7 commented May 9, 2017

Fixes issue #20

for _,cc := range strings.Split(msg.Header.Get("Cc"), ",") {
recip = append(recip, strings.TrimSpace(cc))
}
for _,bcc := range strings.Split(msg.Header.Get("Bcc"), ",") {

Choose a reason for hiding this comment

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

I am not sure if this works correctly. As far as I know the Bcc is no part of the header, right?

Choose a reason for hiding this comment

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

Worked for me, I was using my fork for a while.

Copy link

Choose a reason for hiding this comment

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

This probably won't work correctly if there's a comma as part of the recipient's name (in quotes).

Copy link
Author

Choose a reason for hiding this comment

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

Didnt think of that use case, good catch. Unfortunately I no longer use msendmail, if someone else wants to pick up this PR please feel free. I don't think it will get merged however. I've been using swaks with maildev instead.

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.

4 participants