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

From: Jacob Morzinski <[email-masked]>
Date: Sun, 2 Apr 2000 16:47:13 -0400 (EDT)

On Fri, 31 Mar 2000, Jacob Morzinski wrote:
> 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 patch which fixes only the problem with the FCC behavior is
attached to this message.  Note that a reading of the source
suggests that there are more bugs related to pine's mis-handling
of IMAP.  It looks like "Tab" won't find unseen messages on imap
servers, and going back to the folder list from an index listing
is unable to keep track of the current folder when visiting imap
folders.  Additionally, the folder selector (^T, when trying to
pick a place to save messages) just flat out Doesn't Work for
people who are trying to save into IMAP -- it only lets them
ascend and descend the heirarchy, and never lets them select a
folder.

Anyway, this patch fixes the fcc behavior, so that you can use a
short-name fcc which pine will look for in your default
collection for saves.  (Previously, you had to specify the full
path to your fcc folder.)

Sincerely,
 Jacob Morzinski

*** pine4.21/pine/send.c	2000/03/27 09:15:54	3.1
--- pine4.21/pine/send.c	2000/04/02 20:11:56
***************
*** 6022,6028 ****
  	  *fcc_cntxt = ps_global->context_list;
  
          build_folder_list(NULL, *fcc_cntxt, fcc, NULL, BFL_FLDRONLY);
!         if(folder_index(fcc, *fcc_cntxt, FI_FOLDER) < 0){
  	    if(ps_global->context_list->next)
  	      sprintf(tmp_20k_buf,
  		      "Folder \"%.20s\" in <%.30s> doesn't exist. Create",
--- 6022,6029 ----
  	  *fcc_cntxt = ps_global->context_list;
  
          build_folder_list(NULL, *fcc_cntxt, fcc, NULL, BFL_FLDRONLY);
!         if(!(folder_exists(*fcc_cntxt, fcc) & FEX_ISFILE)
!            || (folder_index(fcc, *fcc_cntxt, FI_ANY) < 0)){
  	    if(ps_global->context_list->next)
  	      sprintf(tmp_20k_buf,
  		      "Folder \"%.20s\" in <%.30s> doesn't exist. Create",

---

From: Michael Stolz <[email-masked]>
Date: Wed, 5 Apr 2000 15:52:01 -0500 (CDT)

Hello Jacob:  Thanks for the wonderful patch, it seems to work perfectly.
If you ever get to Chicago, I owe you lunch!!

			Mike Stolz ([email-masked])
---------------------------------------------------

On Sun, 2 Apr 2000, Jacob Morzinski wrote:

> Date: Sun, 02 Apr 2000 16:47:13 -0400 (EDT)
> From: Jacob Morzinski <[email-masked]>
> To: Pine Discussion Forum <[email-masked]>
> Subject: Re: probable #mh-related bug in pine v4.21
>