Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Filter by attachment Content-Type only works for some messages

  • 2 trả lời
  • 2 gặp vấn đề này
  • 4 lượt xem
  • Trả lời mới nhất được viết bởi 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 ...

Tất cả các câu trả lời (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.