From: Francis Moreau <francis.moro@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: gnus active file has been overwritten
Date: Wed, 8 Jul 2009 04:48:10 -0700 (PDT) [thread overview]
Message-ID: <bcb6c9fc-ac4a-4a06-abaf-4bcc0129a28d@r33g2000yqn.googlegroups.com> (raw)
In-Reply-To: mailman.2053.1247046818.2239.help-gnu-emacs@gnu.org
On Jul 8, 11:53 am, David Engster <d...@randomsample.de> wrote:
> Francis Moreau <francis.m...@gmail.com> 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.git.
> > 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= (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 "=")))
+ (while (string-match "\\$" mid)
+ (setq mid (replace-match "=," t t mid)))
(let (allgroups)
(if (zerop (nnmairix-call-mairix-binary-raw
(split-string nnmairix-mairix-command)
next prev parent reply other threads:[~2009-07-08 11:48 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-27 14:03 gnus: how to improve searching for articles Francis Moreau
2009-06-27 17:29 ` Johan Bockgård
2009-06-28 0:02 ` Giorgos Keramidas
2009-06-29 6:15 ` Francis Moreau
2009-06-30 18:33 ` Giorgos Keramidas
2009-07-01 8:31 ` Francis Moreau
2009-07-01 17:25 ` Setting up nnmairix (was: gnus: how to improve searching for articles) David Engster
[not found] ` <mailman.1665.1246507878.2239.help-gnu-emacs@gnu.org>
2009-07-02 13:58 ` Francis Moreau
2009-07-02 22:28 ` Setting up nnmairix David Engster
[not found] ` <mailman.1718.1246573745.2239.help-gnu-emacs@gnu.org>
2009-07-06 15:21 ` Francis Moreau
2009-07-06 18:38 ` David Engster
2009-07-06 18:42 ` David Engster
[not found] ` <mailman.1938.1246905508.2239.help-gnu-emacs@gnu.org>
2009-07-07 7:26 ` Francis Moreau
2009-07-08 7:40 ` gnus active file has been overwritten [was Re: Setting up nnmairix ] Francis Moreau
2009-07-08 9:12 ` gnus active file has been overwritten David Engster
[not found] ` <mailman.2048.1247044367.2239.help-gnu-emacs@gnu.org>
2009-07-08 9:38 ` Francis Moreau
2009-07-08 9:53 ` David Engster
[not found] ` <mailman.2053.1247046818.2239.help-gnu-emacs@gnu.org>
2009-07-08 11:48 ` Francis Moreau [this message]
2009-07-08 13:59 ` David Engster
[not found] ` <mailman.2066.1247061569.2239.help-gnu-emacs@gnu.org>
2009-07-08 14:55 ` Francis Moreau
2009-07-08 21:22 ` David Engster
2009-07-21 7:47 ` Francis Moreau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bcb6c9fc-ac4a-4a06-abaf-4bcc0129a28d@r33g2000yqn.googlegroups.com \
--to=francis.moro@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).