Add support for confirming unsafe addresses #26
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add support to specify unsafe addresses.
If a unsafe domain entry contains "@", we regard it as address, not domain.
When an address matches an unsafe addresses rule, a warning "[警告] 注意が必要なアドレス({0})が宛先に含まれています。" is displayed as below.
For the domains case, a warning is "[警告] 注意が必要なドメイン({0})が宛先に含まれています。" as below.
Note that warnings are displayed for each addresses, so if rules match a lot of addresses, a lot of warnings are displayed.
In case of domains, warnings are displayed per domain, so there are not so many warnings usually.
Test
%APPDATA%\FlexConfirmMail
if exist.test@a.co.jp
andtest3@a.co.jp
(test fortest@a.co.jp
)test@a.co.jp
is in "添付ファイル/その他の警告" ...OKtest3@a.co.jp
is not in "添付ファイル/その他の警告" ...OKtest-test@a.co.jp
andtest-test@b.co.jp
(test for*test@b.co.jp
)test-test@b.co.jp
is in "添付ファイル/その他の警告" ...OKtest-test@a.co.jp
is not in "添付ファイル/その他の警告" ...OKtest-test@a.co.jp
andtest-test@c.co.jp
(test for-*test@c.co.jp
)test-test@a.co.jp
andtest-test@c.co.jp
are not in "添付ファイル/その他の警告" ...OKtest2@a.co.jp
andtest2@c.co.jp
(test fortest2@*
)test2@a.co.jp
andtest2@c.co.jp
are in "添付ファイル/その他の警告" ...OKtest-test@test.co.jp
andtest-test@a.co.jp
(test fortest.co.jp
, domain case)test.co.jp
is in "添付ファイル/その他の警告" ...OKtest-test@a.co.jp
is in not "添付ファイル/その他の警告" ...OK