Gmail ignores metadata for hotel reservation - google-schemas

I'm trying to fix the data that gmail pulls automatically from my emails by supplying the right metadata but gmail ignores it and still shows the wrong checkout date.
I've read through some similar issues found here and I do have the PASS status for DKIM and SPF headers.

ok i had another look on this and referring to LodgingReservation schema
you have to use
checkinTime & checkoutTime properties instead of checkinDate
should work then ;-)

Related

how to set Mandrill with DKIM and SPF in order to receive the activation link via mail

I am working on a new app (Ruby On Rails) and I have been stocked on Mandrill.
The settings are fine because when I try to register a new user I can see in the terminal the actiovation link and I can go through my registration but I don't receive any mails because I have no idea how to set this:
I tried to follow all the guides but I didn't get them.
Where should I CHANGE these settings?
Thanks for your help
No Answers ???
You should go to your Domain Provider and add there two txt records which will contain texts from Mandrill.
If you use GoDaddy:
go to /domains
find needed domain
go to DNS set up page
Add two records (TXT type, copy texts from mandrill)
Go to Mandrill, press Test and now they should become green

How to change the issue Type of an issue in JIRA via email?

I am working on an MVC application that is currently sending an email to JIRA and it is creating an issue. I am currently configuring all of the required fields and currently the issue being created has the issue Type set to bug as a default and also I think the priority set to minor.
I need to be able to change these two fields from the default as this application is used for clients that need to choose the correct issue and priority.
Currently I am using the TO, FROM, CC as the assignees, client and reporter. The summary and description are used by the subject and body respectively. This is why I don't know if it is actually possible to change these.
Can this actually be done, for example in the body "issueType" = "BUG", or "issueType":"Task"?
The application has the IssueType and Priority as dropdown list so could I append this to the body or maybe the subject of the email and send it. All code is working just need to know how/if I can set these two properties.
Update
I saw an example of this being used but I am unsure of how to implement this into an email form or if this can be done. And I am also using smtp gmail to send the information in my MVC application.
handler.params: project=XXOODD, issuetype=2
https://answers.atlassian.com/questions/39041/jira-creating-issues-and-comments-from-email
By default this cannot be done, but by using a couple of add-ons you can successfully get it to work:
https://marketplace.atlassian.com/plugins/com.metainf.jira.plugin.emailissue
https://marketplace.atlassian.com/plugins/com.javahollic.jira.jemh-ui

What are the default merge tags in Mandrill?

I've searched the Mandrill docs, KB and Google for a list of the merge tags that are always available, but can't seem to find just a simple list for the API option.
I created a template in MailChimp then sent it to Mandrill, but it appears that not all of the merge tags I was using are at my disposal.
From testing it doesn't look like any of the *|LIST:*|* tags work. I've tried *|LIST:PHONE|* and *|LIST:COMPANY|*, but I do know that there are some tags out there because *|CURRENT_YEAR|* works and the docs make reference to using the *|UNSUB:*|* tag.
Is there some hidden docs page I can't find or is there a Mandrill rep that could post them?
In general, none of the MailChimp tags will work because they specifically relate to a MailChimp list or integration, which is not accessible by Mandrill. In general, merge tag values should be provided in the API call or SMTP headers since Mandrill processes those on a per-message basis. As you discovered, there are some that may work, but it's generally best not to rely on that working, and instead provide values for things you want to merge in. Right now, the year will work, as will the DATE tag. Others to note:
*|EMAIL|* will pull in the recipient's email address unless you provide a different value for that merge tag in the API call or SMTP headers.
If you use *|FNAME|* or *|LNAME|* and don't provide recipient values for the one you're using, we'll attempt to parse the name parameter from the recipient list (the to array) to get the recipient's first or last name. That's fairly basic, though, so if you want to include them, it's best to actually define them.

Email threading

