From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66868 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: how to sort (filter) msg which contain MS word documents Date: Thu, 24 Apr 2008 20:43:31 +0200 Message-ID: References: <87prssepd5.fsf@mat.ucm.es> <87skxbcnqw.fsf@mat.ucm.es> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1209062692 1730 80.91.229.12 (24 Apr 2008 18:44:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2008 18:44:52 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15350@lists.math.uh.edu Thu Apr 24 20:45:27 2008 connect(): Connection refused Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jp6Ra-0003GT-BQ for ding-account@gmane.org; Thu, 24 Apr 2008 20:45:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Jp6Qj-0003Xz-NM; Thu, 24 Apr 2008 13:44:25 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Jp6Qi-0003Xf-AW for ding@lists.math.uh.edu; Thu, 24 Apr 2008 13:44:24 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1Jp6Qc-0007gU-Al for ding@lists.math.uh.edu; Thu, 24 Apr 2008 13:44:24 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Jp6Qn-0001j2-00 for ; Thu, 24 Apr 2008 20:44:29 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jp6QU-0001Ta-3D for ding@gnus.org; Thu, 24 Apr 2008 18:44:10 +0000 Original-Received: from hsi-kbw-082-212-057-126.hsi.kabelbw.de ([82.212.57.126]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Apr 2008 18:44:10 +0000 Original-Received: from Reiner.Steib by hsi-kbw-082-212-057-126.hsi.kabelbw.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Apr 2008 18:44:10 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 48 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: hsi-kbw-082-212-057-126.hsi.kabelbw.de X-Face: :6KQZ[nyoS_edmB.%gw-=)BYth^|2+Y+^cu%I$FSx!&>-'om>3H7A|M&n(V7fIo3P.;yo.b yq4$p;ZaBtkv)\}biaiBQe"mD}iib1AA@99-fZ7i*bLhNRVC&0Wkxg9)SH?oWc@{ Mail-Copies-To: nobody User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2.50 (gnu/linux) Cancel-Lock: sha1:n2bKB5Y6RClL/t65tfDpHSnqazY= X-Spam-Score: -1.6 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66868 Archived-At: On Thu, Apr 24 2008, Uwe Brauer wrote: >>>>>> "Reiner" == Reiner Steib writes: > > On Mon, Apr 14 2008, Uwe Brauer wrote: > >> I know that for new message I could use the gnus-splitting > >> group and specify the content type like: ("Content-type" > >> "application/msword" "DOC") > > > Does this actually work? I think that nnmail-split-methods only apply > > to the headers... > > You are right! So there is no way to split DOC attachments? You need to widen the buffer during the splitting and search for application/msword. There's an example in (info "(gnus)Fancy Mail Splitting") from where you can start: ,----[ (info "(gnus)Fancy Mail Splitting") ] | `(: FUNCTION ARG1 ARG2 ...)' | If the split is a list, and the first element is `:', then the | second element will be called as a function with ARGS given as | arguments. The function should return a SPLIT. | | For instance, the following function could be used to split based | on the body of the messages: | | (defun split-on-body () | (save-excursion | (save-restriction | (widen) | (goto-char (point-min)) | (when (re-search-forward "Some.*string" nil t) | "string.group")))) | | The buffer is narrowed to the header of the message in question | when FUNCTION is run. That's why `(widen)' needs to be called | after `save-excursion' and `save-restriction' in the example | above. Also note that with the nnimap backend, message bodies will | not be downloaded by default. You need to set | `nnimap-split-download-body' to `t' to do that (*note Splitting in | IMAP::). `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/