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 00:06:57 +0530 Organization: Code Is Great Foundation Message-ID: References: <878sa6ehbn.fsf@russet.org.uk> <87v9dawogx.fsf@ericabrahamsen.net> <877dpq6jp2.fsf@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="10133"; 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 Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 10 19:37:37 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 1knQoq-0002Xk-BS for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 19:37:36 +0100 Original-Received: from localhost ([::1]:39822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knQop-0004lS-Dl for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 10 Dec 2020 13:37:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knQoN-0004lJ-Hn for help-gnu-emacs@gnu.org; Thu, 10 Dec 2020 13:37:07 -0500 Original-Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:33962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knQoK-0002kh-D0 for help-gnu-emacs@gnu.org; Thu, 10 Dec 2020 13:37:07 -0500 Original-Received: by mail-pg1-x52b.google.com with SMTP id g18so5047238pgk.1 for ; Thu, 10 Dec 2020 10:37:03 -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=sWTCZdYmsFJQs8NR2W0pUZ54ECfCMxI3hTRtVYaCixk=; b=tLKTt5ssWQap79etwuY3R9ccL10wuezM+dHLoavOXfdU6TfvB0JTqZo94sElrHMxzS PG2KtuUug49tKVeNlOjgkQhjq/fBcpK925xFiU7zHPSyRlbbCPUlmnk4+xexkzOUL9/t TavMsIo7RaERe9p3PdoUYbhiSYSzqHFN1kWD/lYEA6RuMs77wxSsXbAFU34bcDF3GSSQ 70sdGi9G3fgV1mdkFivH7ggxEQndUaWHPB71CnCyVc1KEtMVHkVx4i3jBCl3UY8bqZyH Z8jsZaT+xUQbrdESQNpj4MSlAvgjiqzih1lXONVKXl7XqlONNYmzwtAoA6ZFBiPa+6qJ J/1A== 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=sWTCZdYmsFJQs8NR2W0pUZ54ECfCMxI3hTRtVYaCixk=; b=jMXmi2mEmbkHLWFrw5t7mBlMzZYnvD5G0k4G2/sicRgTXlNLmLz3dKP39hKsv6vBcF 8gIdl3MV4rBlLgrhdNoHBG0mm74mZsMKX63Nr6cchgpc+LZWAf8XNYBdfyumpwLamMgy ULZC7Ke0uo/94qkmu3wIQ+KZU6LVFZTHgwWy2n8sJQiNy7OkkNqupPOWi8pIUDY5eMTS fuSJOY9XXMYasW64j3Cp2J9Ulk6DT/epc7gSBC1MvfUDNNXiUV+oT38GcsTEfictRX15 qUydjxSngZTxDMgoHTxR+3EUIhMPyuKSi8F2H0MKeP2fAP6fBelAwH41Fn5rdC4bn4Oh XLOw== X-Gm-Message-State: AOAM531UP577g7zy9xZip0O+1QGlDVqPc8MKaeuCbqMNfwYgZ0KztmZ8 gdXEeZ8G+pOA4sjUoR83S+l5X14XnxeD5w== X-Google-Smtp-Source: ABdhPJzUiQbONy8t+esOqHVtD+cLmG8U4Hs8xhdIWEmekf1VSiWn22FB/ke3tZNJsHZrGFADnQ+Wfg== X-Received: by 2002:a17:90a:788e:: with SMTP id x14mr9160189pjk.139.1607625422259; Thu, 10 Dec 2020 10:37:02 -0800 (PST) Original-Received: from mb2.local ([2405:201:5c06:70bb:5496:de18:dfd9:7d04]) by smtp.gmail.com with ESMTPSA id z12sm6953735pfn.186.2020.12.10.10.37.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 10:37:01 -0800 (PST) Mail-Followup-To: Phillip Lord , Eric Abrahamsen , help-gnu-emacs@gnu.org In-Reply-To: <877dpq6jp2.fsf@russet.org.uk> (Phillip Lord's message of "Thu, 10 Dec 2020 10:26:17 +0000") Received-SPF: none client-ip=2607:f8b0:4864:20::52b; envelope-from=pankaj@codeisgreat.com; helo=mail-pg1-x52b.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:126227 Archived-At: Phillip Lord writes: >>> (setq gnus-select-method '(nnnil "")) >>> (setq gnus-secondary-select-methods >>> '( >>> (nnimap "localhost" >>> (nnimap-address "localhost") >>> (nnimap-server-port 143) >>> ;; [...] >>> (nnimap-inbox "INBOX") >>> (nnimap-split-methods 'nnimap-split-fancy) >> >> Don't quote 'nnimap-split-fancy in this line. In fact, it's possible >> that you can do without this dance altogether -- the manual makes it >> look like that's okay. Maybe take this clause out and see if it works, >> and if it doesn't, put it back in but don't quote nnimap-split-fancy. > > Alas no. I am still confused as to whether the server are being set at > all. As pointed out by Eric, this is a quoting issue. I had some rough days setting it up. But with help from others, I got to know this. I am not using fancy splitting. I am using simple splitting and here is my setup: --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---