Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Lars-Johan Liman <info-gnus-english@cafax.se>
To: info-gnus-english@gnu.org
Subject: Filtering out calendar invites?
Date: Wed, 27 Oct 2021 17:24:50 +0200	[thread overview]
Message-ID: <22lf2eqym5.fsf@hiptop.liman.net> (raw)

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	other threads:[~2021-10-27 16:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-27 15:24 Lars-Johan Liman [this message]
2021-10-28  8:23 ` Lars-Johan Liman
2021-10-28 14:53   ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22lf2eqym5.fsf@hiptop.liman.net \
    --to=info-gnus-english@cafax.se \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).