* Calling a function in nnmail-split-methods
@ 2002-09-05 13:04 Joakim Hove
2002-09-05 20:52 ` Oystein Viggen
0 siblings, 1 reply; 3+ messages in thread
From: Joakim Hove @ 2002-09-05 13:04 UTC (permalink / raw)
Hi,
according to the documentation of nnmail-split-methods it should be
possible to insert a function instead of a regexp to determine whether
a particular mail should go in group xxx, however i can not get the
syntax right:
(defun hotmail-check ()
;; OK - I will take it anyway:
't)
(setq nnmail-split-methods
'(("mail.hotmail" hotmail-check)
("mail.INBOX" "")))
The function hotmail-check is *never called*, and all messages end up
in the mail.INBOX group instead of the mail.hotmail group. I have
tried many varieties of quoting and such to no avail.
Any tips greatly appreciated.
Joakim
--
==== Joakim Hove www.phys.ntnu.no/~hove/ =======================
|| Institutt for fysikk (735) 93637 / E3-141 | Skøyensgate 10D ||
|| N - 7491 Trondheim hove@phys.ntnu.no | N - 7030 Trondheim ||
================================================= 73 93 31 68 =========
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Calling a function in nnmail-split-methods
2002-09-05 13:04 Calling a function in nnmail-split-methods Joakim Hove
@ 2002-09-05 20:52 ` Oystein Viggen
2002-09-06 7:51 ` Joakim Hove
0 siblings, 1 reply; 3+ messages in thread
From: Oystein Viggen @ 2002-09-05 20:52 UTC (permalink / raw)
* [Joakim Hove]
> (defun hotmail-check ()
> ;; OK - I will take it anyway:
> 't)
>
> (setq nnmail-split-methods
> '(("mail.hotmail" hotmail-check)
> ("mail.INBOX" "")))
I think hotmail-check should take one argument.
(defun hotmail-check (foo) t)
Oystein
--
When in doubt: Recompile.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Calling a function in nnmail-split-methods
2002-09-05 20:52 ` Oystein Viggen
@ 2002-09-06 7:51 ` Joakim Hove
0 siblings, 0 replies; 3+ messages in thread
From: Joakim Hove @ 2002-09-06 7:51 UTC (permalink / raw)
Oystein Viggen <oysteivi@tihlde.org> writes:
> * [Joakim Hove]
>
> > (defun hotmail-check ()
> > ;; OK - I will take it anyway:
> > 't)
> >
> > (setq nnmail-split-methods
> > '(("mail.hotmail" hotmail-check)
> > ("mail.INBOX" "")))
>
> I think hotmail-check should take one argument.
>
> (defun hotmail-check (foo) t)
That was correct - thanks a lot.
Joakim
--
==== Joakim Hove www.phys.ntnu.no/~hove/ =======================
|| Institutt for fysikk (735) 93637 / E3-141 | Skøyensgate 10D ||
|| N - 7491 Trondheim hove@phys.ntnu.no | N - 7030 Trondheim ||
================================================= 73 93 31 68 =========
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-06 7:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-05 13:04 Calling a function in nnmail-split-methods Joakim Hove
2002-09-05 20:52 ` Oystein Viggen
2002-09-06 7:51 ` Joakim Hove
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).