[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nnimap-split-methods ?
From: |
Jamie Beardslee |
Subject: |
Re: nnimap-split-methods ? |
Date: |
Sat, 29 Aug 2020 17:04:15 +1200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
David Masterson <dsmasterson92630@outlook.com> writes:
> (setq nnimap-split-methods
> '(
> ("mail.orgmode" "^\(To:\|Cc:\).*emacs-orgmode@gnu.org")
> ("mail.emacs" "^\(To:\|Cc:\).*help-gnu-emacs@gnu.org")
> ("mail.misc" "")
> )
> )
The backslashes are being swallowed by Elisp's string syntax. i.e. "\("
means the same thing as "(", you need to escape the backslash "\\(".
Try this:
--8<---------------cut here---------------start------------->8---
(setq nnimap-split-methods
'(("mail.orgmode" "^\\(To:\\|Cc:\\).*emacs-orgmode@gnu.org")
("mail.emacs" "^\\(To:\\|Cc:\\).*help-gnu-emacs@gnu.org")
("mail.misc" "")))
--8<---------------cut here---------------end--------------->8---