From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53611 Path: main.gmane.org!not-for-mail From: John Owens Newsgroups: gmane.emacs.gnus.general Subject: marks in gnus / uw imapd: what marks / how to set? Date: Sun, 03 Aug 2003 16:51:45 -0700 Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1059980413 6664 80.91.224.253 (4 Aug 2003 07:00:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 4 Aug 2003 07:00:13 +0000 (UTC) Original-X-From: ding-owner+M2155@lists.math.uh.edu Mon Aug 04 09:00:26 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 19jZKU-00078f-00 for ; Mon, 04 Aug 2003 09:00:26 +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 19jZJu-0007v7-00; Mon, 04 Aug 2003 01:59:50 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19jSdh-0007Wd-00 for ding@lists.math.uh.edu; Sun, 03 Aug 2003 18:51:49 -0500 Original-Received: (qmail 80306 invoked by alias); 3 Aug 2003 23:51:48 -0000 Original-Received: (qmail 80300 invoked from network); 3 Aug 2003 23:51:48 -0000 Original-Received: from main.gmane.org (80.91.224.249) by sclp3.sclp.com with SMTP; 3 Aug 2003 23:51:48 -0000 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19jSdM-00080F-00 for ; Mon, 04 Aug 2003 01:51:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19jSdL-000806-00 for ; Mon, 04 Aug 2003 01:51:27 +0200 Original-Lines: 50 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.1001 (Gnus v5.10.1) XEmacs/21.1 (Carlsbad Caverns, linux) Cancel-Lock: sha1:cAb/3VCDHTRUcdqeVbIYE3IFIQs= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53611 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53611 (Apologies if this gets accidentally posted twice.) I'd like to migrate my mail from another mailer (VM) (which stores its files in mbox format) and maintain as much information from VM's state as possible, including "marks" (read, new, forwarded, replied, etc.). Currently I am thinking I need to write a perl script to convert VM mail to gnus-nnimap mail so that I can maintain these marks. (Other suggestions gratefully accepted.) VM seems to store all marks in a special header (X-VM-v5-data). VM uses the following flags, which I'd like to move to gnus. vm-new-flag vm-unread-flag vm-deleted-flag vm-filed-flag vm-replied-flag vm-written-flag vm-forwarded-flag vm-edited-flag vm-redistributed-flag I'm trying to figure out how gnus in conjunction with UW imapd stores the same marks. As far as I can tell, "Read" and "Old" flags are kept in Status and "Deleted", "Flagged", "Answered" and "Draft" are in X-Status. So Status: RO X-Status: DFAT is the maximum amount of flags stored here? Gnus seems to keep other keywords. Among them is a forwarded flag, which is kept in X-Keywords as "gnus-forward". I haven't got anything else to appear in this header yet. But there are other gnus flags: gnus-replied mark - I presume this corresponds to Answered. gnus-recent mark - I presume this corresponds to not-Old, but I don't know how this works with gnus-unseen-mark. gnus-cached-mark - No idea. gnus-saved-mark - No idea. (Hopefully it is triggered when I copy a message from a folder to another folder.) Other flags? Distinction between "new" and "unread"? "edited"? "redistributed"? Any suggestions as to how to move these flags over would be appreciated. I figure perl is my best bet? Suggestions of a perl module that lets me parse mail a message at a time from mbox format, and mess with headers too, would be great. JDO