info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Filtering out calendar invites?


From: Lars-Johan Liman
Subject: Filtering out calendar invites?
Date: Wed, 27 Oct 2021 17:24:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin)

Hi again!

(I'm positively surprised at the amount of list traffic my previous
simple question generated and very thankful for the attention it got, so
let's see about this one. ;-) )

I use the "imap" backend to download all mail and I want to filter out
messages that contain calendar invites in my incoming mail flow.

The trigger is that they contain a MIME message part with "Content-Type:
text/calendar".

I understand that the body may not be downloaded at the point of
splitting, but the IMAP protocol has the ability to list the
content-type of all MIME parts of a message on the server.

Is it possible to access that list of MIME parts and use it in a custom
function "(: (lambda nil ( ...)) )"in the nnmail-split-fancy variable?
If so, please hint or point me to RTFM.

Or is there a better/simpler way?

                                Cheers,
                                  /Liman
-- 
#-------------------------------------------------------------------------
# Lars-Johan Liman, M.Sc.                ! E-mail: info-gnus-english@cafax.se
# Cafax AB                               ! HTTP  : //www.cafax.se/
# Computer Consultants, Sweden           ! Voice : +46 8 - 564 702 30
#-------------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]