Subject: probable #mh-related bug in pine v4.21

From: Michael Stolz <[email-masked]>
Date: Fri, 31 Mar 2000 16:45:06 -0600 (CST)

I sent this to the bug-report address, but have received nothing but the 
automated reply from U of Wash.  Does anyone out there recognize this as
a bug, and/or know how to fix it?

thanx in advance - Mike
*** *** *** *** *** ***

Hello - I believe I've found a bug in pine v4.21.  I've already searched in
comp.mail.pine, and on your web site, without finding any reference to this 
situation.

I support pine at Fermilab, and am pretty familiar with it.  I'm currently
running pine v4.05 on IRIX 6.2, IRIX 6.5, Solaris 5.6, Solaris 5.7, (Redhat) 
Linux+2, and OSF1 v40d.

I just downloaded pine v4.21, unwound it, and built it on SunOS 5.6. Since I
also use exmh occasionally, I have my mail configured to use mh folders as
the default.  Pine also 'Fcc's me for every message I send, but I have not
set any of the Fcc config parameters.  By default, pine v4.05 puts my Fcc
messages into the #mh/sent-mail folder.  However, when I do the same in
v4.21, I get the following chain of messages:

Send message? y

Folder "sent-mail" in <#mh> doesn't exist. Create? y
Y [Yes]
N No

[Fcc Error: "Can't create mailbox #mh/sent-mai...". Message NOT sent or copied.]

- 
When I go into my .pinerc-debug1 file, I find the following ERROR message:

  ---- COMPOSER ----
new win size -----<24 80>------
new win size -----<24 80>------
Want_to read: y (121)
new win size -----<24 80>------
Want_to read: y (121)
IMAP 11:36:43 3/2 mm_log ERROR: Can't create mailbox #mh/sent-mail: mailbox already exists

-*-*-

This ONLY happens when #mh/sent-mail already exists, or when I'm using #mh
as my default mail structure.  When I remove #mh/sent-mail, or when I set
mu default directlry to 'native pine' format, I have no trouble with Fcc.

If it will help, I can send you copies of my .pine-debug, .pinerc, and 
pine.conf files.

Mike Stolz <[email-masked]> - Computing Division
Fermi National Accelerator Lab - 630-840-8060

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Jacob Morzinski <[email-masked]>
Date: Fri, 31 Mar 2000 22:04:15 -0500

> [Fcc Error: "Can't create mailbox #mh/sent-mai...". Message NOT sent or copied.]

I'm having the same error in pine 4.21 with IMAP folders.  Before
opening the fcc folder, pine tries to test to see if it exists,
but it does this by calling a function that checks to see if it
is-a-folder-but-is-not-a-directory.  I consider this to be a
logic bug in pine, but haven't wrapped my head around the code
enough yet to see what the right way to fix it is.

This check will fail on MH folders and on IMAP folders, both of
which can have a FCC folder which is a folder and is a directory.

A work-around for IMAP is to fully specify the path to the fcc
folder ( "{host}INBOX.Sent" ).  I haven't tested it, but the same
work-around for MH might be to fully specify "#mh/sent" instead
of letting pine look around for the default save location.

Sincerely,
 Jacob Morzinski                                [email-masked]