From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Moreau Newsgroups: gmane.emacs.help Subject: Re: gnus active file has been overwritten Date: Wed, 8 Jul 2009 04:48:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <874ou15ip7.fsf@kobe.laptop> <843331d7-e555-4a30-a716-fdf617a22499@l12g2000yqo.googlegroups.com> <87k52tbmht.fsf@kobe.laptop> <8682e5a7-6d39-4882-b82b-269175381b5e@k8g2000yqn.googlegroups.com> <0629b6b1-dfe8-419e-8d97-d6f22bbf6bd7@a36g2000yqc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1247057853 29598 80.91.229.12 (8 Jul 2009 12:57:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2009 12:57:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 08 14:57:26 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MOWiD-00073C-26 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jul 2009 14:57:25 +0200 Original-Received: from localhost ([127.0.0.1]:44000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOWiC-0008HT-Gd for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jul 2009 08:57:24 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!r33g2000yqn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 136 Original-NNTP-Posting-Host: 213.41.232.205 Original-X-Trace: posting.google.com 1247053690 27033 127.0.0.1 (8 Jul 2009 11:48:10 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 8 Jul 2009 11:48:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r33g2000yqn.googlegroups.com; posting-host=213.41.232.205; posting-account=ekTE0goAAADiVCThPmo4ph0C5bTUhQOx User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.10) Gecko/2009042708 Fedora/3.0.10-1.fc9 Firefox/3.0.10, gzip(gfe), gzip(gfe) X-HTTP-Via: 1.1 grimoire.wyplay.int:3128 (squid/2.5.STABLE14) Original-Xref: news.stanford.edu gnu.emacs.help:170643 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65844 Archived-At: On Jul 8, 11:53=A0am, David Engster wrote: > Francis Moreau writes: > >> > I don't know if that helps but I saw this in my message buffer: > > >> > nnmairix-request-group: Wrong type argument: number-or-marker-p, x > >> > \.zz_mairix-search-1 > > >> I thought I've fixed this. Are you using the latest version? In Gnus > >> CVS, nnmairix should be revision 7.14, in Emacs CVS it's revision 1.13 > >> (which is also in the latest pretest, 23.0.95). > > > Hm, I got Emacs sources from git mirror at git://git.sv.gnu.org/emacs.g= it. > > Emacs version is GNU Emacs 23.0.94.1 and it seems that nnmairix > > revision is only 0.6, I read this from the header of lisp/gnus/ > > nnmairix.el. So it seems pretty old. > > I'm talking about the revisions which are shown by CVS, i.e. by "cvs log > nnmairix.el". The "0.6" is my old versioning before nnmairix was > included into Gnus. I know this is confusing; I should probably remove > that. ah ok. So I don't know exactly which revision I'm using so I'm not sure if it has still the bug. I'm putting the diff between the revision I'm using and the one I got from the last emacs source. Could you tell me if the bug is still there ? thanks --- /dev/shm/nnmairix.el 2009-07-08 13:43:26.320776000 +0200 +++ lisp/gnus/nnmairix.el 2009-06-09 11:02:32.000000000 +0200 @@ -23,9 +23,6 @@ ;;; Commentary: -;; THIS IS BETA SOFTWARE! This back end should not mess up or -;; even delete your mails, but having a backup is always a good idea. - ;; This is a back end for using the mairix search engine with ;; Gnus. Mairix is a tool for searching words in locally stored ;; mail. Mairix is very fast which allows using it efficiently for @@ -35,32 +32,6 @@ ;; ;; Mairix is written by Richard Curnow. More information can be found at ;; http://www.rpcurnow.force9.co.uk/mairix/ -;; -;; For details about setting up mairix&Gnus&nnmairix.el, look at the -;; emacswiki: -;; -;; http://www.emacswiki.org/cgi-bin/wiki/GnusMairix -;; -;; The newest version of nnmairix.el can be found at -;; -;; http://www.emacswiki.org/cgi-bin/emacs/nnmairix.el - -;; For impatient people, here's the setup in a nutshell: -;; -;; This back end requires an installed mairix binary which is -;; configured to index your mail folder. You don't have to specify a -;; search folder (but it does no harm, either). Visit the man page of -;; mairix and mairixrc for details. -;; -;; Put nnmairix.el into your search path and "(require 'nnmarix)" into -;; your .gnus. Then call nnmairix-create-default-group (or 'G b -;; c'). This function will ask for all necessary information to create -;; a mairix server in Gnus with the default search folder. This -;; default search folder will be used for all temporary searches: call -;; nnmairix-search ('G b s') and enter a mairix query (like -;; f:test@example.com). To create a mairix group for one specific -;; search query, use 'G b g'. See the emacswiki or the source for more -;; information. ;; Commentary on the code: nnmairix sits between Gnus and the "real" ;; back end which handles the mail (currently nnml, nnimap and @@ -522,7 +493,7 @@ (when (eq nnmairix-backend 'nnml) (when nnmairix-rename-files-for-nnml (nnmairix-rename-files-consecutively mfolder)) - (nnml-generate-nov-databases-directory mfolder)) + (nnml-generate-nov-databases-directory mfolder nil t)) (nnmairix-call-backend "request-scan" folder nnmairix-backend-server) (if (and fast allowfast) @@ -585,8 +556,13 @@ (mapcar (lambda (arg) (- arg numcorr)) articles))) - (setq rval (nnmairix-call-backend - "retrieve-headers" articles folder nnmairix-backend-server fetch- old)) + (setq rval + (if (eq nnmairix-backend 'nnimap) + (let ((gnus-nov-is-evil t)) + (nnmairix-call-backend + "retrieve-headers" articles folder nnmairix-backend-server fetch- old)) + (nnmairix-call-backend + "retrieve-headers" articles folder nnmairix-backend-server fetch-old))) (when (eq rval 'nov) (nnmairix-replace-group-and-numbers articles folder group numcorr) rval))) @@ -1223,7 +1199,8 @@ (unless (and skipdefault (string=3D (car cur) default)) (gnus-group-jump-to-group (car cur)) - (gnus-group-get-new-news-this-group))))))) + (gnus-group-mark-group 1))) + (gnus-group-get-new-news-this-group))))) (defun nnmairix-remove-tick-mark-original-article () "Remove tick mark from original article. @@ -1692,6 +1669,11 @@ (nnmairix-open-server server) (while (string-match "[<>]" mid) (setq mid (replace-match "" t t mid))) + ;; mairix somehow does not like '$' in message-id + (when (string-match "\\$" mid) + (setq mid (concat mid "=3D"))) + (while (string-match "\\$" mid) + (setq mid (replace-match "=3D," t t mid))) (let (allgroups) (if (zerop (nnmairix-call-mairix-binary-raw (split-string nnmairix-mairix-command)