Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@danielvdbos
Copy link
Contributor

Hi,

Thank you so much for adding the add feature. I was the one requested it and I have used it already.

The new code also gave me the pointers to adjust and expand the features.

I have added the option to filter the emails in the query. Now it is possible to just download the emails you need, so you do not need to have an extra function filtering the results afterwards. It is possible to select emails on sender, receiver and subject. Receiver is something I mostly added for myself, since I tend to use the feature of gmail a lot where you can add "+${string}" after your username to generate a unique email address.

I have also changed the way the init_query handles the dates, so it is possible to have more precise search parameters. By using epoch it is possible to define the cut-off moments on the second. This is useful if you want to run a test multiple times on one day or if you need to make sure emails arrive within a certain period after sending them.

Additionally I have updated the readme to reflect the changes I made. I have added a remark to make it clear how to define the date.

This is my first pull request, so please let me know if I made any mistakes.

@levz0r
Copy link
Owner

levz0r commented Aug 23, 2019

Thank you for your contribution, Daniël. I will review the changes ASAP.

Copy link
Owner

@levz0r levz0r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey. First of all, it looks great! A few things needs to be done before merging though:

  1. Please update the code in examples/cypress/integration/gmail.spec.js to reflect your changes in README.md.
  2. In gmail-tester.js, please format the spacing on lines 12, 24 and 28 and use const instead of var, also remove blank line on line 35. On lines 24 and 28 please use the name for the variable: before_epoch. In the future, I will add some eslint rules to make sure we all follow the same coding conventions.

Thanks again!

@danielvdbos
Copy link
Contributor Author

Hey,

Sorry it took so long. I have made the changes you requested. I hope I did the spacing tight this time.

@levz0r levz0r merged commit d6c20f4 into levz0r:master Sep 13, 2019
@levz0r
Copy link
Owner

levz0r commented Sep 13, 2019

Awesome! I've made some small modifications, and your PR is now merged! Thank you!

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

Successfully merging this pull request may close these issues.

2 participants