Subject: PC-Pine 3.92 and PMDF IMAP

From: Kym Farnik +61 8 235 4278 <[email-masked]>
Date: Wed, 10 Apr 1996 09:21:41 +0930 (CST)

Hi PMDF and Pine people

We are running PMDF V5 on Open VMS Alpha, IMAP, using DEC UCX V4 as TCP/IP
transport and PC Pine V3.92 on Windows 95.

PMDF IMAP is vanilla setup, default settings.
I have appended my PC Pinerc file.

The problem we have is when a user Quits PC pine and there are read
messages in the INBOX.   PC Pine says it is moving these messages
to MAIL then asks if the users wishes to expunge the INBOX.
 If the user answers Yes then ALL read messages in the INBOX get put
  in the WASTEBASKET regardsless of their status as being deleted or
  the report that they were moved to MAIL.
 If the user answers No then ALL messages remain in the INBOX.

Have I got somthing wrong in the Pinerc or is there a bug in
PC Pine or is there a bug in PMDF IMAP ?

Other than this problem,  PC Pine runs well.
 
TIA... Regards, Kym
----------- EMail: [email-masked] ----------------------------
|           Metro Meat International Limited      /\        /\        |
|  _-_|\    2 Hurtle Square                      //\\      //\\       |
| /  OZ \   Adelaide   SOUTH AUSTRALIA  5000    ///\\\    ///\\\      |
| \_.-*_/   Voice: +61 8 235 4278              ///  \\\  ///  \\\     |
|      v    FAX:   +61 8 223 1949             ///    \\\///    \\\    |
|           Mobile: 0419 807 741              M    E    T    R    O   |
-----------------------------------------------------------------------

PC Pinerc file...

# Updated by Pine(tm) 3.92, copyright 1989-1996 University of Washington.
#
# Pine configuration file -- customize as needed.
#
# This file sets the configuration options used by Pine and PC-Pine.  If you
# are using Pine on a Unix system, there may be a system-wide configuration
# file which sets the defaults for these variables.  There are comments in
# this file to explain each variable, but if you have questions about
# specific settings see the section on configuration options in the Pine
# notes.  On Unix, run pine -conf to see how system defaults have been set.
# For variables that accept multiple values, list elements are separated
# by commas.  A line beginning with a space or tab is considered to be a
# continuation of the previous line.  For a variable to be unset its value
# must be blank.  To set a variable to the empty string its value should
# be "".  You can override system defaults by setting a variable to the
# empty string.  Switch variables are set to either "yes" or "no", and
# default to "no".
# Lines beginning with "#" are comments, and ignored by Pine.

########################### Essential Parameters ###########################

# Over-rides your full name from Unix password file. Required for PC-Pine.
personal-name=Kym Farnik

# Your login/e-mail user name
user-id=farnik

# Sets domain part of From: and local addresses in outgoing mail.
user-domain=Metro.com.au

# List of SMTP servers for sending mail. If blank: Unix Pine uses sendmail.
smtp-server=sabe02.Metro.com.au

# NNTP server for posting news. Also sets news-collections for news reading.
nntp-server=

# Path of (local or remote) INBOX, e.g. ={mail.somewhere.edu}inbox
# Normal Unix default is the local INBOX (usually /usr/spool/mail/$USER).
inbox-path={sabe02.Metro.com.au}INBOX

###################### Collections, Folders, and Files #####################

# List of incoming msg folders besides INBOX, e.g. ={host2}inbox, {host3}inbox
# Syntax: optnl-label {optnl-imap-host-name}folder-path
incoming-folders=

# List of directories where saved-message folders may be. First one is
# the default for Saves. Example: Main {host1}mail/[], Desktop mail\[]
# Syntax: optnl-label {optnl-imap-hostname}optnl-directory-path[]
folder-collections=MAIN {sabe02.Metro.com.au}[]

# List, only needed if nntp-server not set, or news is on a different host
# than used for NNTP posting. Examples: News *[] or News *{host3/nntp}[]
# Syntax: optnl-label *{news-host/protocol}[]
news-collections=

# List of folder pairs; the first indicates a folder to archive, and the
# second indicates the folder read messages in the first should
# be moved to.
incoming-archive-folders=

