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

Email formatting from the pager-me script #152

Closed
stephenyeargin opened this issue Feb 6, 2015 · 4 comments
Closed

Email formatting from the pager-me script #152

stephenyeargin opened this issue Feb 6, 2015 · 4 comments

Comments

@stephenyeargin
Copy link

Using version 3.2.1

In PR #125, better email formatting was introduced. However, when using the implementation of hubot-pager-me, I see that the script is continuing to emit the mailto: link. In reading through both sets of source code, I am not sure where the "bug" really exists.

This is the basic example of the PagerDuty script's implementation:

robot.respond /pager(?: me)? as (.*)$/i, (msg) ->
  email = msg.match[1]
  msg.message.user.pagerdutyEmail = email
  msg.send "Okay, I'll remember your PagerDuty email is #{email}"

The bot then responds with:

user> hubot pager me as stephen@example.com
hubot> Okay, I'll remember your PagerDuty email address is stephen@example.com mailto:stephen@example.com

The value of email is expanded to stephen@example.com mailto:stephen@example.com rather than simply stephen@example.com. I'm not sure if that is the payload from Slack that sets that or if something else is going wrong.


Related: #125
Related: hubot-archive/hubot-pager-me#29

cc/ @paulhammond

@eirikurn
Copy link

+1 This exact email format issue is affecting my script as well.

@paulhammond
Copy link
Contributor

I think the problem here is just that #125 hasn't yet made it into a release. But that's OK, because we just released 3.3.0 which includes the fix!

If I'm wrong please reopen this issue and we'll look into it!

eirikurn added a commit to aranja/hubot-harvest-sync that referenced this issue Feb 28, 2015
Hubot-slack has been fixed to not mess up email in messages.

slackapi/hubot-slack#152 (comment)
@stephenyeargin
Copy link
Author

Confirmed fixed.

@parkr
Copy link

parkr commented Mar 26, 2015

I'm still seeing this. Fixed in 3.3?

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

No branches or pull requests

4 participants