Funkcionalnosć toś togo sedła se pśez wótwardowańske źěła wobgranicujo, kótarež maju wašo dožywjenje pólěpšyś. Jolic nastawk waš problem njerozwězujo a cośo pšašanje stajiś, wobrośćo se na našo zgromoźeństwo pomocy, kótarež na to caka, wam na @FirefoxSupport na Twitter a /r/firefox na Reddit pomagaś.

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Dalšne informacije

Filter by attachment Content-Type only works for some messages

  • 2 wótegronje
  • 2 matej toś ten problem
  • 20 naglědow
  • Slědne wótegrono wót 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 ...

Wšykne wótegrona (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.