当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Filter by attachment Content-Type only works for some messages

  • 2 件の返信
  • 2 人がこの問題に困っています
  • 20 回表示
  • 最後の返信者: basinilya

more options

I need to filter calendar events. All such messages have an attachment with Content-Type: text/calendar.

Here: http://forums.mozillazine.org/viewtopic.php?p=724059&sid=c5807de9790f2a3ac3c3ed36531297c4#p724059 I found that a body filter also applies to attacment headers.

I created a test filter "Body contains text/calendar" with the action to mark matched messages as unread. When I run the filter on my inbox, only some calendar messages are affected:

Here's an extract from a message that matches:

   Content-Type: multipart/mixed; boundary="001a1144413e115b8c055e744899"
   ...    
   </span></span>
   </body>
   </html>
   
   --001a1144413e115b87055e744897
   Content-Type: text/calendar; charset="UTF-8"; method=REQUEST
   Content-Transfer-Encoding: 7bit
   
   BEGIN:VCALENDAR
   ...    


And here's an extract from a message that does not match:

   Content-Type: multipart/alternative;
   	boundary="_002_FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF_"
   ...    
   38zzLfaIt905RaHpwW10gxDaRM7fugsiycNfVW3ThPWAV0jAVl2v4DdneUk=
   
   --_002_FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF_
   Content-Type: text/calendar; charset="utf-8"; method=REQUEST
   Content-Transfer-Encoding: base64
   
   VKeoFC+u2MIsA+disK1yxSRWLpQJSbDdI1vXTzvVobC3rN+UqxzEd4HUhCnxlPH3rPFCuzefeDea
   ...
I need to filter calendar events. All such messages have an attachment with Content-Type: text/calendar. Here: http://forums.mozillazine.org/viewtopic.php?p=724059&sid=c5807de9790f2a3ac3c3ed36531297c4#p724059 I found that a body filter also applies to attacment headers. I created a test filter "Body contains text/calendar" with the action to mark matched messages as unread. When I run the filter on my inbox, only some calendar messages are affected: Here's an extract from a message that matches: Content-Type: multipart/mixed; boundary="001a1144413e115b8c055e744899" ... </span></span> </body> </html> --001a1144413e115b87055e744897 Content-Type: text/calendar; charset="UTF-8"; method=REQUEST Content-Transfer-Encoding: 7bit BEGIN:VCALENDAR ... And here's an extract from a message that does not match: Content-Type: multipart/alternative; boundary="_002_FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF_" ... 38zzLfaIt905RaHpwW10gxDaRM7fugsiycNfVW3ThPWAV0jAVl2v4DdneUk= --_002_FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF_ Content-Type: text/calendar; charset="utf-8"; method=REQUEST Content-Transfer-Encoding: base64 VKeoFC+u2MIsA+disK1yxSRWLpQJSbDdI1vXTzvVobC3rN+UqxzEd4HUhCnxlPH3rPFCuzefeDea ...

すべての返信 (2)

more options

re : I created a test filter "Body contains text/calendar"

Suggest you try : 'Content-Type' 'contains' 'calendar'

I've just tested a filter using 'Content-Type' 'contains' 'alternative' which I ran manually on Inbox and everything was correctly moved as specified in filter.

Please note that filters run in the order listed, so if an email has already been filtered by another filter then it will not be able to filter as expected because email is not there.

more options

Toad-Hall said

Suggest you try : 'Content-Type' 'contains' 'calendar'

This didn't work, because only the first occurrence of Content-Type is matched. Besides, the word "calendar" would give too many false positives. 'Body' 'contains' behaves differently for the two messages in my example. I can search the insights of the attachments in both of them, even though the second one is base64-encoded, but only in the first message I can search the attachment headers.