[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Separate splitting for different mail sources?
From: |
Lars Ingebrigtsen |
Subject: |
Re: Separate splitting for different mail sources? |
Date: |
Wed, 28 Mar 2012 19:15:25 -0000 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux) |
Johann 'Myrkraverk' Oskarsson <johann@2ndquadrant.com> writes:
> I'm not afraid of writing some elisp - I have done that before. Any
> hint on how that might be achieved? Or are the gnus internals not to
> be explored by mere mortals?
Explore away. :-)
I'm not sure at all what the right approach here would be.
`mail-source-fetch' is called for each source (from
`nnmail-get-new-mail-1'). Perhaps the right thing to do would be to add
a :pre-function to each source, and then you could use that to set the
split methods for each source?
Like
(setq mail-sources ((pop3 ... :pre-function (lambda () (setq
nnmail-split-methods ...)))))
Or something. It might be fragile if the source fails, though, leaving
you with the wrong split methods the next time it's reading from the
crash box.
--
(domestic pets only, the antidote for overdose, milk.)
http://lars.ingebrigtsen.no * Sent from my Rome
Re: Separate splitting for different mail sources?,
Lars Ingebrigtsen <=