From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19851 invoked from network); 27 Oct 2021 16:07:40 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 27 Oct 2021 16:07:40 -0000 Received: from localhost ([::1]:49918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mflSj-0005Mp-Tb for ml@inbox.vuxu.org; Wed, 27 Oct 2021 12:07:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfknT-0002VR-Er for info-gnus-english@gnu.org; Wed, 27 Oct 2021 11:25:00 -0400 Received: from mail.cafax.se ([192.71.228.22]:56114) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfknO-0001vN-JC for info-gnus-english@gnu.org; Wed, 27 Oct 2021 11:24:58 -0400 Received: from hiptop.liman.net (office8.ggv13.sth.netnod.se [77.72.226.8]) (Authenticated sender: liman@cafax.se) by mail.cafax.se (Postfix) with ESMTPSA id 866DE48224 for ; Wed, 27 Oct 2021 17:24:50 +0200 (MEST) Received: from hiptop.liman.net (localhost [IPv6:::1]) by hiptop.liman.net (Postfix) with ESMTP id 1D27710D6512 for ; Wed, 27 Oct 2021 17:24:50 +0200 (CEST) (envelope-from info-gnus-english@cafax.se) From: Lars-Johan Liman To: info-gnus-english@gnu.org Subject: Filtering out calendar invites? Date: Wed, 27 Oct 2021 17:24:50 +0200 Message-ID: <22lf2eqym5.fsf@hiptop.liman.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=192.71.228.22; envelope-from=info-gnus-english@cafax.se; helo=mail.cafax.se X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 5.0 requ) BAYES_05=-0.5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" 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 #-------------------------------------------------------------------------