[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nnimap-split-methods ?
From: |
David Masterson |
Subject: |
Re: nnimap-split-methods ? |
Date: |
Sun, 30 Aug 2020 19:08:06 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Jamie Beardslee <jdb@jamzattack.xyz> writes:
> 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:
>
> (setq nnimap-split-methods
> '(("mail.orgmode" "^\\(To:\\|Cc:\\).*emacs-orgmode@gnu.org")
> ("mail.emacs" "^\\(To:\\|Cc:\\).*help-gnu-emacs@gnu.org")
> ("mail.misc" "")))
>
Ah! That makes sense. Thanks
--
David Masterson