all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jamie Beardslee <jdb@jamzattack.xyz>
To: help-gnu-emacs@gnu.org
Subject: Re: nnimap-split-methods ?
Date: Sat, 29 Aug 2020 17:04:15 +1200	[thread overview]
Message-ID: <87k0xi11rk.fsf@jamzattack.xyz> (raw)
In-Reply-To: SN6PR01MB4493963285C1FA84B9B4121E9B530@SN6PR01MB4493.prod.exchangelabs.com

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---




  reply	other threads:[~2020-08-29  5:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-29  3:43 nnimap-split-methods ? David Masterson
2020-08-29  5:04 ` Jamie Beardslee [this message]
2020-08-31  2:08   ` David Masterson
2020-08-31 23:12   ` David Masterson
2020-08-31 23:22     ` David Masterson

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=87k0xi11rk.fsf@jamzattack.xyz \
    --to=jdb@jamzattack.xyz \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.