gmail

How can I implement a gmail-style label chooser?

泪湿孤枕 提交于 2019-12-04 14:12:54
What's the easiest way to implement (something like) Gmail's interface for labeling messages? Does any javascript library have a widget like this? http://img294.imageshack.us/img294/7097/36698396.png Behavior: Click a label in the dropdown to immediately label the message. Check multiple labels and then "Apply" to add multiple labels (not sure I like the "Apply" requirement...) Type in the box to narrow down your list of labels. If you narrow it down to 1, pressing enter applies that label. Trigger the widget with the shortcut key "L". Horace - you want something really complicated, and you

Remove html formatting when getting Body of a gmail message in javascript

雨燕双飞 提交于 2019-12-04 14:06:51
I would like to remove the html formatting in my google apps script. I am currently searching the email and printing the results to a google spreadsheet. I would like to know if there is a way to replace text.I am aware of regex but I dont think it works with the getBody function. I would really appreciate some feedback or some help on this matter. Code: function Search() { var sheet = SpreadsheetApp.getActiveSheet(); var row = 2; // Clear existing search results sheet.getRange(2, 1, sheet.getMaxRows() - 1, 4).clearContent(); // Which Gmail Label should be searched? var label = sheet.getRange(

Are passwords stored in cookies?

余生颓废 提交于 2019-12-04 13:47:23
问题 Looking at gmail and facebook I was wondering where do they store your password and account info when you log off and you have the function "Keep me signed in" on. I know they store it in cookies but isnt this hackable/stealable? How safe is this system and where is this information stored? 回答1: What they save is a unique session ID that is essentially a randomly generated string. With that session ID they can store your state on the backend, i.e. logged in or not. They never store your

Add my app to the list of “Complete Action Using” for attachments in gmail

百般思念 提交于 2019-12-04 13:21:52
问题 I would like my app to appear in the list within gmail. This list comes up when I click the Preview button within the Gmail app. I would like to know what entries need to be added in the intent filter? Thanks for the help in advance. 回答1: Have a look at Intent Filters: http://developer.android.com/guide/components/intents-filters.html Specifically, I think you'll find the Note Pad Example helpful: http://developer.android.com/guide/components/intents-filters.html#npex Personally, I had this

IMAP access to Gmail inbox with XOAUTH

心已入冬 提交于 2019-12-04 13:13:02
I'm following the example , I already have authorized my application (=obtained the access token) but trying to access the inbox results in this: 21:14.12 > NDIB1 AUTHENTICATE XOAUTH 21:14.17 < + 21:14.17 write literal size 480 21:14.74 < NDIB1 NO [ALERT] Invalid credentials (Failure) 21:14.74 NO response: [ALERT] Invalid credentials (Failure) This is the code: import xoauth import oauth2 as oauth import imaplib consumer = oauth.Consumer('anonymous', 'anonymous') access_token = oauth.Token(my_access_token, my_access_token_secret) user = my_gmail_address proto = "imap" # is it right??? xoauth

How to remove GMail label - Google Apps script

白昼怎懂夜的黑 提交于 2019-12-04 13:11:26
I want to remove the label "Followup" from each message that is placed back in the inbox. I have tried several things, but still without success. I hope someone can help me or point me in the right direction. The function concerned is: function moveToInbox(page) { GmailApp.moveThreadsToInbox(page); // GmailApp.markThreadsUnread(page); // GmailApp.starMessages(page) var label = GmailApp.getUserLabelByName("FollowUp"); var firstThread = GmailApp.getInboxThreads(0,1)[0]; var coupleOfMessages = firstThread.getMessages().slice(0, 10); GmailApp.starMessages(coupleOfMessages); label.removeFromThread

Email sent from web server causes gmail to treat as phishing. How to get rid of this?

点点圈 提交于 2019-12-04 13:04:58
I am sending account activation email from my .net app. I set the from address to "xyz.support@gmail.com" and from name "xyz" where xyz is the name of the domain i.e. our website. It was not a problem when we were using Google's SMTP server as I provided credentials to google during sending. But now I am using my own web server's SMTP to send the email. When I view the activation email in gmail, I get this: This message may not have been sent by: xyz.support@gmail.com Learn more Report phishing Is there a way to get rid of this so that gmail and other client don't show this message? Here is

connect gmail through php imap? local issuer certificate error [duplicate]

被刻印的时光 ゝ 提交于 2019-12-04 12:17:54
问题 This question already has answers here : Certificate error using IMAP in PHP (3 answers) Closed 6 years ago . I need to connect to a Gmail account via IMAP using PHP . I have some working code, but when attempting to establish a connection, I receive the following error: Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/ssl}[Gmail]/All Mail in /home/demoosiz/public_html/goqlue/email.php on line 31 Cannot connect to Gmail: Certificate failure for imap.gmail

Using selenium in order to read emails on gmail

巧了我就是萌 提交于 2019-12-04 11:38:06
I'm using selenium-rc and I'm trying to click on a specific email on gmail in order to get into the email page. More specifically: on the gmail inbox, click on a email with a specific subject. I can't find the correct xpath (none of the tags in the email part are links). Ideas? This XPath should do the trick: //div[@class = 'y6']/span[contains(., 'subject_here')] ... provided that you've first changed to the canvas_frame frame. Otherwise, it's unlikely it'll work at all. If you're not using Firebug to inspect the HTML, you really should as that's how I found out these values. Also, the Gmail

GCP Authentication: RefreshError

*爱你&永不变心* 提交于 2019-12-04 11:30:29
In order to round-trip test mail sending code in our GCP backend I am sending an email to a GMail inbox and attempting to verify its arrival. The current mechanism for authentication to the GMail API is fairly standard, pasted from the GMail API documentation and embedded in a function: def authenticate(): """Authenticates to the Gmail API using data in credentials.json, returning the service instance for use in queries etc.""" store = file.Storage('token.json') creds = store.get() if not creds or creds.invalid: flow = client.flow_from_clientsecrets(CRED_FILE_PATH, SCOPES) creds = tools.run