[imp] Re: 3.1 - Sent Items Folder - Created in a 'nested' INBOX

David Leigh davidl@arach.net.au
Tue, 3 Sep 2002 21:39:42 +0800


This is a multi-part message in MIME format.

---------------------- multipart/alternative attachment
I know - bad form to answer my own question, but I wanted to let people =
know this was resolved before they wasted any time looking into it.

About 10 minutes after sending the original email through things have =
suddenly come right here - simply through the removal of INBOX. from the =
 "namespace" field in the servers.conf file. I was certain that I had =
already tried that but it looks like I couldn't have done so before. =
(Perhaps could add comments in the servers.php file for the next release =
that if you are using Courier-imap with vpopmail - quite a common =
situation I think - that you almost certainly want 'INBOX." in the =
'folders' and nothing in the 'namespace' parameters).

Now that everything is working all I can say is thank you very, very =
much to all the people who have contributed to this project - its =
terrific and infinitely better than the commercial package we were using =
before.

Cheers
David Leigh
  ----- Original Message -----=20
  From: David Leigh=20
  To: imp@lists.horde.org=20
  Sent: Tuesday, September 03, 2002 8:14 PM
  Subject: 3.1 - Sent Items Folder - Created in a 'nested' INBOX


  Hi All,

  I have been installing Imp 3.1 on a Redhat 7.2 box (full details of =
all packages provided later in the email) for the past few weeks. The =
install went smoothly, as did the addition of extra components like =
xlhtml for inline reading or aspell for spell check.

  The *only* problem I'm having - and its a showstopper - is that when a =
logged in user sends a message through IMP, the folder that is created =
to save a copy of the message is nested inside an additional "INBOX". =
This means that the folder cannot then be read in other IMAP clients =
apart from IMP (such as Outlook Express) which just error when they try =
and check the nested folder.

  I have searched the net and mailing lists extensively for an answer to =
this problem, and although there are other reports of it that were =
posted around February this year and answered by Jan, I can find no-one =
who has posted of any definate resolution.

  To give a working example to make things clearer:
  1) User "bob" logs into IMP.
  2) Bob creates a folder "Test".=20

  NOTE: Because we are using Courier-IMAP as the IMAP server the =
servers.php file has *BOTH* namespace and folders set to "INBOX." =
(although I have tried variations with one or both of those options =
disabled). I have been very careful to include the trailing dot, and =
have tried both with and without the trailing dot.

  3) The message "INBOX.Test" was successfully created appears in the =
IMP screen and the folder is created without any problems. Messages can =
be moved from the inbox into the test problem without any hassles.
  4) In the users Maildir directory on the mailserver, a ".Test" =
directory is created by the Courier-IMAP daemon. IE - the full path is =
/var/vpopmail/domains/domain.com/bob/Maildir/.Test
  5) Bob now composes and sends a message, without changing any of his =
personal preferences. The system wide preference is to automatically =
save a copy of sent mail - as from the prefs.php file=20
  $_prefs['sent_mail_folder'] =3D array(
      'value' =3D> 'Sent Items',
      'locked' =3D> false,
      'shared' =3D> true,
      'type' =3D> 'implicit'
  6) After sending the message, a new sub-folder gets created under the =
INBOX folder in IMP. This sub-folder is called INBOX but unlike the Test =
folder Bob made at step 2, this one has a manilla folder graphic to its =
left rather than a mailbox graphic. Beneath this second INBOX, as a =
sub-folder, is a "Sent items" folder. This "Sent Items" folder has the =
standard mailbox graphic to its left. The mail bob has sent has been =
copied to this new INBOX/Sent Items folder.
  7) Looking now at the directory structure on the mailserver shows=20
  /var/vpopmail/domains/domain.com/bob/Maildir/.INBOX.Sent Items

  It looks like IMP is choosing to create an INBOX.Sent Items folder =
rather than a Sent Items folder - but it is **ONLY** doing this when =
that folder is being auto-created to save a copy of outgoing mail. If I =
try to first create a "Test2" folder, and then specify that the test =
folder be used as the sent items folder, IMP simply creates a =
INBOX/Test2 folder the first time a message is sent, in addition to the =
Test2 folder than already exists. This would not be so serious a problem =
if it didn't cause Outlook Express to fail when trying to check the =
"nested" inbox that has been created.

  My system setup is;
  Redhat 7.2
  Imp 3.1 with Horde 2.1
  MySQL 3.23.49a
  Courier-Imap 1.5.3
  Vpopmail 5.3.8
  Using the imap-2002.RC2=20

  If anyone has any questions, or any suggestions at all I would be very =
grateful to hear them.

  Cheers
  David Leigh