# List of context and folder pairs, delimited by a space, to be offered for
# pruning each month.  For example: {host1}mail/[] mumble
pruned-folders=

# Over-rides default path for sent-mail folder, e.g. =old-mail (using first
# folder collection dir) or ={host2}sent-mail or ="" (to suppress saving).
# Default: sent-mail (Unix) or SENTMAIL.MTX (PC) in default folder collection.
default-fcc=""

# Over-rides default path for saved-msg folder, e.g. =saved-messages (using first
# folder collection dir) or ={host2}saved-mail or ="" (to suppress saving).
# Default: saved-messages (Unix) or SAVEMAIL.MTX (PC) in default folder collection.
default-saved-msg-folder={sabe02.Metro.com.au}MAIL

# Over-rides default path for postponed messages folder, e.g. =pm (which uses
# first folder collection dir) or ={host4}pm (using home dir on host4).
# Default: postponed-msgs (Unix) or POSTPOND.MTX (PC) in default fldr coltn.
postponed-folder=

# If set, specifies where already-read messages will be moved upon quitting.
read-message-folder={sabe02.Metro.com.au}MAIL

# Over-rides default path for signature file. Default is ~/.signature
signature-file=C:\PINE\PINE.SIG

# List of file or path names for global/shared addressbook(s).
# Default: none
# Syntax: optnl-label path-name
global-address-book=

# List of file or path names for personal addressbook(s).
# Default: ~/.addressbook (Unix) or \PINE\ADDRBOOK (PC)
# Syntax: optnl-label path-name
address-book=C:\PINE\ADDRBOOK

############################### Preferences ################################

# List of features; see Pine's Setup/options menu for the current set.
# e.g. feature-list= select-without-confirm, signature-at-bottom
# Default condition for all of the features is no-.
feature-list=enable-cruise-mode,
	enable-cruise-mode-delete,
	enable-alternate-editor-cmd,
	enable-alternate-editor-implicitly,
	signature-at-bottom,
	include-text-in-reply,
	enable-mail-check-cue,
	auto-move-read-msgs,
	enable-aggregate-command-set,
	enable-flag-cmd,
	enable-full-header-cmd,
	enable-tab-completion,
	expanded-view-of-folders,
	show-selected-in-boldface,
	save-will-not-delete

# Pine executes these keys upon startup (e.g. to view msg 13: i,j,1,3,CR,v)
initial-keystroke-list=

# Only show these headers (by default) when composing messages
default-composer-hdrs=

# Add these customized headers (and possible default values) when composing
customized-hdrs=

# When viewing messages, include this list of headers
viewer-hdrs=

# Determines default folder name for Saves...
# Choices: default-folder, by-sender, by-from, by-recipient, last-folder-used.
# Default: "default-folder", i.e. "saved-messages" (Unix) or "SAVEMAIL" (PC).
saved-msg-name-rule=

# Determines default name for Fcc...
# Choices: default-fcc, by-recipient, last-fcc-used.
# Default: "default-fcc" (see also "default-fcc=" variable.)
fcc-name-rule=

# Sets presentation order of messages in Index. Choices:
# subject, from, arrival, date, size. Default: "arrival".
sort-key=

# Sets presentation order of address book entries. Choices: dont-sort,
# fullname-with-lists-last, fullname, nickname-with-lists-last, nickname
# Default: "fullname-with-lists-last".
addrbook-sort-rule=

# Sets the default folder and collectionoffered at the Goto Command's prompt.
goto-default-rule=

# Reflects capabilities of the display you have. Default: US-ASCII.
# Typical alternatives include ISO-8859-x, (x is a number between 1 and 9).
character-set=

# Specifies the program invoked by ^_ in the Composer,
# or the "enable-alternate-editor-implicitly" feature.
editor=c:\utils\fx.exe

# Specifies the program invoked by ^T in the Composer.
speller=

# Specifies the column of the screen where the composer should wrap.
composer-wrap-column=

# Specifies the string to insert when replying to  message.
reply-indent-string=

# Program to view images (e.g. GIF or TIFF attachments).
image-viewer=

# If "user-domain" not set, strips hostname in FROM address. (Unix only)
use-only-domain-name=

