I'm developing node application, that needs to process some data when new email appears in GMAIL. I know how setup pub/sub messaging for all actions on INBOX, but i wonder whether there is a possibility to only get notifications about new emails.
Don't want to have additional requests checking whether we have new email or user removed email or did any other changes.
Any info will be very appreciated.
Related
I'm using App Engine to send text messages to users (by sending e-mails to their SMS/MMS gateways). The e-mails act essentially as push notifications for iPhone users (since Apple doesn't support Web Push at this time).
The plan is to allow users to also reply to those messages and tweak their subscription (for example, replying with "unsubscribe" would remove their subscription and stop sending them text messages without having to log in to the site and make changes in the "account" screen).
I am sending e-mails using a From: address of notification#XXXX.appspotmail.com, where XXXX is my App Engine project ID.
If I send an e-mail to an AT&T subscriber at NNNNNNNNNN#mms.att.net (or my personal e-mail addresss ZZZZZZ#gmail.com), the sender appears exactly as I originally sent it, and those users may reply to the message (and it is received by App Engine, since it is of the proper format for App Engine to proces it).
However, when App Engine sends an identical e-mail to NNNNNNNNNN#msg.fi.google.com, the sender (the address in the From: line) is always rewritten to be XXXX#appid.googleusercontent.com (where "XXXX" is the App Engine project ID). I don't have any access to the mail for that e-mail address, and it is not posted to App Engine.
When sending mail from App Engine, it adds the following MIME headers:
X-Google-Appengine-App-Id: s~XXXX
X-Google-Appengine-App-Id-Alias: XXXX
My guess is that there's something on the Project Fi MMS gateway that's doing some translation that it shouldn't be doing, using those headers.
I couldn't find any useful references to appid.googleusercontent.com online, so I thought that I'd post here.
I checked in with Project Fi's support, and this was not in their playbooks or documentation at all.
So, two questions:
Why are e-mails sent from App Engine to Project Fi having their From: address rewritten?
Is there anything that can be done to fix it?
I would like to know if there is a way from an email sender side to specifically ask Gmail not to take into account an email while trying to generate an event.
This is because one of our emails sends information about an abandon purchase and it is currently automatically generating an event on the user's calendar. This generates a problem for the user because he does not actually has a reservation.
I have a Liferay 6.1.0ga1 Portal that requires email confirmation from new registered users.
Following my feedback from the Portal users, and testing with misc Email Providers I've noticed:
Users that use a gmail account for their account, have no problem at all
Hotmail users will receive the 'welcome to our portal' and 'Email confirmation' emails, directly into their junk folder
Yahoo users are receiving most of the sent emails (welcome email, reset pasword, etc) normally, but the email confirmation is never received, and cannot be found even in their Spam Folder. The same happens for every request for a new confirmation mail. In a certain case, the Confirmation email arrived a few hours later, but I cannot really reproduce this scenario.
This is becoming a blocker issue because yahoo users can't register to the portal.
Can anyone provide some ideas on what is causing this behavior, and how could I make sure that all users can receive their confirmation emails ?
Edit:
Could it be that certain email providers are using a strict policy, are blocking the Confirmation Email, because it includes an activation email? I've thought of some solutions like
- Creating a register Hook that informs the new users that they could set their account to accept mails from my Portal
- Creating a hook that will use another Email Template for email confirmation, e.g including the confirmation Token and excluding the activation url
You could take a look at this very old question: How do you make sure email you send programmatically is not automatically marked as spam?
So have you tried the mentioned options in the marked answer there?
Is there a predefined protocol / API that will allow me to create a plugin component for exchange (let's say 2007+)?
I need to write a simple spam filter that will communicate with the exchange server and receive every mail that is received by that server. If the mail doesn't pass a check, it will be deleted from the server before being delivered to the user. If it is ok, it will be placed in the user's inbox.
I am looking for a protocol that supports the following:
subscribe to receive a notification whenever an email arrives to the server (before the email is placed in the users' in-box.
get the content of such emails.
have the ability to block further processing on some emails (so they are blocked before reaching the inbox).
Thanks in advance,
May be u can write a transport agent(Exchange Server 2007onwards) which will monitor and act on all the emails flowing through the organisation.
You can get most of the details of an email via a transport agent depending on the event at which u trigger the agent.
Here's a link which gives a thorough documentation.
http://msdn.microsoft.com/en-us/library/exchange/bb204097(v=exchg.150).aspx
You can check body/subject and if it doesn't comply with any of the organisational policy,just clear off all the recipients and the email delivery won't happen.
I've a domain and I've successfully configured Email service via Google Apps.
I've created 5 email accounts too.
Now I want to track all the incoming/ outgoing emails.
Is there any way, if any person(among those 5 persons), sends or receives an email, I want a copy of that email in my inbox too automatically.
Thanks in advance.
You can use GAM and Audit monitors to get a copy of a users mail sent and received. You'll also see Chats and Draft messages with an email monitor:
http://code.google.com/p/google-apps-manager/wiki/ExamplesAccountAuditing#Create_a_Audit_Monitor
This feature requires Google Apps for Business or Education.
Jay
I am not sure you can receive a copy in another account but you can configure each of the accounts to delegate access to your account so that you can view their sent/received messages. It is more manual than you would like however.
http://support.google.com/mail/bin/answer.py?hl=en&answer=138350
The best way to do that with out going into the GAM and use the audit, is to configure mail forwarding for each email by going into the gmail account interface.
Another solution that can be used, is to create an external gmail email, and use the google apps email routing to send all the emails to the external one.
On the external one you can just do what ever you want with the email, such as filtering by receiver and forwarding it to your selected destination.
Hope my answer helped a bit.