Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Jesper Harder <harder@myrealbox.com>
Subject: Re: Can I split messages based on their size?
Date: Thu, 16 Oct 2003 17:46:18 +0200	[thread overview]
Message-ID: <m3n0c1p4mt.fsf@defun.localdomain> (raw)
In-Reply-To: <df73ae29.0310142359.2dabb32b@posting.google.com>

nurullah_akkaya@yahoo.com (Nurullah Akkaya) writes:

> Jesper Harder <harder@myrealbox.com> wrote:
>> 
>> You can define your own function:
>> 
>>    (defun my-> (size group)
>>      (when (> (buffer-size) size) group))
>> 
>> and then use element like
>> 
>>    (: my-> 100000 "too-big")
>
> thats realy intresting can u write a more complete function thx...

Do you mean how to use it in your splitting rules?  Here's an example:

(setq nnmail-split-methods 'nnmail-split-fancy)
(setq nnmail-split-fancy
      '(|
        (: my-> 100000 "too-big")
	("to"   "edri-news@edri.org" "edri-news")
        ("from" "bugzilla-daemon@mozilla.org" "Bugzilla")
        ;; etc.
	"other"))


      parent reply	other threads:[~2003-10-16 15:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <hddd6d5tugn.fsf@bacchus.pvv.ntnu.no>
     [not found] ` <m37k3ai5og.fsf@defun.localdomain>
     [not found]   ` <hddoewi6g50.fsf@bacchus.pvv.ntnu.no>
2003-10-15  9:56     ` Svend Tollak Munkejord
2003-10-15 15:32       ` Jesper Harder
     [not found]   ` <df73ae29.0310142359.2dabb32b@posting.google.com>
2003-10-16 15:46     ` Jesper Harder [this message]

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=m3n0c1p4mt.fsf@defun.localdomain \
    --to=harder@myrealbox.com \
    /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).