From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53621 Path: main.gmane.org!not-for-mail From: John Owens Newsgroups: gmane.emacs.gnus.general Subject: Re: marks in gnus / uw imapd: what marks / how to set? Date: Mon, 4 Aug 2003 11:08:58 -0700 Sender: ding-owner@lists.math.uh.edu Message-ID: <16174.41274.451000.736598@ece.ucdavis.edu> References: <16174.26916.787632.310427@samba3.ece.ucdavis.edu> <16174.35886.132000.409517@ece.ucdavis.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1060020539 20232 80.91.224.253 (4 Aug 2003 18:08:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 4 Aug 2003 18:08:59 +0000 (UTC) Cc: John Owens , ding@gnus.org Original-X-From: ding-owner+M2165@lists.math.uh.edu Mon Aug 04 20:09:16 2003 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 19jjlk-0008Kl-00 for ; Mon, 04 Aug 2003 20:09:16 +0200 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 19jjlb-0001tE-00; Mon, 04 Aug 2003 13:09:07 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19jjlU-0001t8-00 for ding@lists.math.uh.edu; Mon, 04 Aug 2003 13:09:00 -0500 Original-Received: (qmail 18808 invoked by alias); 4 Aug 2003 18:09:00 -0000 Original-Received: (qmail 18800 invoked from network); 4 Aug 2003 18:08:59 -0000 Original-Received: from samba3.ece.ucdavis.edu (169.237.32.21) by sclp3.sclp.com with SMTP; 4 Aug 2003 18:08:59 -0000 Original-Received: from WEETABIX (weetabix.ece.ucdavis.edu [169.237.74.64]) by samba3.ece.ucdavis.edu (8.11.6/8.11.6) with ESMTP id h74I8xZ32590; Mon, 4 Aug 2003 11:08:59 -0700 Original-To: Simon Josefsson In-Reply-To: X-Mailer: VM 7.17 under Emacs 21.3.1 Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53621 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53621 Simon Josefsson writes: John Owens writes: > Simon Josefsson writes: > The Gnusish way to do this would be to make Gnus read VM mailboxes > properly. I wonder if this is difficult. Is the VM mailbox format > described anywhere? Maybe it is just babyl and some external marks > stuff? I'm not really familiar with VM. > > It's not a hard format. My elisp fu is weak, but I would certainly be > willing to help with the transition. It's a simple format: every > message has the following header: > > X-VM-v5-Data: ([nil nil nil nil t nil nil nil nil] > ["2009" "Monday" "4" "August" "2003" "09:23:04" "+0200" "Simon Josefsson" "jas@extundo.com" "" "58" "Re: marks in gnus / uw imapd: what marks / how to set?" "^From:" nil nil "8" nil nil (number " " mark " R Simon Josefsson Aug 4 58/2009 " thread-indent "\"Re: marks in gnus / uw imapd: what marks / how to set?\"\n") nil nil nil nil nil nil] > nil) What format is the file? mbox, babyl, etc? It sounds pretty simple to add a nnvm, if the files is in a already supported format. Simply copy nnmbox or nnbabyl, remove some cruft and add a nnvm-request-update-info that frob Gnus's flags using the headers. It's just mbox, with this one magic header per message (X-VM-v5-Data) that contains the marks, and a bunch of other magic headers on only the first message in the folder (X-VM-Message-Order, X-VM-Summary-Format, X-VM-Labels, X-VM-VHeader, X-VM-Last-Modified, X-VM-IMAP-Retrieved, X-VM-POP-Retrieved, and X-VM-Bookmark), none of which make any difference for this purpose and can be safely ignored (and probably should be deleted). Hm, if you can create a VM mailbox with say 5 messages with some different flags and make it available, I can attempt to create a nnvm. I'll send you a file separately, and if anyone else is interested in looking at such a file, please let me know and I'll send it to you too. I'm sure it's a simple (< 1 hour) task for someone familiar with creating a nn. On another note, then, let's say I want to do a one-to-one conversion of VM folders to nnimap folders. What would be the procedure for doing this if I don't want to do anything other than the one-to-one mapping (i.e. I don't want to run through new splitting rules)? Any way to do this for each of ~200 folders efficiently? JDO