From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.help Subject: Re: nnimap splitting Date: Fri, 11 Dec 2020 10:43:58 +0530 Organization: Code Is Great Foundation Message-ID: References: <878sa6ehbn.fsf@russet.org.uk> <87v9dawogx.fsf@ericabrahamsen.net> <877dpq6jp2.fsf@russet.org.uk> <1d30cad3346c3d955911198146a18148@russet.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29018"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: Eric Abrahamsen , help-gnu-emacs@gnu.org To: phillip.lord@russet.org.uk Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 11 06:14:30 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1knalC-0007Ro-6E for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 06:14:30 +0100 Original-Received: from localhost ([::1]:55910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knalB-0005Xt-87 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 00:14:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knakp-0005Xf-B2 for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 00:14:07 -0500 Original-Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:40372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knakn-0001HA-La for help-gnu-emacs@gnu.org; Fri, 11 Dec 2020 00:14:07 -0500 Original-Received: by mail-pg1-x534.google.com with SMTP id t37so6352140pga.7 for ; Thu, 10 Dec 2020 21:14:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:organization:references:mail-followup-to:date :in-reply-to:message-id:user-agent:mime-version :content-transfer-encoding; bh=QOgEa4WsGNjXp6s3Qkdc7AJi9nc9WeJNE0Z+5j6tadE=; b=gd69w1krbQtLoQu+hQfLj2BG4kRYZ2oE/545AgsgS1zasmXYou26jATwK2TCaT3LC/ 2CBrlepbTz6mm9VDCT1MW7/QQ9ayq0ZQu40lkA9Gx5Xq3lR1d35GLzdqIbcEGZNgh7pK WvMjaOchEVWGcc03WWn8bBL3eKSCFbI0cF4feHgXmYcpmdU006ioXbrSxSCVfK8kkin/ Q7krIHncJyFJjl4ePw+jzcPBze2IBPU+7azsaGNVOp8Wfnb/Nibo/J++4AQDzSG6GyLz AaMZfpqhqxJFMjyrY5+2fPUlD43AV8zvoIBJKnAzFqOwtqfuzyCB7S22TqmWEsfi1d+6 YqAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-followup-to:date:in-reply-to:message-id:user-agent :mime-version:content-transfer-encoding; bh=QOgEa4WsGNjXp6s3Qkdc7AJi9nc9WeJNE0Z+5j6tadE=; b=XcBGMFTy5dvZmwyEKqWJyXKsasbEPVvBWA3MnDfse4JQPcjjPALHajjiDpgROOHlGw D/y+ZquiaCffvWK3KDmmueKDiYvG+CYc4pOBmqvSs2/tgXhchoo5Q0EioSec89KL/Cig 7t8N+0Yc4rmD3VB9btkt7jkniKy6lVBS51Hf+8ZpND4OEuFAEx3bS3xuv8f+d7c0QKeP PtpncVYVABn18TdEDlbpbD4z4aNZjZrD9wr2U9Mvhu9Y/rjKycU91DfIT9v0ovagotIu 9NsZyw3Kx9Kcxc+RctGc3KYAN0EIaOtRKsPWK+YP50Zan6vgGULi3oWTWGWOa9pBdzj+ dGgw== X-Gm-Message-State: AOAM5303ARYq8E6s6YYH0UeGeKUbwoGrkf+l+6jvsuqnVH3ag8suzWMf HmW0tHWQLDTpHvkaM2us6eospoi27r4k/w== X-Google-Smtp-Source: ABdhPJw51aYlVJXwUw9+Oqa9G3TzX6FdpfVFsylojwVcbmuiKEPubw6o0ujUo2/UZvx62OCAOm0qGw== X-Received: by 2002:a65:44c2:: with SMTP id g2mr9992077pgs.256.1607663644073; Thu, 10 Dec 2020 21:14:04 -0800 (PST) Original-Received: from mb2.local ([2405:201:5c06:70bb:e42a:7ba8:64be:c1c8]) by smtp.gmail.com with ESMTPSA id f7sm8071567pfe.30.2020.12.10.21.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 21:14:03 -0800 (PST) Mail-Followup-To: phillip.lord@russet.org.uk, Eric Abrahamsen , help-gnu-emacs@gnu.org In-Reply-To: <1d30cad3346c3d955911198146a18148@russet.org.uk> (phillip lord's message of "Thu, 10 Dec 2020 18:58:08 +0000") Received-SPF: none client-ip=2607:f8b0:4864:20::534; envelope-from=pankaj@codeisgreat.com; helo=mail-pg1-x534.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126239 Archived-At: phillip.lord@russet.org.uk writes: >> --8<---------------cut here---------------start------------->8--- >> 1 (add-to-list 'gnus-secondary-select-methods ; codeisgreat.org >> 2 `(nnimap "codeisgreat" >> 3 (nnimap-address "imap.gmail.com") >> 4 (nnimap-inbox "INBOX") >> 5 (nnimap-expunge immediately) >> 6 (nnimap-stream ssl) >> 7 (nnimap-split-methods ,nnmail-split-methods))) >> --8<---------------cut here---------------end--------------->8--- >> Notice backquote on line 2 and comma on line 7. And >> =E2=80=98nnmail-split-methods=E2=80=99 is defined like this: >> --8<---------------cut here---------------start------------->8--- >> (setq nnmail-split-methods >> '(("cron" "^from:.*Cron Daemon") >> ("cron" "^from: OSSEC HIDS ") >> ("cron" "^from: OSSEC HIDS "))) >> --8<---------------cut here---------------end--------------->8--- > > > Just out of curiosity, why do you not use `(nnimap-split-methods > default)` which should do the same thing without the backtick. This has a little history. I have many IMAP servers to fetch from. And I had different variables to set splitting for each. Quoting was necessary then. It is only recently, after looking at an 11 year old message from Lars in a mailing list, that I have switched to using a common variable, which, as you said, could be replaced with default.