私はOCNで迷惑メール自動判定(無料)を使って、

メールヘッダーに追加される

「X-OCN-SPAM-CHECK」「次の文字列を含む」「100.00%」

で、迷惑メールの判定をしています。

迷惑メールとハッキリとしたものは、OCNのフィルターで「破棄」しています。


しかし最近、「アメリカン・エキスプレス」からの迷惑メールが来て、

「X-OCN-SPAM-CHECK」「次の文字列を含む」「0.00%」

なので、迷惑メールの判定が出来ません。

※私は、「アメリカン・エキスプレス」の口座や取引をしてません

※パソコンでThunderbirdを使っているので、学習機能で「迷惑メール」フォルダーには振り分けられます。


対策ですが、

メールヘッダー「Received-SPF」に注目しました

1通目
Received-SPF: pass (ocn-fc-mtr-208c2.ocn.ad.jp: domain designate client-ip as permitted sender) client-ip=13.78.24.72:40198; envelope-from=; helo=amerxp33.sports-chest.com;

2通目
Received-SPF: pass (ocn-fc-mtr-202c2.ocn.ad.jp: domain designate client-ip as permitted sender) client-ip=20.222.20.113:38776; envelope-from=; helo=amerxp9.soundcorelife.com;


次の様なOCNフィルターを作成しました
-----------------------
フィルター条件の指定
「ヘッダーの名前」「Received-SPF」「次の文字列を含む」「amerxp」

アクション条件の指定
「破棄」

✅以降のフィルターは処理しない
-----------------------


注意
実際に「アメリカン・エキスプレス」に口座を持っていたり、取引がある方は注意してくださいね。


Win7に共用フォルダーを作成して、Win10から参照していますが、

Win7を再起動すると、Win10から、Win7の一部の共用フォルダーが参照できなくなります


最初は、ChromeのリモートデスクトップでWin7に入って、

「各フォルダーの共有設定」をやり直していたのですが、面倒でした


なので、AIに聞いたら、「net shareコマンド」を教えてもらいました。


これをバッチファイルにして、一気に「各フォルダーの共有設定」を行ってくれます

このバッチファイルは、Win7側に保存して、

ChromeのリモートデスクトップでWin7に入って、実行します。


「共有フォルダー_再設定.bat」・・・名前は適当に

net share F_XVIDEOS="F:\F_Download\F_XVIDEOS" /grant:everyone,full
net share G_XVIDEOS="G:\G_Download\G_XVIDEOS" /grant:everyone,full
net share H_XVIDEOS="H:\H_Download\H_XVIDEOS" /grant:everyone,full
net share I_XVIDEOS="I:\I_Download\I_XVIDEOS" /grant:everyone,full
net share N_XVIDEOS="N:\N_Download\N_XVIDEOS" /grant:everyone,full
net share W_XVIDEOS="W:\W_Download\W_XVIDEOS" /grant:everyone,full
net share X_XVIDEOS="X:\X_Download\X_XVIDEOS" /grant:everyone,full
net share Z_XVIDEOS="Z:\Z_Download\Z_XVIDEOS" /grant:everyone,full
net share Z_Download="Z:\Z_Download" /grant:everyone,full

※オプションの「/grant:everyone,full」は、
everyone(誰でも),full(フルアクセス権を付与)です。

これを保存してダブルクリックで実行すれば、

一気に「各フォルダーの共有設定」ができます




訂正です。
↓の指定が抜けていたので、追加しました。失礼しました
user_pref("mailnews.tags.$label1.color", "#FF0000");


----------------------------

Windows10 Thunderbird 158.0.1 (64 ビット)にアップデートしたら、

作成していたタブが消えてしまいました。

私はWin11も持っていますが、そちらは作成していたタブは残っていました。

但し、Win11のタグは、メール一覧で見ると「~10/20」までは表示され、以降は非表示です。


問題は、
今回の症状にかなりよく似た問題が、Thunderbird 153以降について報告されています。 日本語のタグの内部名の扱いが変更され、IMAPメールサーバーの制限などによって、以前のタグが正常に維持されなくなる場合があります。

そして、ChatGPTに聞いたら、1つヒントをもらえました。

「タグ消失については、Thunderbird 153以降で日本語タグの内部名が長くなり、IMAPサーバー側の制限によってタグが保存されない問題が報告されています。」

ならば、152以前の指定方法にすれば、いいんじゃないかと思いまして・・・

Win10のThunderbird(prefs.js)

user_pref("mailnews.tags.$label1.color", "#FF0000");
user_pref("mailnews.tags.$label1.tag", "重要");
user_pref("mailnews.tags.$label2.color", "#FF9900");
user_pref("mailnews.tags.$label2.tag", "仕事");
user_pref("mailnews.tags.$label3.color", "#009900");
user_pref("mailnews.tags.$label3.tag", "プライベート");
user_pref("mailnews.tags.$label4.color", "#3333FF");
user_pref("mailnews.tags.$label4.tag", "ToDo");
user_pref("mailnews.tags.$label5.color", "#993399");
user_pref("mailnews.tags.$label5.tag", "後で");
user_pref("mailnews.tags.$label6.color", "#0080ff");
user_pref("mailnews.tags.$label6.tag", "報告済");
user_pref("mailnews.tags.$label7.color", "#0080ff");
user_pref("mailnews.tags.$label7.tag", "偽アマ");
user_pref("mailnews.tags.$label8.color", "#0080ff");
user_pref("mailnews.tags.$label8.tag", "迷惑メ");


Win10のThunderbirdで試してみたら、タグが復活しました。
しかし、Win11のThunderbirdの「prefs.js」は、新指定なのでうまく同期(表示)されませんでした。

