Author Topic: Subscribing/unsubscribing issue  (Read 4455 times)

Offline dshepherd

  • Jr. Member
  • **
  • Posts: 87
Subscribing/unsubscribing issue
« on: January 20, 2011, 06:04:18 AM »
Hi,
I have just done a fresh install of 0.5 stable and I have issues with subscribing and unsubscribing from folders that contain sub folders.

In 0.5 stable if I unsubscribe from a parent folder and then go back to the inbox, I can see that the name of the parent folder is greyed out and not clickable (so far so good!). If I then go back to the Manage Folders screen, I can see that there is a greyed out tick against the unsubscribed parent folder (as the special folders have) and I can't then subscribe back to the parent folder again. I can only subscribe back to this folder again by adding it manually to courierimapsubscribed.

Checking this against 0.4.2 stable, If I unsubscribe from a parent folder, when I go to the inbox I can still click and read emails within the folder. When I go back to the Manage Folders screen I can see that it has not been unsubscribed. It could be that this is expected behaviour.

In both versions I can unsubscribe/unsubscribe from folders without sub folders as expected.

I am using courier IMAP and namespace vars in main.inc.php are all set to null.

I have checked the errors and imap logs and there s nothing in either that would suggest an issue.

I would be grateful for any thoughts on this.

Offline alec

  • Hero Member
  • *****
  • Posts: 1,367
Subscribing/unsubscribing issue
« Reply #1 on: January 20, 2011, 07:42:38 AM »

Offline dshepherd

  • Jr. Member
  • **
  • Posts: 87
Subscribing/unsubscribing issue
« Reply #2 on: January 20, 2011, 09:24:56 AM »
Hi Alec,
Thanks for the link. I have applied the patch, although it does not solve the issue.

I think my issue is different from that of the patch.

The parent folders that cannot be re-subscribed are not actually the special folders (inbox, drafts etc) but user defined folders which would sit alongside the special folders. For example, if you had the following folder setup

Inbox
Drafts
Sent
Junk
Deleted Items
Folder 1
__Folder 2
____Folder 3
__Folder 4
Folder 5

