Subject: export folder feature

From: Andrew Morgan <[email-masked]>
Date: Tue, 16 Nov 2004 10:29:14 -0800 (PST)

I sent this a week ago and did not receive any response...  Can anyone 
replicate this behavior?

--------------------

I'm having trouble using Pine 4.60's new Export Folder feature.

I am running Pine 4.61 on Debian unstable, connecting to a remote IMAP server. 
I have the standard Mail collection plus Incoming Folders defined.

I can successfully hit 'e' to export a folder in the Incoming Folders 
collection.  However, when I am in the "Mail" collection, hitting 'e' just 
tells me 'Command "e" not defined for this screen.'  If I view the help at this 
point, it does list "E - Export" as an option.

I have looked through all the various Setup - Config options and I don't see 
anything relevant.  Is this a bug, feature, or did I miss something?

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

---

From: Steve Hubert <[email-masked]>
Date: Tue, 16 Nov 2004 17:18:08 -0800 (PST)

There was a 4.60 bug that this sounds like. It is fixed in pine4.61.

Steve Hubert <[email-masked]>
Univ. of Washington: Computing and Communications, Seattle

---

From: Andrew Morgan <[email-masked]>
Date: Tue, 16 Nov 2004 17:49:25 -0800 (PST)

> There was a 4.60 bug that this sounds like. It is fixed in pine4.61.

Err, this is 4.61...  Sorry, I guess I didn't make that clear on my last 
post.

I should note that this is compiled from the debian source package for 
Pine, which contains a patch for maildir access (I think that is all).  I 
don't need maildir though...

 	Andy

---

From: Ryan Barrett <[email-masked]>
Date: Wed, 17 Nov 2004 02:41:11 -0800 (PST)

On Tue, 16 Nov 2004, Andrew Morgan wrote:

> collection.  However, when I am in the "Mail" collection, hitting 'e' 
> just tells me 'Command "e" not defined for this screen.'

hi andrew. unfortunately, i can't reproduce this. i'm running pine 4.61 
against a remote IMAP server and using Incoming Folders. i tried exporting 
a folder from the "Mail" collection, and it worked ok.

for the record, my pine is compiled from source, on rh9, with a few small, 
unrelated patches.

-Ryan

--
http://ryan.barrett.name/

---

From: Eduardo Chappa <[email-masked]>
Date: Wed, 17 Nov 2004 16:08:20 -0800 (PST)

*** Andrew Morgan ([email-masked]) wrote in the pine-info list on Nov...:

:) I am running Pine 4.61 on Debian unstable, connecting to a remote IMAP 
:) server. I have the standard Mail collection plus Incoming Folders 
:) defined.
:) 
:) I can successfully hit 'e' to export a folder in the Incoming Folders 
:) collection.  However, when I am in the "Mail" collection, hitting 'e' 
:) just tells me 'Command "e" not defined for this screen.' If I view the 
:) help at this point, it does list "E - Export" as an option.

This message appears when you put the cursor over a directory. You know 
that a name that appears in the list of folders is a directory if it has a 
trailing "/" or "[/]" simbol. In the latter case, it means that you have 
disabled  "[ ]  separate-folder-and-directory-entries". In this case, the 
solution is to enable that feature.

You must also notice, that even though you are not using maildirs, the 
maildir patch that you are using may assume that every folder in the Mail 
collection is maildir (for createproto). In fact, for some people the 
point of this patch is that every single folder that you use is maildir 
from now on. You must research this further by asking the person who 
patched Pine for you (or reading the patch, if available). If this is your 
case, it may be the maildir patch that tells Pine which names in the Mail/ 
collection are folders and which ones are directories, hence there's a 
chance that the maildir patch is giving you some problem.

Since I do not use Debian, I can not reproduce this further, but maybe 
this will help you figure out what's going on.

If you really do not want to use maildir (which would help you figure out 
what's going on here too), try adding

disable-these-drivers=maildir

to your .pinerc and see if this fixes the problem.

-- 
Eduardo
Patches/Help: http://www.math.washington.edu/~chappa/pine/
XML/RSS feed: http://www.math.washington.edu/~chappa/pine/pine.xml

---

From: Andrew Morgan <[email-masked]>
Date: Thu, 18 Nov 2004 12:57:57 -0800 (PST)

> solution is to enable that feature.

This "fixed" the problem, in that I could now export from the ones that 
Pine identified as folders.  However, every entry is listed twice, once as 
a directory and once as a folder.

I suppose this is because the remote IMAP server is Cyrus, where a mailbox 
can contain messages and subfolders.

I'd prefer not to use the "[ ]  separate-folder-and-directory-entries" 
option as it is kinda confusing with each mailbox listed twice.

Is it possible for Pine to offer Export anyways, and just throw a error if 
the mailbox contains no messages or is only a directory?

Thanks,
 	Andy

---

From: Nikolaus Vonessen <[email-masked]>
Date: Thu, 18 Nov 2004 14:19:31 -0700 (Mountain Standard Time)

On Thu, 18 Nov 2004, Andrew Morgan wrote:
> This "fixed" the problem, in that I could now export from the ones that Pine 
> identified as folders.  However, every entry is listed twice, once as a 
> directory and once as a folder.
>

I experimented yesterday with the folder preferences, and got around
this (i.e., every entry being listed twice) by setting
quell-empty-directories (but be sure to read the help about that
option).  In case it matters, my folder preferences are (unset
preferences omitted):

  [ Folder Preferences ]
             [X]  combined-folder-display
             [X]  quell-empty-directories
             [X]  separate-folder-and-directory-entries
             [X]  vertical-folder-list

I hope this helps.
Yours,

Nikolaus Vonessen

---

From: Vivia Nikolaidou <[email-masked]>
Date: Fri, 19 Nov 2004 00:34:53 +0200 (EET)

Hello.

I am running Pine 4.61 on a Slackware 9 system (had tried earlier versions 
with the same problem), where the mailserver is localhost. After opening a 
folder and viewing a message, Pine sometimes doesn't change the status bar 
[Folder foldername opened with] etc. When I try to delete this folder, 
open another, or even quit pine, as soon as I type the corresponding 
command, the status bar changes to [<Folder foldername opened>] (less-than 
and greater-than signs appear) and Pine stops responding. My only option 
is to kill Pine from another console and restart it. After I do this, any 
characters I had typed after the freeze appear on the command line. For 
example, if I press D to delete the folder and Y to accept the delete, D 
causes the freeze and Y appears on the command line. The above happens 
randomly, something like once every 3 or 4 times. Sometimes (quite rarely) 
it starts responding again after some time, but it's too long for me to 
wait so I usually don't wait for it. Note that I have been using Pine 
since 1995 and never had this problem on other systems.

My folders are sent-mail and saved-messages (very large), as well as small 
folders (often containing only one or two emails) arranged with procmail 
rules. It doesn't seem to depend on how many emails there are in the 
folders.

I set debug level to 9 and caught some pine-debug files, which I can 
attach to a further mailing if necessary.

Thank you in advance,

 	Vivia Nikolaidou

---

From: Matt Ackeret <[email-masked]>
Date: Thu, 18 Nov 2004 15:17:49 -0800 (PST)

On Fri, 19 Nov 2004, Vivia Nikolaidou wrote:
> I am running Pine 4.61 on a Slackware 9 system (had tried earlier versions with
> the same problem), where the mailserver is localhost. After opening a folder
> and viewing a message, Pine sometimes doesn't change the status bar [Folder
> foldername opened with] etc. When I try to delete this folder, open another, or
> even quit pine, as soon as I type the corresponding command, the status bar
> changes to [<Folder foldername opened>] (less-than and greater-than signs
> appear) and Pine stops responding. My only option is to kill Pine from another
> console and restart it. After I do this, any characters I had typed after the

Maybe running pine under gdb, reproducing the hang, then hitting control-C
and then

thread apply all bt
in gdb might give some useful information of where pine is hung.

---

From: Eduardo Chappa <[email-masked]>
Date: Thu, 18 Nov 2004 15:49:25 -0800 (PST)

*** Andrew Morgan ([email-masked]) wrote in the pine-info list today:

:) This "fixed" the problem, in that I could now export from the ones that 
:) Pine identified as folders.  However, every entry is listed twice, once 
:) as a directory and once as a folder.
:) 
:) I suppose this is because the remote IMAP server is Cyrus, where a 
:) mailbox can contain messages and subfolders.
:) 
:) I'd prefer not to use the "[ ] separate-folder-and-directory-entries" 
:) option as it is kinda confusing with each mailbox listed twice.
:) 
:) Is it possible for Pine to offer Export anyways, and just throw a error 
:) if the mailbox contains no messages or is only a directory?

Hello Andy,

  Reading the code it was clear that the original intention was to allow 
you to do this operation in this type of folders, but somehow the code 
ended up doing the opposite. You can get a patch to fix this from my web 
page.

---

From: Andrew Morgan <[email-masked]>
Date: Thu, 18 Nov 2004 16:07:52 -0800 (PST)

> ended up doing the opposite. You can get a patch to fix this from my web

Wow, thank you for such a fast response and fix.  I've tested the patch 
and it works great.  Will this to make its way into the next release of 
Pine?

Thanks,
 	Andy

---

From: Steve Hubert <[email-masked]>
Date: Thu, 18 Nov 2004 17:06:19 -0800 (PST)

> Wow, thank you for such a fast response and fix.  I've tested the patch and it
> works great.  Will this to make its way into the next release of Pine?
> 
> Thanks,
> 	Andy

Yes it will. Thanks Eduardo and Andy.