Win11のThunderbird(prefs.js)・・・新指定

user_pref("mailnews.tags.$label1.color", "#FF0000");
user_pref("mailnews.tags.$label1.tag", "重要");
user_pref("mailnews.tags.$label2.color", "#FF9900");
user_pref("mailnews.tags.$label2.tag", "仕事");
user_pref("mailnews.tags.$label3.color", "#009900");
user_pref("mailnews.tags.$label3.tag", "プライベート");
user_pref("mailnews.tags.$label4.color", "#3333FF");
user_pref("mailnews.tags.$label4.tag", "ToDo");
user_pref("mailnews.tags.$label5.color", "#993399");
user_pref("mailnews.tags.$label5.tag", "後で");
user_pref("mailnews.tags.=e5=a0=b1=e5=91=8a=e6=b8=88.color", "#0080ff");
user_pref("mailnews.tags.=e5=a0=b1=e5=91=8a=e6=b8=88.tag", "報告済");
user_pref("mailnews.tags.=e5=a0=b1=e5=91=8a=e6=b8=88=e3=81=bf.color", "#0080ff");


なので、Win11のprefs.js(mailnews.tags.$label部分)も、Win10のprefs.jsと同じにしてみたら、
Win11のタグとWin10のタグが同期されました。


Win11のThunderbird(prefs.js)・・・新指定→旧指定へ修正

user_pref("mailnews.tags.$label1.color", "#FF0000");
user_pref("mailnews.tags.$label1.tag", "重要");
user_pref("mailnews.tags.$label2.color", "#FF9900");
user_pref("mailnews.tags.$label2.tag", "仕事");
user_pref("mailnews.tags.$label3.color", "#009900");
user_pref("mailnews.tags.$label3.tag", "プライベート");
user_pref("mailnews.tags.$label4.color", "#3333FF");
user_pref("mailnews.tags.$label4.tag", "ToDo");
user_pref("mailnews.tags.$label5.color", "#993399");
user_pref("mailnews.tags.$label5.tag", "後で");
user_pref("mailnews.tags.$label6.color", "#0080ff");
user_pref("mailnews.tags.$label6.tag", "報告済");
user_pref("mailnews.tags.$label7.color", "#0080ff");
user_pref("mailnews.tags.$label7.tag", "偽アマ");
user_pref("mailnews.tags.$label8.color", "#0080ff");
user_pref("mailnews.tags.$label8.tag", "迷惑メ");



Win10のTBのメールに付けたタグを消せば、Win11側も消え、

Win11のTBのメールにタグを付ければ、Win10側も付加される



★Thunderbird(prefs.js)編集方法

※最初に、Thunderbirdを全て終了する
(右下の通知領域のThunderbirdも終了する)

1.メニューバー>トラブルシューティング情報



2.プロファイルフォルダー>フォルダーを開く



3.prefs.js編集前に、必ずコピーを取っておくこと。
prefs.js>右クリック>編集



3.「mailnews.tags.」を検索して、以下の様に指定する

user_pref("mailnews.tags.$label6.color", "#0080ff");
user_pref("mailnews.tags.$label6.tag", "報告済");
user_pref("mailnews.tags.$label7.color", "#0080ff");
user_pref("mailnews.tags.$label7.tag", "偽アマ");
user_pref("mailnews.tags.$label8.color", "#0080ff");
user_pref("mailnews.tags.$label8.tag", "迷惑メ");

4.保存する

5.Thunderbirdを起動する

6.Thunderbird>設定>タグに表示されているか確認する



7.タグを設定したメールのタグを確認する

8.フィルターで使用している場合、表示されているか
また、非表示の場合は、改めてタグを設定する



※注意
尚、Thunderbirdの新たなバージョンで、タグを追加・編集すると、

新たな設定で作成される(と思う)ので、要注意です。




これは、たまたま上手くいったのかもしれません。
実施するなら、自己責任です


Windows10 Pro 22H2、パソコン版Thunderbird157ですが、

Thunderbirdのフィルターで

「新着メール受信時」を「迷惑メール分類後に実行」にしていると

フィルターで「フィルターの実行を中止する」が効かず、

以降のフィルターも実行されました。
(フィルターのログで確認しました)


しかし、「新着メール受信時」を「迷惑メール分類前に実行」にすると

フィルターで「フィルターの実行を中止する」が効き、

以降のフィルターが実行されません。
(フィルターのログで確認しました)

どういうことですか???
「SPAMチェック for OCN」でThunderbirdアドオンのブログを見つけました。

SPAMチェック for OCN の開発https://x.gd/nOA2h

概要
OCNの迷惑メール自動判定(無料)を使って、

メールのヘッダ(X-OCN-SPAM-CHECK)に100%となっている場合だけ、
「迷惑メール」マークがつきます。

※ただし、Authentication-Results: spf=passとdkim=passになっていたら、
「迷惑メール」マークを設定しません。
理由:送信ドメイン認証(SPF)で成功しているということは偽装していないからです。

作成したThunderbirdのフィルターです

条件
「FiltaQuillaアドオン」を使用・・・良いとして学習




今までは、ヘッダ(X-OCN-SPAM-CHECK)に100%は「迷惑メール」になり、

そこから、手動で正規のメールを救っていましたが、

これで、OCNが「迷惑メールと誤判定した正規メール」が

救えるハズなんだけどな…


※ちなみに、「メッセージに★スターを付ける」にしているのは、

OCNのヘッダ(X-OCN-SPAM-CHECK)=100.00%

つまり、「OCNが迷惑メールと判定した」と認識するために付けています