From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: gnuforever Newsgroups: gmane.emacs.help Subject: Re: How to split (IMAP client side split) incoming mails into groups for multiple emails addresses with Gnus Date: Mon, 15 Jan 2018 05:35:51 +0000 Message-ID: <87k1wjk7k8.fsf@tuyizere.org> References: <86d12ltmc7.fsf@zoho.com> <86wp0sq6o9.fsf@zoho.com> <86mv1lffhl.fsf@zoho.com> <86a7xgezz8.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515994482 13159 195.159.176.226 (15 Jan 2018 05:34:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Jan 2018 05:34:42 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 15 06:34:38 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eaxPk-0002eP-FF for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Jan 2018 06:34:32 +0100 Original-Received: from localhost ([::1]:38269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaxRi-0002Ro-8k for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Jan 2018 00:36:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaxR9-0002RD-Pd for help-gnu-emacs@gnu.org; Mon, 15 Jan 2018 00:36:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaxR6-00043s-LF for help-gnu-emacs@gnu.org; Mon, 15 Jan 2018 00:35:59 -0500 Original-Received: from edna.lautre.net ([80.67.160.88]:37803) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eaxR6-000438-Bh for help-gnu-emacs@gnu.org; Mon, 15 Jan 2018 00:35:56 -0500 Original-Received: from e7c84bd7bec7 (203-4-62-37.mobileinternet.proximus.be [37.62.4.203]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by edna.lautre.net (Postfix) with ESMTPSA id 3476724E16 for ; Mon, 15 Jan 2018 06:35:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=tuyizere.org; s=alternc; t=1515994551; bh=b+l7AgwQF/iYzXWS+0h4QmzV8FW8kmcqlYDlkIbwChQ=; h=From:To:Subject:References:Date:In-Reply-To; b=v5CnbhNWk/pRc++yf1AHlE5EoKOzBrN7rIudOWY9W97Y+ZqENvRh95OvzT5/gPF/O tKQk0NVgRvw7qUUaFoypgxMxzdPlSQ9TmpYsj8d6USCnpmGk9Z/jHyHe0n7aAe/iT/ iXRopWsvvubyA5xJexFOcU0R6RTjocUwhz/Z3rbY= In-Reply-To: <86a7xgezz8.fsf@zoho.com> (Emanuel Berg's message of "Mon, 15 Jan 2018 01:18:35 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 80.67.160.88 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115729 Archived-At: Emanuel Berg writes: > > I was just about to say "I told you so" but > then I stuck me that that is the hole purpose > of a Q&A help list :) > > Anyway glad it worked. Indeed :-) It was a helpful command. I am posting my config. If someone wants to use it or has a better way to do the split, feel free. (setq gnus-select-method '(nnnil "")) (setq gnus-secondary-select-methods '((nnimap "myfirstEmail@somedomain.com" (nnimap-address "imapserver1") (nnimap-inbox "INBOX") (nnimap-split-methods default) (nnimap-expunge t) (nnimap-stream ssl) (nnimap-user "myfirstEmail@somedomain.com")) (nnimap "mysecondEmail@otherdomain.com" (nnimap-address "imapserver2") (nnimap-inbox "INBOX") (nnimap-split-methods default) (nnimap-expunge t) (nnimap-stream ssl) (nnimap-user "mysecondEmail@otherdomain.com")))) (setq nnmail-split-methods ;; myfirstEmail@somedomain.com '(("INBOX.FeistyDuckTLS" "From:.*newsletter@feistyduck.com") ("INBOX.guix-devel" "\\(To\\|Cc\\):.*guix-devel@gnu.org") ("INBOX.gpg-users" "\\(To\\|Cc\\):.*gnupg-users@gnupg.org") ("INBOX.help-gnu-emacs" "\\(To\\|Cc\\):.*help-gnu-emacs@gnu.org") ("INBOX.gnuk-users" "\\(To\\|Cc\\):.*gnuk-users@lists.alioth.debian.org") ;; mysecondEmail@otherdomain.com ("INBOX.PRIVATE" "Subject:.*private") ("INBOX.WORK" "Subject:.*work") ("INBOX" "")))