########## Set within or by Pine: No need to edit below this line ##########

# Your default printer selection
printer=

# List of special print commands
personal-print-command=

# Which category default print command is in
personal-print-category=

# Set by Pine; controls beginning-of-month sent-mail pruning.
last-time-prune-questioned=96.4

# Set by Pine; controls display of "new version" message.
last-version-used=3.92

# This names the path to an alternative sendmail program which is
# usually "/usr/lib/sendmail".  It must support sendmail's "-t" option.
sendmail-path=

# This names the root of the tree to which the user is restricted when reading
# and writing folders and files.  For example, on Unix ~/work confines the
# user to the subtree beginning with their work subdirectory.
# (Note: this alone is not sufficient for preventing access.  You will also
# need to restrict shell access and so on, see Pine Technical Notes.)
# Default: not set (so no restriction)
operating-dir=

# This variable takes a list of programs that message text is piped into
# after MIME decoding, prior to display.
display-filters=

# This defines a program that message text is piped into before MIME
# encoding, prior to sending
sending-filters=

# A list of alternate addresses the user is known by
alt-addresses=

# This is a list of formats for address books.  Each entry in the list is made
# up of space-delimited tokens telling which fields are displayed and in
# which order.  See help text
addressbook-formats=

# This gives a format for displaying the index.  It is made
# up of space-delimited tokens telling which fields are displayed and in
# which order.  See help text
index-format=

# The number of lines of overlap when scrolling through message text
viewer-overlap=

# The number of seconds to sleep after writing a status message
status-message-delay=

# The approximate number of seconds between checks for new mail
mail-check-interval=60

# Full path and name of NEWSRC file
newsrc-path=

# Path and filename of news configation's active file.
# The default is typically "/usr/lib/news/active".
news-active-file-path=

# Directory containing system's news data.
# The default is typically "/usr/spool/news"
news-spool-directory=

# Path and filename of the program used to upload text from your terminal
# emulator's into Pine's composer.
upload-command=

# Text sent to terminal emulator prior to invoking the program defined by
# the upload-command variable.
# Note: _FILE_ will be replaced with the temporary file used in the upload.
upload-command-prefix=

# Path and filename of the program used to download text via your terminal
# emulator from Pine's export and save commands.
download-command=

# Text sent to terminal emulator prior to invoking the program defined by
# the download-command variable.
# Note: _FILE_ will be replaced with the temporary file used in the downlaod.
download-command-prefix=

# Sets the search path for the mailcap cofiguration file.
# NOTE: colon delimited under UNIX, semi-colon delimited under DOS/Windows/OS2.
mailcap-search-path=

# Sets the search path for the mimetypes cofiguration file.
# NOTE: colon delimited under UNIX, semi-colon delimited under DOS/Windows/OS2.
mimetype-search-path=

# Sets the time in seconds that Pine will attempt to open a network
# connection.  The default is 30, the minimum is 5, and the maximum is
# system defined (typically 75).
tcp-open-timeout=

# Sets the time in seconds that Pine will attempt to open a UNIX remote
# shell connection.  The default is 15, min is 5, and max is unlimited.
# Zero disables rsh altogether.
rsh-open-timeout=

# Extension used for local folder names (".MTX" by default).
folder-extension=

# Choose: black,blue,green,cyan,red,magenta,yellow,or white (CAPS=BLINKING).
normal-foreground-color=
normal-background-color=
reverse-foreground-color=
reverse-background-color=

# Name and size of font.
font-name=""
font-size=-9
font-style=""

# Name and size of printer font.
print-font-name=""
print-font-size=""
print-font-style=""

# Window position in the format: CxR+X+Y
# Where C and R are the window size in characters and X and Y are the
# screen position of the top left corner of the window.
window-position=79x35+72+35td

---

From: Portia Shao <[email-masked]>
Date: Tue, 09 Apr 1996 17:56:31 -0800 (PST)

>  If the user answers No then ALL messages remain in the INBOX.

I think the "problem" is with moving the mail to MAIL folder. If the user 
answers YES to move them, then all READ messages are moved to the MAIL 
folder, and marked as DELETED, so a subsequent EXPUNGE  expunges all 
deleted messages (which moves them to the WASTEBASKET) gets them all.

If your "read" mail are indeed moved into the MAIL folder, then this is 
what should have happened, and there is no bug.

> |           Mobile: 0419 807 741              M    E    T    R    O   |

     +--------------------------------------------------------------------+
     |  /portia     [email-masked]                              |
     |  Innosoft International Inc. (818)919-3600 voice, (818)919-3614 fax|
     |  1050 East Garvey Ave South, West Covina, CA 91790                 |
     +--- http://www.innosoft.com/www_root/doc/app-notes/popnimap.html ---+

---

From: Kym Farnik +61 8 235 4278 <[email-masked]>
Date: Wed, 10 Apr 1996 10:51:30 +0930 (CST)

> what should have happened, and there is no bug.

To further clarify the problem.   The Read mail does NOT end up in 
the MAIL folder.   It ALWAYS ends up in the WASTEBASKET (Which I have
set for NO AUTOPURGE)  Regardless of weather it says it put it in MAIL!

> > Other than this problem,  PC Pine runs well.
...
Thanks again, Kym

---

From: Portia Shao <[email-masked]>
Date: Tue, 09 Apr 1996 18:33:33 -0800 (PST)

> set for NO AUTOPURGE)  Regardless of weather it says it put it in MAIL!

then you need to turn on debug in the IMAP server to see what commands it 
received from Pine.

---

From: Kym Farnik +61 8 235 4278 <[email-masked]>
Date: Wed, 10 Apr 1996 13:51:15 +0930 (CST)

> > > > Other than this problem,  PC Pine runs well.

Debug Log File Attached.  (Password changed)

Thanks.
----------- EMail: [email-masked] ----------------------------

10-APR-1996 13:44:07.65  Sending[8f11a0]:(* OK sabe02.metro.com.au IMAP2+ Server PMDF5.0-1 at Wed, 10 Apr 1996 13:44:07 +0930 (CST)
)IMAP-I: 10-APR-1996 13:44:10.62  received[8f11a0] A00000 LOGIN farnik <paswd
10-APR-1996 13:44:11.14  Sending[8f11a0]:(A00000 OK LOGIN completed
)IMAP-I: 10-APR-1996 13:44:11.16  received[8f11a0] A00001 SELECT INBOX
10-APR-1996 13:44:11.39  Sending[8f11a0]:(* 1 EXISTS
* FLAGS (\Answered \Flagged \Deleted \Seen)
* 1 RECENT
A00001 OK [READ-WRITE] SELECT completed
)IMAP-I: 10-APR-1996 13:44:11.47  received[8f11a0] A00002 NOOP
10-APR-1996 13:44:11.48  Sending[8f11a0]:(A00002 OK NOOP completed
)IMAP-I: 10-APR-1996 13:44:11.54  received[8f11a0] A00003 FETCH 1:1 ALL
10-APR-1996 13:44:11.64  Sending[8f11a0]:(* 1 FETCH (FLAGS (\Recent) INTERNALDATE "10-Apr-1996 13:43:58 +0000" RFC822.SIZE 144 ENVELOPE ("Wed, 10 Apr 1996 13:43:58 +0930 (CST) " "TEST2 " ((NIL NIL "SYSTEM" "Metro.com.au")) ((NIL NIL "SYSTEM" "Metro.com.au
")) ((NIL NIL "SYSTEM" "Metro.com.au")) ((NIL NIL "FARNIK" "Metro.com.au")) NIL NIL NIL NIL))
A00003 OK FETCH completed
)IMAP-I: 10-APR-1996 13:44:14.34  received[8f11a0] A00004 FETCH 1:1 FULL
10-APR-1996 13:44:14.37  Sending[8f11a0]:(* 1 FETCH (FLAGS (\Recent) INTERNALDATE "10-Apr-1996 13:43:58 +0000" RFC822.SIZE 144 ENVELOPE ("Wed, 10 Apr 1996 13:43:58 +0930 (CST) " "TEST2 " ((NIL NIL "SYSTEM" "Metro.com.au")) ((NIL NIL "SYSTEM" "Metro.com.au
")) ((NIL NIL "SYSTEM" "Metro.com.au")) ((NIL NIL "FARNIK" "Metro.com.au")) NIL NIL NIL NIL) BODY ("TEXT" "PLAIN" ("CHARSET" "US-ASCII") NIL NIL "7BIT" 0 0))
A00004 OK FETCH completed
)IMAP-I: 10-APR-1996 13:44:14.42  received[8f11a0] A00005 FETCH 1 RFC822.HEADER
10-APR-1996 13:44:14.45  Sending[8f11a0]:(* 1 FETCH (RFC822.HEADER {144}
Date: Wed, 10 Apr 1996 13:43:58 +0930 (CST)
From: [email-masked]
Subject: TEST2
To: [email-masked]
X-VMS-To: FARNIK
X-VMS-Cc:

)
A00005 OK FETCH completed
)IMAP-I: 10-APR-1996 13:44:14.50  received[8f11a0] A00006 FETCH 1 BODY[1]
10-APR-1996 13:44:14.59  Sending[8f11a0]:(* 1 FETCH (BODY[1] {0}
)10-APR-1996 13:44:14.64  Sending[8f11a0]:( FLAGS (\Recent \Seen))
A00006 OK FETCH completed
)IMAP-I: 10-APR-1996 13:44:16.92  received[8f11a0] A00007 SEARCH SEEN UNDELETED
10-APR-1996 13:44:16.95  Sending[8f11a0]:(* SEARCH 1
A00007 OK SEARCH completed
)IMAP-I: 10-APR-1996 13:44:16.97  received[8f11a0] A00008 SEARCH SEEN UNDELETED
10-APR-1996 13:44:16.98  Sending[8f11a0]:(* SEARCH 1
A00008 OK SEARCH completed
)10-APR-1996 13:44:17.06  Sending[bb1008]:(* OK sabe02.metro.com.au IMAP2+ Server PMDF5.0-1 at Wed, 10 Apr 1996 13:44:17 +0930 (CST)
)IMAP-I: 10-APR-1996 13:44:17.11  received[bb1008] A00000 LOGIN farnik <paswd
10-APR-1996 13:44:17.35  Sending[bb1008]:(A00000 OK LOGIN completed
)IMAP-I: 10-APR-1996 13:44:17.38  received[8f11a0] A00009 FETCH 1 RFC822.TEXT
10-APR-1996 13:44:17.38  Sending[8f11a0]:(* 1 FETCH (RFC822.TEXT ")10-APR-1996 13:44:17.39  Sending[8f11a0]:(")
A00009 OK FETCH completed
)IMAP-I: 10-APR-1996 13:44:17.57  received[bb1008] A00001 APPEND MAIL (\SEEN) "10-Apr-1996 13:43:58 +0000" {144}
10-APR-1996 13:44:18.75  Sending[bb1008]:(A00001 OK APPEND completed
)IMAP-I: 10-APR-1996 13:44:18.78  received[bb1008] A00002 LOGOUT
10-APR-1996 13:44:18.78  Sending[bb1008]:(* BYE sabe02.metro.com.au IMAP2+ server terminating connection
A00002 OK LOGOUT completed
)IMAP-I: 10-APR-1996 13:44:18.81  received[8f11a0] A00010 STORE 1 +Flags (\DELETED)
10-APR-1996 13:44:18.86  Sending[8f11a0]:(* 1 FETCH (FLAGS (\Recent \Seen \Deleted))
A00010 OK STORE completed
)IMAP-I: 10-APR-1996 13:44:18.89  received[8f11a0] A00011 SEARCH DELETED
10-APR-1996 13:44:19.06  Sending[8f11a0]:(* SEARCH 1
A00011 OK SEARCH completed
)IMAP-I: 10-APR-1996 13:44:22.21  received[8f11a0] A00012 EXPUNGE
10-APR-1996 13:44:22.34  Sending[8f11a0]:(* 1 EXPUNGE
A00012 OK NO purge because auto_purge is disabled
)IMAP-I: 10-APR-1996 13:44:22.38  received[8f11a0] A00013 LOGOUT
10-APR-1996 13:44:22.54  Sending[8f11a0]:(* BYE sabe02.metro.com.au IMAP2+ server terminating connection
A00013 OK LOGOUT completed
)