Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex to filter alias #15

Open
aditya-shri opened this issue Sep 6, 2021 · 3 comments
Open

Regex to filter alias #15

aditya-shri opened this issue Sep 6, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@aditya-shri
Copy link

As I have setup an alias for my gmail, so this is feature request. Can new command be added which will forword emails of particular alias to bot.

Also regex for filtering alias if multiple alias is present.

@akrava akrava self-assigned this Sep 22, 2021
@akrava akrava added the enhancement New feature or request label Sep 22, 2021
@akrava
Copy link
Owner

akrava commented Sep 22, 2021

Does gmail support aliases? Interesting, I'll see it. So you want to filter mails by sender, right? Because bot can filter mail by sender now, see #4 issue.

@aditya-shri
Copy link
Author

No based the mail the sender sent to.
So if I have multiple alias with a different domain name for the gmail then I want only those to be sent to telegram

@akrava
Copy link
Owner

akrava commented Sep 26, 2021

Okay, got it. I'll implement filtering emails by filed "To" in emails, which means the receiver address.
As far as there is an implemented feature for filtering by sender address (see #4) I'd want to implement your feature request in the same way as in #4. Here the short description:

Use /filter_emails command to filter incoming mails from senders email addressess.
To set filter rule to block only emails from specified senders you should type such message, where on the second line there should be block word and on the third line there should be list of senders emails separeted by whitespaces. Example:

To set filter rule to allow only emails from specified senders you should type such message, where on the second line there should be allow word and on the third line there should be list of senders emails separeted by whitespaces. Example:

So I'd want to use a list of emails instead of regex. I just think that list of emails will be more clear for common users, rather than regex. But if regex is more preferable way, let me know about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants