Subject: Problem with sentmail and IMAP

From: "Christopher J. Pilkington" <[email-masked]>
Date: Thu, 20 Apr 2000 10:19:33 -0400

Here's the situation:

PCPine 4.21.  Only collection is "Mail" on server mail.xxxxxx.net, an IMAP4
server.

Initially, there are no folders on the IMAP server, except for my INBOX.

I compose and send one message, and it says that my sentmail folder does not
exist, do you wish to create it.  I answer yes, and it creates it.  I check
to see if the message gets saved, and it does.

I attempt to send another message, and it again says that my sentmail folder
does not exist, even though it does.  Obviously I get an error when I tell
it to create the folder again.

Does anyone know about this problem?  What I am I doing wrong?

Christopher J. Pilkington
Supervisor of Technical Services
GHI HMO Select Inc.
Phone: +1 914 340-2341
Fax: +1 914 334-8950
E-mail: [email-masked]

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

---

From: Michael Stolz <[email-masked]>
Date: Thu, 20 Apr 2000 12:29:04 -0500 (CDT)

This sounds like the same problem that Jacob Morzinski from MIT sent me
a patch for 3 weeks ago.  Here's his message, along with his patch.  It
worked for both him and me...

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

*** *** ***

>From [email-masked] Thu Apr 20 12:24:32 2000
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

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",

** ** ** ** ** ** **
On Thu, 20 Apr 2000, Christopher J. Pilkington wrote:

> Date: Thu, 20 Apr 2000 10:19:33 -0400
> From: Christopher J. Pilkington <[email-masked]>
> To: Pine Discussion Forum <[email-masked]>
> Subject: Problem with sentmail and IMAP
> 
> Here's the situation:
>

---

From: [email-masked]
Date: Fri, 21 Apr 2000 09:08:41 +0300 (EEST)

Dear Fellow Listers,
I can not provide an answer to Christopher's problem, but I have something
similar, and have found no understanding of it.
	I have pine v4.20, the Unix pine, installed.  Until the end of
1999, sent-mail worked fine and prompted me every time at the beginning of
the month.  Since January, this did not happen initially.  I got the
prompt for deleting previous month's messages on January 16.  I answered
no, and ever since, I gt no sent-mail deletions at the beginning of
February, March, and April.  As I am not a very technical person, what I
did was go to "pruned-messages" on the config menu, and typed sent-mail,
but I do not know whether this is going to work on May 1.
	If anyone understands the problem, could he/she be so kind as let
me know what I should do?
				With Best Regards,
				Panagiotis

---

From: Jan Grant <[email-masked]>
Date: Tue, 25 Apr 2000 11:34:24 +0100 (BST)

> Does anyone know about this problem?  What I am I doing wrong?

I posted a little patch for this a while ago; the problem is that Pine
occasionally assumes that it's working with a repository that cannot
have a folder and a directory with the same name. Using something like
cyrus will cause all sorts of little problems like this:

- sentmail doesn't exist, etc. problems
- tabbing through incoming folders doesn't work
- ^T on the 'save to' will not let you select folders

the last problem goes away if you don't fold directories and folders
into one for display (ie, "foldername[.]") - unfortunately, that little
visual improvement makes the latest pine worth using.

-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287163 Fax +44 (0)117 9287112 RFC822 [email-masked]
On modesty: whoever said "it's hard being perfect" obviously wasn't me.