help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to split (IMAP client side split) incoming mails into groups for


From: gnuforever
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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Emanuel Berg <moasen@zoho.com> 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" "")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]