JustickDM / EmailToTelegram

Capture messages from multiple POP3/IMAP hosts and forward them to the Telegram.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EmailToTelegram

Configuring the file Settings.json

FilePath is set automatically from appsettings.json, SettingsFilePath

{
	"FilePath": "<Path to Settings.json>",
	"TelegramBotAccessToken": "<TOKEN>",
	"Pop3Settings": [
		{
			"Host": "",
			"NoSslPort": 0,
			"SslPort": 0,
			"UseSsl": true,
			"Login": "",
			"Password": "",
			"StartMessageIndex": 0,
			"CommonTelegramChatId": "<CHAT_ID>",
			"CommonTelegramMessageThreadId": null,
			"MessageFilters": [
				{
					"TelegramChatId": "<CHAT_ID>",
					"TelegramMessageThreadId": null,
					"MessageSubjectRegexPattern": "<SUBJECT_REGEX_PATTERN>"
				}
			]
		}
  	],
	"ImapSettings": [
		{
			"Host": "",
			"NoSslPort": 0,
			"SslPort": 0,
			"UseSsl": true,
			"Login": "",
			"Password": "",
			"StartMessageIndex": 0,
			"CommonTelegramChatId": "<CHAT_ID>",
			"CommonTelegramMessageThreadId": null,
			"MessageFilters": [
				{
					"TelegramChatId": "<CHAT_ID>",
					"TelegramMessageThreadId": null,
					"MessageSubjectRegexPattern": "<SUBJECT_REGEX_PATTERN>"
				}
			]
		}
	],
  	"CheckingNewMessagesDelaySeconds": 60
}

About

Capture messages from multiple POP3/IMAP hosts and forward them to the Telegram.

License:MIT License


Languages

Language:C# 99.2%Language:PowerShell 0.8%