Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
メールが重要としてマークされているかどうかを Java Mail API から取得する方法はありますか? Gmail アカウントを使用して接続しています。前もって感謝します。
メッセージが「重要」であることを示す方法は、メーラーによって異なります。X-Priority ヘッダーを使用するものもあります。重要度ヘッダーを使用するものもあります。Gmail が何を使用しているのかはわかりませんが、メッセージの生のヘッダーを見ればわかるはずです。次に、JavaMail getHeader メソッドを使用してそのヘッダーにアクセスします。