I'm working at a helpdesk application where i have a standalone script that queries a mail server and parses the mail it finds there.
I'm facing the following issue: How do i figure it out in a reliable way what mail is in reply to what mail?
I could add something in the subject like "[ticket:21312]" and look for that but what if the user changes the subject? Is there another way? Can i do it by setting a custom mail header and look for that or the header will not be preserved between mail servers on reply back from user?
What about when i send a message from my application to a non existing user or a user that has quota full and his server replies back with the usual standard message "the mail daemon at .... could not ...." then the subject will also be modified and i can't place the message correctly as a reply to an existing mail.
How does gmail do it? There the messages are sorted perfectly in almost all of the cases.
in helpdesk email piping there are 3 basic methods:
a) include the id in the subject somewhere (works fine in practice)
b) have the id in the body somewhere
c) use an auto-generated email alias with the id, like "case-76236781980893#helpdesk.mycompany.com". that can easily be handled by something like procmail or a script to pick out the id.
gmail might use a combination of the subject, In-Reply-To header (may not be defined) (References and Original-Message-ID headers possibly as well), and various heuristics, which work very well, but of course not necessarily bulletproof, and slightly more involved to implement. something like nestscape's original threading algorithm perhaps. though some have reported that gmail doesn't use the In-Reply-To header and relies mostly on the subject (as in this post).
As you say custom headers might get lost and the subject might change. Use both. If one exists then you can identify the thread. I don't know of any better way to solve this.
If your message was sent with a Message-ID-Header any standards-conform mailer should add a In-Reply-To-Header referencing your Id. Additionally Referencesshould contain a list of all previous mails in this thread.
This works with most mail clients, to be safe for the bad clients you have to use the subject, the easy way is by adding the "[issue:123]" thing, a secondary fallback is to recognize the subject (after cutting of the "Re:" part in all the variations) for this it could help that you know most of your legitimate senders ...

What is "shva" in Gmail's URL?

What is the following portion of a Gmail URL for?
https://mail.google.com/mail/?**zx**=1efobg68r40co&**shva**=1#inbox
If you change it, nothing happens!!
I know Gmail is not an Open-Source program so we can't trace the code. But every website try to make the URL shorter so they ideally shouldn't add redundant data to the URL. At the same time they don't make any difference nor error if they change.
Edit: I know it's a parameter for a scripting language since I'm a PHP developer but as a developer I don't EVER add a useless parameter and I think it's obvious/primitive sense!
The acronym stands for "Should have valid authentication" as noted here:
http://googlesystem.blogspot.com/2010/07/gmails-shva-parameter.html
As others have noted, 1 is the default value.
If I'm remembering correctly, back when they were working on the current version of the interface, you could preview it by setting shva=2 instead of the default. That version is now the default and you can't get the old version, so shva does nothing now.
It may be used again in the future, who knows?
But every website try to make the URL shorter so they ideally shouldn't add redundant data to the URL...
This is self-evidently not true. Look at StackOverflow URLs for a perfect example. This post:
http://stackoverflow.com/questions/1692968/shva-in-gmails-url-what-is-this
could just as easily be (it works):
http://stackoverflow.com/questions/1692968
I don't think anyone worries these days about the extra couple bytes of data involved with an extra query string parameter.
Some of them saying it is" should have valid Authentication". We shall consider it OK.
But the real expansion of shva is "security host verification and authentication".
It always comes when you open Gmail.
We won't know what it 'exactly' means unless someone inside Google answers your question. But my guess would be that it has to do with security and encryption. Nothing happens when you change it because it is part of the cookie as well. So when you change it they must also compare it with what is set in the cookie.
"shva" is an acronym for "should have valid authentication". Apparently, the parameter is only included after a successful authentication.
The 1 is the default value applied to the parameter check. It's also a shorthand way for programmers to say true, like when you have successfully logged in.
The other part, #inbox, tells Gmail to load up your inbox as the first screen. You can change that to one of the other folders (or even labels you've created) to load them up.
E.g., https://mail.google.com/mail/?shva=1#sent will show your Sent folder items.
https://mail.google.com/mail/?shva=1#label/narwhals will load up your "narwhals" label.
Gmail, like many web services, serves a standard interface that will change to show only your information and data when you've logged in.
The particulars are referenced on their end through the use of an ID from the cookies or sessions generated after the login screen.

Resources