Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Updating normalizeMessageLink to work with multiple accounts #48

Merged
merged 1 commit into from

2 participants

@sschwartzman

Using string substitutions to produce a URL with this form: https://mail.google.com/mail/b/[account_id]/#inbox/[message_id]

@ashchan ashchan merged commit 6d2a5c0 into ashchan:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 6, 2013
  1. @sschwartzman
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 6 deletions.
  1. +8 −6 Classes/GNChecker.rb
View
14 Classes/GNChecker.rb
@@ -249,12 +249,14 @@ def cleanupAndQuit
private
def normalizeMessageLink(link)
- if @account.username.include?("@")
- domain = @account.username.split("@")[1]
- if domain != "gmail.com" && domain != "googlemail.com"
- link = link.gsub("/mail?", "/a/#{domain}/?")
- end
- end
+ link = link.gsub("/mail?account_id=", "/mail/b/")
+ link = link.gsub("&message_id=", "/#inbox/")
+ #if @account.username.include?("@")
+ # domain = @account.username.split("@")[1]
+ # if domain != "gmail.com" && domain != "googlemail.com"
+ # link = link.gsub("/mail?", "/a/#{domain}/?")
+ # end
+ #end
link
end
Something went wrong with that request. Please try again.