It would be Folder 1 and folder 2 that have the unsubscribe/subscribe issue (parent folders), whereas Folder 3, Folder 4 and Folder 5 (don't contain child folders) would unsubscribe/subscribe as expected.

Any further thoughts would be appreciated!
« Last Edit: January 20, 2011, 09:29:01 AM by dshepherd »

Offline dshepherd

  • Jr. Member
  • **
  • Posts: 87
Subscribing/unsubscribing issue
« Reply #3 on: January 20, 2011, 11:14:28 AM »
Further to the details above, I have just done a fresh install of the latest nightly build (4432) and the issue still exists.

Offline alec

  • Hero Member
  • *****
  • Posts: 1,367
Subscribing/unsubscribing issue
« Reply #4 on: January 20, 2011, 01:47:52 PM »
Enable imap_debug and provide the log.

Offline dshepherd

  • Jr. Member
  • **
  • Posts: 87
Subscribing/unsubscribing issue
« Reply #5 on: January 21, 2011, 04:33:38 AM »
Hi Alec,
Below is the log from the latest nightly build (4322) install. I have created a user with the folder setup as detailed above.

Many thanks for you help.

[21-Jan-2011 09:17:51 +0000]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
 STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.  See COPYING for distribution information.
[21-Jan-2011 09:17:51 +0000]: C: A0001 LOGIN xxxx@xxxxxxxxxxxxxxx xxxxxxxxx
[21-Jan-2011 09:17:51 +0000]: S: A0001 OK LOGIN Ok.
[21-Jan-2011 09:17:51 +0000]: C: A0002 LIST "" "*"
[21-Jan-2011 09:17:51 +0000]: S: * LIST (\HasNoChildren) "." "INBOX.Folder 1.Folder 2.Folder 3"
[21-Jan-2011 09:17:51 +0000]: S: * LIST (\HasChildren) "." "INBOX.Folder 1.Folder 2"
[21-Jan-2011 09:17:51 +0000]: S: * LIST (\HasNoChildren) "." "INBOX.Folder 1.Folder 4"
[21-Jan-2011 09:17:51 +0000]: S: * LIST (\HasChildren) "." "INBOX.Folder 1"
[21-Jan-2011 09:17:51 +0000]: S: * LIST (\HasNoChildren) "." "INBOX.Folder 5"
[21-Jan-2011 09:17:51 +0000]: S: * LIST (\Unmarked \HasChildren) "." "INBOX"
[21-Jan-2011 09:17:51 +0000]: S: A0002 OK LIST completed
[21-Jan-2011 09:17:51 +0000]: C: A0003 CAPABILITY
[21-Jan-2011 09:17:51 +0000]: S: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
[21-Jan-2011 09:17:51 +0000]: S: A0003 OK CAPABILITY completed
[21-Jan-2011 09:17:51 +0000]: C: A0004 LSUB "" "*"
[21-Jan-2011 09:17:51 +0000]: S: * LSUB (\HasChildren) "." "INBOX.Folder 1"
[21-Jan-2011 09:17:51 +0000]: S: * LSUB (\HasNoChildren) "." "INBOX.Folder 5"
[21-Jan-2011 09:17:51 +0000]: S: * LSUB (\HasNoChildren) "." "INBOX.Folder 1.Folder 4"
[21-Jan-2011 09:17:51 +0000]: S: * LSUB (\HasNoChildren) "." "INBOX.Folder 1.Folder 2.Folder 3"
[21-Jan-2011 09:17:51 +0000]: S: * LSUB (\HasChildren) "." "INBOX.Folder 1.Folder 2"
[21-Jan-2011 09:17:51 +0000]: S: * LSUB (\Noselect \HasChildren) "." "INBOX"
[21-Jan-2011 09:17:51 +0000]: S: A0004 OK LSUB completed
[21-Jan-2011 09:17:51 +0000]: C: A0005 GETQUOTAROOT INBOX
[21-Jan-2011 09:17:51 +0000]: S: * QUOTAROOT "INBOX" "ROOT"
[21-Jan-2011 09:17:51 +0000]: S: * QUOTA "ROOT"
[21-Jan-2011 09:17:51 +0000]: S: A0005 OK GETQUOTAROOT Ok.
[21-Jan-2011 09:17:51 +0000]: C: A0006 LOGOUT
[21-Jan-2011 09:17:51 +0000]: S: * BYE Courier-IMAP server shutting down
[21-Jan-2011 09:17:51 +0000]: S: A0006 OK LOGOUT completed
[21-Jan-2011 09:17:53 +0000]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
 STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.  See COPYING for distribution information.
[21-Jan-2011 09:17:53 +0000]: C: A0001 LOGIN xxxx@xxxxxxxxxxxxxxx xxxxxxxxx
[21-Jan-2011 09:17:53 +0000]: S: A0001 OK LOGIN Ok.
[21-Jan-2011 09:17:53 +0000]: C: A0002 UNSUBSCRIBE "INBOX.Folder 1"
[21-Jan-2011 09:17:53 +0000]: S: A0002 OK Folder unsubscribed.
[21-Jan-2011 09:17:53 +0000]: C: A0003 LOGOUT
[21-Jan-2011 09:17:53 +0000]: S: * BYE Courier-IMAP server shutting down
[21-Jan-2011 09:17:53 +0000]: S: A0003 OK LOGOUT completed
[21-Jan-2011 09:17:55 +0000]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
 STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.  See COPYING for distribution information.
[21-Jan-2011 09:17:55 +0000]: C: A0001 LOGIN xxxx@xxxxxxxxxxxxxxx xxxxxxxxx
[21-Jan-2011 09:17:55 +0000]: S: A0001 OK LOGIN Ok.
[21-Jan-2011 09:17:55 +0000]: C: A0002 CAPABILITY
[21-Jan-2011 09:17:55 +0000]: S: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
[21-Jan-2011 09:17:55 +0000]: S: A0002 OK CAPABILITY completed
[21-Jan-2011 09:17:55 +0000]: C: A0003 LSUB "" "*"
[21-Jan-2011 09:17:55 +0000]: S: * LSUB (\HasNoChildren) "." "INBOX.Folder 5"
[21-Jan-2011 09:17:55 +0000]: S: * LSUB (\HasNoChildren) "." "INBOX.Folder 1.Folder 4"
[21-Jan-2011 09:17:55 +0000]: S: * LSUB (\HasNoChildren) "." "INBOX.Folder 1.Folder 2.Folder 3"
[21-Jan-2011 09:17:55 +0000]: S: * LSUB (\HasChildren) "." "INBOX.Folder 1.Folder 2"
[21-Jan-2011 09:17:55 +0000]: S: * LSUB (\Noselect \HasChildren) "." "INBOX.Folder 1"
[21-Jan-2011 09:17:55 +0000]: S: * LSUB (\Noselect \HasChildren) "." "INBOX"
[21-Jan-2011 09:17:55 +0000]: S: A0003 OK LSUB completed
[21-Jan-2011 09:17:55 +0000]: C: A0004 GETQUOTAROOT INBOX
[21-Jan-2011 09:17:55 +0000]: S: * QUOTAROOT "INBOX" "ROOT"
[21-Jan-2011 09:17:55 +0000]: S: * QUOTA "ROOT"
[21-Jan-2011 09:17:55 +0000]: S: A0004 OK GETQUOTAROOT Ok.
[21-Jan-2011 09:17:55 +0000]: C: A0005 LOGOUT
[21-Jan-2011 09:17:55 +0000]: S: * BYE Courier-IMAP server shutting down
[21-Jan-2011 09:17:55 +0000]: S: A0005 OK LOGOUT completed
[21-Jan-2011 09:17:55 +0000]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
 STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.  See COPYING for distribution information.
[21-Jan-2011 09:17:55 +0000]: C: A0001 LOGIN xxxx@xxxxxxxxxxxxxxx xxxxxxxxx
[21-Jan-2011 09:17:55 +0000]: S: A0001 OK LOGIN Ok.
[21-Jan-2011 09:17:55 +0000]: C: A0002 STATUS "INBOX.Folder 5" (MESSAGES UNSEEN)
[21-Jan-2011 09:17:55 +0000]: S: * STATUS "INBOX.Folder 5" (MESSAGES 0 UNSEEN 0)
[21-Jan-2011 09:17:55 +0000]: S: A0002 OK STATUS Completed.
[21-Jan-2011 09:17:55 +0000]: C: A0003 LOGOUT
[21-Jan-2011 09:17:55 +0000]: S: * BYE Courier-IMAP server shutting down
[21-Jan-2011 09:17:55 +0000]: S: A0003 OK LOGOUT completed
[21-Jan-2011 09:17:55 +0000]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
 STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc.  See COPYING for distribution information.
[21-Jan-2011 09:17:55 +0000]: C: A0001 LOGIN xxxx@xxxxxxxxxxxxxxx xxxxxxxxx
[21-Jan-2011 09:17:55 +0000]: S: A0001 OK LOGIN Ok.
[21-Jan-2011 09:17:55 +0000]: C: A0002 CAPABILITY
[21-Jan-2011 09:17:55 +0000]: S: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
[21-Jan-2011 09:17:55 +0000]: S: A0002 OK CAPABILITY completed
[21-Jan-2011 09:17:55 +0000]: C: A0003 LSUB "" "*"
[21-Jan-2011 09:17:55 +0000]: S: * LSUB (\HasNoChildren) "." "INBOX.Folder 5"
[21-Jan-2011 09:17:55 +0000]: S: * LSUB (\HasNoChildren) "." "INBOX.Folder 1.Folder 4"
[21-Jan-2011 09:17:55 +0000]: S: * LSUB (\HasNoChildren) "." "INBOX.Folder 1.Folder 2.Folder 3"
[21-Jan-2011 09:17:55 +0000]: S: * LSUB (\HasChildren) "." "INBOX.Folder 1.Folder 2"
[21-Jan-2011 09:17:55 +0000]: S: * LSUB (\Noselect \HasChildren) "." "INBOX.Folder 1"
[21-Jan-2011 09:17:55 +0000]: S: * LSUB (\Noselect \HasChildren) "." "INBOX"
[21-Jan-2011 09:17:55 +0000]: S: A0003 OK LSUB completed
[21-Jan-2011 09:17:55 +0000]: C: A0004 STATUS "INBOX.Folder 5" (MESSAGES UNSEEN)
[21-Jan-2011 09:17:55 +0000]: S: * STATUS "INBOX.Folder 5" (MESSAGES 0 UNSEEN 0)
[21-Jan-2011 09:17:55 +0000]: S: A0004 OK STATUS Completed.
[21-Jan-2011 09:17:55 +0000]: C: A0005 LOGOUT
[21-Jan-2011 09:17:55 +0000]: S: * BYE Courier-IMAP server shutting down
[21-Jan-2011 09:17:55 +0000]: S: A0005 OK LOGOUT completed

Offline alec

  • Hero Member
  • *****
  • Posts: 1,367
Subscribing/unsubscribing issue
« Reply #6 on: January 21, 2011, 12:13:49 PM »
Quote from: dshepherd;32637

[21-Jan-2011 09:17:53 +0000]: C: A0002 UNSUBSCRIBE "INBOX.Folder 1"
[21-Jan-2011 09:17:53 +0000]: S: A0002 OK Folder unsubscribed.
...
[21-Jan-2011 09:17:55 +0000]: C: A0003 LSUB "" "*"
...
[21-Jan-2011 09:17:55 +0000]: S: * LSUB (\Noselect \HasChildren) "." "INBOX.Folder 1"

I'm not sure, but this could be a Courier bug.

Offline dshepherd

  • Jr. Member
  • **
  • Posts: 87
Subscribing/unsubscribing issue
« Reply #7 on: January 22, 2011, 02:45:41 PM »
Hi Alec,
Thanks for your reply. That's a shame as it's a bug that is likely to make RC unusable for me. I'll compare with the log from 0.4.2 and see if anything is different.

I'd be able to live with the behaviour form 0.4.2, is there any chance of getting that back?

Offline dshepherd

  • Jr. Member
  • **
  • Posts: 87
Subscribing/unsubscribing issue
« Reply #8 on: February 11, 2011, 08:46:53 AM »
Hi Alec,
I have now upgraded to 0.5.1 stable and the same issue is still occurring so I have just removed the option for users to unsubscribe folders.

I think there need to be a resolution here because if it is happening to me with a standard Courier IMAP install then it is likely to be affecting others also.

Thanks.