---------------------- multipart/alternative attachment
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I know - bad form to answer my own =
question, but I=20
wanted to let people know this was resolved before they wasted any time =
looking=20
into it.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>About 10 minutes after sending the =
original email=20
through&nbsp;things have suddenly come right here - simply through the =
removal=20
of INBOX. from the&nbsp; "namespace" field in the servers.conf file. I =
was=20
certain that I had already tried that but it looks like I couldn't have =
done so=20
before. (Perhaps could add comments in the servers.php file for the next =
release=20
that if you are using Courier-imap with vpopmail - quite a common =
situation I=20
think - that you almost certainly want 'INBOX." in the 'folders' and =
nothing in=20
the 'namespace' parameters).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Now that everything is working all I =
can say is=20
thank you very, very much to all the people who have contributed to this =
project=20
- its terrific and infinitely better than the commercial package we were =
using=20
before.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Cheers</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>David Leigh</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Ddavidl@arach.net.au =
href=3D"mailto:davidl@arach.net.au">David Leigh</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dimp@lists.horde.org=20
  href=3D"mailto:imp@lists.horde.org">imp@lists.horde.org</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, September 03, =
2002 8:14=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> 3.1 - Sent Items =
Folder -=20
  Created in a 'nested' INBOX</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi All,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I have been installing Imp 3.1 on a =
Redhat 7.2=20
  box (full details of all packages provided later in the =
email)&nbsp;for the=20
  past few weeks. The install went smoothly, as did the addition of =
extra=20
  components like xlhtml for inline reading or aspell for spell=20
  check.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>The *only* problem I'm having - and =
its a=20
  showstopper - is that when a logged in user sends a message through =
IMP, the=20
  folder that is created to save a copy of the message is nested inside =
an=20
  additional "INBOX". This means that the folder cannot then be read in =
other=20
  IMAP clients apart from IMP&nbsp;(such as&nbsp;Outlook Express) which =
just=20
  error when they try and check the nested folder.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I have searched the net and mailing =
lists=20
  extensively for an answer to this problem, and although there are =
other=20
  reports of it that were posted&nbsp;around February this year and =
answered by=20
  Jan, I can find no-one who has posted of any definate =
resolution.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>To give a working example to make =
things=20
  clearer:</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>1) User "bob" logs into =
IMP.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>2) Bob creates a folder "Test". =
</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>NOTE: Because we are using =
Courier-IMAP as the=20
  IMAP server the servers.php file has *BOTH* namespace and folders set =
to=20
  "INBOX." (although I have tried variations with one or both of those =
options=20
  disabled).&nbsp;I have been very careful to include the trailing dot, =
and have=20
  tried both with and without the trailing dot.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>3) The message "INBOX.Test" was =
successfully=20
  created appears in the IMP screen and the folder is created without =
any=20
  problems. Messages can be moved from the inbox into the test problem =
without=20
  any hassles.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>4) In the users Maildir directory on =
the=20
  mailserver, a ".Test" directory is created by the Courier-IMAP daemon. =
IE -=20
  the full path is=20
  /var/vpopmail/domains/domain.com/bob/Maildir/.Test</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>5) Bob now composes and sends a =
message, without=20
  changing any of his personal preferences. The system wide preference =
is to=20
  automatically save a copy of sent mail - as from the prefs.php file=20
  </FONT><FONT face=3DArial size=3D2><BR>$_prefs['sent_mail_folder'] =3D =

  array(<BR>&nbsp;&nbsp;&nbsp; 'value' =3D&gt; 'Sent =
Items',<BR>&nbsp;&nbsp;&nbsp;=20
  'locked' =3D&gt; false,<BR>&nbsp;&nbsp;&nbsp; 'shared' =3D&gt;=20
  true,<BR>&nbsp;&nbsp;&nbsp; 'type' =3D&gt; 'implicit'</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>6) After sending the message, a new =
sub-folder=20
  gets created under the INBOX folder in IMP. This sub-folder is called =
INBOX=20
  but unlike the Test folder Bob made at step 2,&nbsp;this one has a =
manilla=20
  folder graphic&nbsp;to its left&nbsp;rather than a mailbox graphic. =
Beneath=20
  this second INBOX, as a sub-folder,&nbsp;is a "Sent items" folder. =
This "Sent=20
  Items" folder has the standard mailbox graphic to its left. The mail =
bob has=20
  sent has been copied to this new INBOX/Sent Items folder.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>7) Looking now at the directory =
structure on the=20
  mailserver shows </FONT></DIV>
  <DIV><FONT face=3DArial=20
  size=3D2>/var/vpopmail/domains/domain.com/bob/Maildir/.INBOX.Sent=20
  Items</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>It looks like IMP is choosing to =
create an=20
  INBOX.Sent Items folder rather than a Sent Items folder - but it is =
**ONLY**=20
  doing this when that folder is being auto-created to save a copy of =
outgoing=20
  mail. If I try to first create a "Test2" folder, and then specify that =
the=20
  test folder be used as the sent items folder, IMP simply creates a =
INBOX/Test2=20
  folder the first time a message is sent, in addition to the Test2 =
folder than=20
  already exists. This would not be so serious a problem if it didn't =
cause=20
  Outlook Express to fail when trying to check the "nested" inbox that =
has been=20
  created.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>My system setup is;</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Redhat 7.2</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Imp 3.1 with Horde 2.1</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>MySQL 3.23.49a</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Courier-Imap 1.5.3</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Vpopmail 5.3.8</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Using the imap-2002.RC2 </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>If anyone has any questions, or any =
suggestions=20
  at all I would be very grateful to hear them.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Cheers</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>David =
Leigh</FONT></DIV></BLOCKQUOTE></BODY></HTML>

---------------------- multipart/alternative attachment--