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

Add email mappings #1

Open
simplylizz opened this issue Aug 12, 2023 · 4 comments
Open

Add email mappings #1

simplylizz opened this issue Aug 12, 2023 · 4 comments

Comments

@simplylizz
Copy link
Owner

simplylizz commented Aug 12, 2023

KostyaEsmukov/smtp_to_telegram#28 - like this, but for inboxes instead of from-based mapping.

@smashkins
Copy link

+1

@simplylizz
Copy link
Owner Author

@smashkins actually it's not that hard, especially taking into account this linked PR. If you want to do it yourself, I don't mind merging & releasing a new version, I just don't need this feature for myself right now, but maybe later.

@smashkins
Copy link

smashkins commented Aug 21, 2023

@smashkins actually it's not that hard, especially taking into account this linked PR. If you want to do it yourself, I don't mind merging & releasing a new version, I just don't need this feature for myself right now, but maybe later.

I'm not an expert in go. From what I understand, I simply replace from roei3000b PR e.MailFrom.String() with e.RcptTo.String().

It's useful for Synology users who want to send Telegram messages to different channels based on the event triggered by the NAS.
Either way, I'll give it a try, thanks!

@MuratovAS
Copy link

I have implemented the email mappings function.
You can find it in my fork: https://github.com/MuratovAS/smtptg

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

No branches or pull requests

3 participants