[26399] in Athena Bugs
pine filters - moving messages from IMAP to mh folders
daemon@ATHENA.MIT.EDU (Erica H Peterson)
Thu Mar 17 13:19:20 2005
Date: Thu, 17 Mar 2005 13:18:40 -0500 (EST)
From: Erica H Peterson <astronut@mit.edu>
To: bugs@mit.edu
Message-ID: <Pine.LNX.4.58L.0503171306180.21029@amalgam.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Spam-Score: -4.9
X-Spam-Flag: NO
Errors-To: bugs-bounces@mit.edu
I was trying to set up a filter in Pine to move some messages from my IMAP
inbox to my mh folders (in ~/Mail). When I create the filter in Pine and
edit the "Filter Action" section, under "Move" I use ^T to select a folder
in a different folder collection. Navigating through the folder
collections and selecting the mh folder I want yields:
Folder List = #mh/test
If, alternatively, I select a folder in "Old Pine Mail," I get:
Folder List = ~/mail/test
In both cases, the filter creation tool successfully creates my filter
without complaint. However, the first instance (mh folder filtering)
fails, and the second (old pine mail filtering) does not. Using the
filter to #mh/test yields an error that "the folder does not exist." The
folder (~/Mail/test) does in fact exist. I looked through the
documentation in /mit/source/third/pine/imap/docs/ and found the following
in FAQ.txt:
_________________________________________________________________
1.30 Is there support for mh?
Yes, but only as a legacy format. Your mh format INBOX is
accessed by the name "#mhinbox", and all other mh format
mailboxes are accessed by prefixing "#mh/" to the name, e.g.
"#mh/foo". The mh support uses the "Path:" entry in your
.mh_profile file to identify the root directory of your mh
format mailboxes.
Non-legacy use of mh format is not encouraged. There is no
support for permanent flags or unique identifiers; furthermore
there are known severe performance problems with the mh format.
_________________________________________________________________
I tried changing the "Path:" entry in my .mh_profile to all of three
options:
Path: Mail
Path: ~/Mail
Path: Path: /afs/athena.mit.edu/user/a/s/astronut/Mail
...and all of these yielded the same error in Pine.
I ran "pine -d 9" and found the following entries in the debug file:
**********************************************************************
12:56:06.015693
IMAP DEBUG 12:56:06.015693: 00000006 SEARCH FROM paco@mit.edu
12:56:06.015724
IMAP 12:56:06 3/17 mm_log tcp: Writing to TCP
12:56:06.015801
IMAP 12:56:06 3/17 mm_log tcp: successfully wrote to TCP
12:56:06.015837
IMAP 12:56:06 3/17 mm_log tcp: Reading TCP data
12:56:06.023060
IMAP 12:56:06 3/17 mm_log tcp: Successfully read TCP data
12:56:06.023120
IMAP DEBUG 12:56:06.023120: * SEARCH 326
12:56:06.023167
IMAP DEBUG 12:56:06.023167: 00000006 OK Completed (1 msgs in 0.000 secs)
12:56:06.023214
FILTER matching "mhtest": msg 326 filed
12:56:06.023306
Moving 1 filtered message to "#mh/test"
12:56:06.023333
busy_alarm(1, Moving 1 filtered message to "#mh/test", (nil), 1)
12:56:06.023375
same_stream: {mit.edu/hesiod/imap}#mh/test ==
{po11.mit.edu:143/imap/user="astronut"}INBOX
12:56:06.023416
IMAP 12:56:06 3/17 mm_log babble: Hesiod lookup for "astronut"
12:56:06.023852
IMAP 12:56:06 3/17 mm_log babble: Hesiod answer: POP PO11.MIT.EDU astronut
12:56:06.023916
IMAP 12:56:06 3/17 mm_log babble: Hesiod lookup for "astronut"
12:56:06.024157
IMAP 12:56:06 3/17 mm_log babble: Hesiod answer: POP PO11.MIT.EDU astronut
12:56:06.024210
same_stream: yes
12:56:06.024308
IMAP DEBUG 12:56:06.024308: 00000007 FETCH 326 FLAGS
12:56:06.024339
IMAP 12:56:06 3/17 mm_log tcp: Writing to TCP
12:56:06.024392
IMAP 12:56:06 3/17 mm_log tcp: successfully wrote to TCP
12:56:06.024471
IMAP 12:56:06 3/17 mm_log tcp: Reading TCP data
12:56:06.040217
IMAP 12:56:06 3/17 mm_log tcp: Successfully read TCP data
12:56:06.040264
IMAP DEBUG 12:56:06.040264: * 326 FETCH (FLAGS ())
12:56:06.040311
IMAP DEBUG 12:56:06.040311: 00000007 OK Completed
12:56:06.040406
pine_mail_copy_full: copying to "#mh/test"
12:56:06.040448
IMAP DEBUG 12:56:06.040448: 00000008 COPY 326 #mh/test
12:56:06.040474
IMAP 12:56:06 3/17 mm_log tcp: Writing to TCP
12:56:06.040514
IMAP 12:56:06 3/17 mm_log tcp: successfully wrote to TCP
12:56:06.040565
IMAP 12:56:06 3/17 mm_log tcp: Reading TCP data
12:56:06.042341
IMAP 12:56:06 3/17 mm_log tcp: Successfully read TCP data
12:56:06.042382
IMAP DEBUG 12:56:06.042382: 00000008 NO Mailbox does not exist
12:56:06.042408
IMAP 12:56:06 3/17 mm_log error: Mailbox does not exist
12:56:06.042442
q_status_message(Folder does not exist)
12:56:06.042469
FAILED save of msg 326 (c-client sequence #)
12:56:06.042500
Filter to folder "#mh/test" FAILED
12:56:06.042535
q_status_message(Filter to folder "#mh/test" FAILED)
**********************************************************************
So manually saving messages from IMAP folders to mh folders works,
filtering messages from IMAP folders to old pine folders works, but
filtering messages from IMAP folders to mh folders does not. Is there any
possibility that this could be fixed?
Thanks,
Erica
-----------------
Erica H. Peterson
astronut@mit.edu