From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56480 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap support for "NAMESPACE" (prefix "INBOX." on Date: Mon, 01 Mar 2004 15:57:13 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4nd67wmgk6.fsf@collins.bwh.harvard.edu> References: <86u11ciczp.fsf@PECTOPAH.shenton.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1078174784 26645 80.91.224.253 (1 Mar 2004 20:59:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Mar 2004 20:59:44 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M5021@lists.math.uh.edu Mon Mar 01 21:59:39 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AxuVm-0005nK-00 for ; Mon, 01 Mar 2004 21:59:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AxuVW-0000Kw-00; Mon, 01 Mar 2004 14:59:22 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AxuVR-0000Kr-00 for ding@lists.math.uh.edu; Mon, 01 Mar 2004 14:59:17 -0600 Original-Received: from clifford.bwh.harvard.edu (clifford.bwh.harvard.edu [134.174.9.41]) by justine.libertine.org (Postfix) with ESMTP id 779E93A0027 for ; Mon, 1 Mar 2004 14:59:16 -0600 (CST) Original-Received: from collins.bwh.harvard.edu (collins [134.174.9.80]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id i21KvRU16696; Mon, 1 Mar 2004 15:57:27 -0500 (EST) Original-Received: from collins.bwh.harvard.edu (localhost [127.0.0.1]) by collins.bwh.harvard.edu (8.12.9+Sun/8.11.0) with ESMTP id i21KvEvl029058; Mon, 1 Mar 2004 15:57:14 -0500 (EST) Original-Received: (from tzz@localhost) by collins.bwh.harvard.edu (8.12.9+Sun/8.12.9/Submit) id i21KvD9o029055; Mon, 1 Mar 2004 15:57:13 -0500 (EST) Original-To: Chris Shenton X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Followup-To: Chris Shenton , ding@gnus.org In-Reply-To: <86u11ciczp.fsf@PECTOPAH.shenton.org> (Chris Shenton's message of "Fri, 27 Feb 2004 13:38:50 -0500") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (usg-unix-v) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56480 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56480 I also would like to find the namespace prefix and separator from the IMAP server. Right now I do this in order to have working splitting: (setq nnimap-split-rule '( ("lifelogs" ("INBOX" nnimap-split-fancy)) ; UW IMAP ("sysblade0" ("INBOX" nnimap-courier-split-fancy))) ; Courier nnimap-courier-split-fancy '(| ; ... omitted ... (: gnus-registry-split-fancy-with-parent) (: spam-split 'spam-use-regex-headers) ; ... omitted ... (: spam-split 'spam-use-blackholes) ;; default mailbox "INBOX.mail") nnimap-split-inbox "INBOX" nnimap-split-fancy '(| ; ... omitted ... (: gnus-registry-split-fancy-with-parent) (: spam-split 'spam-use-regex-headers) ; ... omitted ... (: spam-split) ;; default mailbox "mail") ) (defun nnimap-courier-split-fancy () (let ((nnimap-split-fancy nnimap-courier-split-fancy) (spam-split-group "INBOX.spam")) (nnimap-split-fancy))) Note I set the spam-split-group also, because it's "spam" by default. With the namespace prefix this would be simpler. I would still have separate split rules because the servers have different purposes, but I wouldn't have to set the spam-split-group explicitly, and I wouldn't have different mailbox names everywhere. That being said, I think the Courier model of having a namespace prefix for private vs. shared vs. public groups is very clean, and I like it very much. Ted