View Issue Details

IDProjectCategoryView StatusLast Update
0005482SOGoBackend Mailpublic2022-02-17 15:03
Reporterrschuetz Assigned Tofrancis  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Fixed in Version5.6.0 
Summary0005482: Empty Junk folder action does not work
Description

The POST request for the empty Junk folder action (https://sogo/SOGo/so/user/Mail/0/folderINBOX/folderJunk/emptyJunk) returns HTTP 404. As it's working fine on the demo instance, I think this is related to folder hierarchy (SOGoJunkFolderName = "INBOX/Junk").

TagsNo tags attached.

Relationships

related to 0005224 resolvedfrancis Empty Junk Folder Feature 

Activities

rschuetz

rschuetz

2022-02-14 08:39

reporter   ~0015863

Behaviour is unchanged with 20220214 nightly build.

rschuetz

rschuetz

2022-02-15 08:08

reporter   ~0015864

Behaviour is unchanged with 20220215 nightly build.

francis

francis

2022-02-15 14:02

administrator   ~0015865

I've tested with Dovecot with the junk folder placed under the inbox and it works fine.

Does the mailbox exist?

rschuetz

rschuetz

2022-02-15 14:09

reporter   ~0015866

The mailbox exists and its content is listed correctly. Did you test with NGImap4ConnectionStringSeparator = "."?

francis

francis

2022-02-15 15:44

administrator   ~0015867

I can't reproduce the problem with neither . nor /. On which Linux distro are you?

Can you set ImapDebugEnabled = YES; and share the result of the IMAP commands?

rschuetz

rschuetz

2022-02-16 08:21

reporter   ~0015874

We are using Debian Bullseye. SOGo log with IMAP debugging (selecting Junk folder, executing Empty Junk folder action) is attached.

sogo.log (7,950 bytes)   
S[0x56466d502200]: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN] Dovecot (Debian) ready.
C[0x56466d538b10]: 1 login "user" "password"
S[0x56466d502200]: 1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY LITERAL+ NOTIFY SPECIAL-USE COMPRESS=DEFLATE QUOTA ACL RIGHTS=texk] Logged in
C[0x56466d538b10]: 2 capability
S[0x56466d502200]: * CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY LITERAL+ NOTIFY SPECIAL-USE COMPRESS=DEFLATE QUOTA ACL RIGHTS=texk
S[0x56466d502200]: 2 OK Capability completed (0.001 + 0.000 secs).
C[0x56466d538b10]: 3 ID ("x-originating-ip" "x.x.x.x")
S[0x56466d502200]: * ID ("name" "Dovecot")
S[0x56466d502200]: 3 OK ID completed (0.001 + 0.001 secs).
C[0x56466d538b10]: 4 namespace
S[0x56466d502200]: * NAMESPACE (("INBOX." ".")) (("shared." ".")) NIL
S[0x56466d502200]: 4 OK Namespace completed (0.001 + 0.000 secs).
C[0x56466d538b10]: 5 LIST "" ""
S[0x56466d502200]: * LIST (\Noselect) "." ""
S[0x56466d502200]: 5 OK List completed (0.001 + 0.000 secs).
C[0x56466d538b10]: 6 select "INBOX.Junk"
S[0x56466d502200]: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
S[0x56466d502200]: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
S[0x56466d502200]: * 1 EXISTS
S[0x56466d502200]: * 0 RECENT
S[0x56466d502200]: * OK [UIDVALIDITY 1466515659] UIDs valid
S[0x56466d502200]: * OK [UIDNEXT 2] Predicted next UID
S[0x56466d502200]: * OK [HIGHESTMODSEQ 2] Highest
S[0x56466d502200]: 6 OK [READ-WRITE] Select completed (0.002 + 0.000 + 0.001 secs).
C[0x56466d538b10]: 7 UID SORT (REVERSE ARRIVAL) UTF-8 NOT DELETED
S[0x56466d502200]: * SORT 1
S[0x56466d502200]: 7 OK Sort completed (0.001 + 0.001 secs).
C[0x56466d538b10]: 8 ENABLE QRESYNC
S[0x56466d502200]: * OK [HIGHESTMODSEQ 2] Highest
S[0x56466d502200]: * ENABLED QRESYNC
S[0x56466d502200]: 8 OK Enabled (0.001 + 0.000 secs).
C[0x56466d538b10]: 9 unselect
S[0x56466d502200]: 9 OK Unselect completed (0.001 + 0.000 secs).
C[0x56466d538b10]: 10 select "INBOX.Junk"
S[0x56466d502200]: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
S[0x56466d502200]: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
S[0x56466d502200]: * 1 EXISTS
S[0x56466d502200]: * 0 RECENT
S[0x56466d502200]: * OK [UIDVALIDITY 1466515659] UIDs valid
S[0x56466d502200]: * OK [UIDNEXT 2] Predicted next UID
S[0x56466d502200]: * OK [HIGHESTMODSEQ 2] Highest
S[0x56466d502200]: 10 OK [READ-WRITE] Select completed (0.001 + 0.000 secs).
C[0x56466d538b10]: 11 uid fetch 1 (UID FLAGS ENVELOPE RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (X-PRIORITY)])
S[0x56466d502200]: * 1 FETCH (UID 1 […]
Feb 16 08:56:02 sogod [980102]: x.x.x.x "POST /SOGo/so/user/Mail/0/folderINBOX/folderJunk/view HTTP/1.1" 200 562/48 0.144 - - 0 - 13
Feb 16 08:56:02 sogod [980102]: x.x.x.x "GET /SOGo/so/user/Mail/0/folderINBOX/folderJunk/labels HTTP/1.1" 200 2/0 0.067 - - 0 - 13
S[0x56466d502200]: 11 OK Fetch completed (0.001 + 0.001 secs).
C[0x56466d538b10]: 12 status "INBOX.Junk" (unseen)
S[0x56466d502200]: * STATUS INBOX.Junk (UNSEEN 0)
S[0x56466d502200]: 12 OK [CLIENTBUG] Status on selected mailbox completed (0.001 + 0.000 secs).
C[0x56466d538b10]: 13 getquotaroot "INBOX"
S[0x56466d502200]: * QUOTAROOT INBOX ""
S[0x56466d502200]: * QUOTA "" (STORAGE 570 524288)
S[0x56466d502200]: 13 OK Getquotaroot completed (0.001 + 0.000 secs).
C[0x56466d538b10]: 14 logout
S[0x56466d502200]: * BYE Logging out
S[0x56466d2af160]: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN] Dovecot (Debian) ready.
C[0x56466d677970]: 1 login "user" "password"
S[0x56466d2af160]: 1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY LITERAL+ NOTIFY SPECIAL-USE COMPRESS=DEFLATE QUOTA ACL RIGHTS=texk] Logged in
C[0x56466d677970]: 2 capability
S[0x56466d2af160]: * CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY LITERAL+ NOTIFY SPECIAL-USE COMPRESS=DEFLATE QUOTA ACL RIGHTS=texk
S[0x56466d2af160]: 2 OK Capability completed (0.001 + 0.000 secs).
C[0x56466d677970]: 3 ID ("x-originating-ip" "x.x.x.x")
S[0x56466d2af160]: * ID ("name" "Dovecot")
S[0x56466d2af160]: 3 OK ID completed (0.001 + 0.000 secs).
C[0x56466d677970]: 4 namespace
S[0x56466d2af160]: * NAMESPACE (("INBOX." ".")) (("shared." ".")) NIL
S[0x56466d2af160]: 4 OK Namespace completed (0.001 + 0.000 secs).
C[0x56466d677970]: 5 LIST "" ""
S[0x56466d2af160]: * LIST (\Noselect) "." ""
S[0x56466d2af160]: 5 OK List completed (0.001 + 0.000 secs).
C[0x56466d677970]: 6 select "INBOX.Junk"
S[0x56466d2af160]: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
S[0x56466d2af160]: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
S[0x56466d2af160]: * 1 EXISTS
S[0x56466d2af160]: * 0 RECENT
S[0x56466d2af160]: * OK [UIDVALIDITY 1466515659] UIDs valid
S[0x56466d2af160]: * OK [UIDNEXT 2] Predicted next UID
S[0x56466d2af160]: * OK [HIGHESTMODSEQ 2] Highest
S[0x56466d2af160]: 6 OK [READ-WRITE] Select completed (0.001 + 0.000 secs).
C[0x56466d677970]: 7 logout
S[0x56466d2af160]: * BYE Logging out
Feb 16 08:56:37 sogod [980102]: x.x.x.x "POST /SOGo/so/user/Mail/0/folderINBOX/folderJunk/emptyJunk HTTP/1.1" 404 208/0 0.066 - - 0 - 13
S[0x56466d1f3f00]: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN] Dovecot (Debian) ready.
C[0x56466d587af0]: 1 login "user" "password"
S[0x56466d1f3f00]: 1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY LITERAL+ NOTIFY SPECIAL-USE COMPRESS=DEFLATE QUOTA ACL RIGHTS=texk] Logged in
C[0x56466d587af0]: 2 capability
S[0x56466d1f3f00]: * CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY LITERAL+ NOTIFY SPECIAL-USE COMPRESS=DEFLATE QUOTA ACL RIGHTS=texk
S[0x56466d1f3f00]: 2 OK Capability completed (0.001 + 0.000 secs).
C[0x56466d587af0]: 3 ID ("x-originating-ip" "x.x.x.x")
S[0x56466d1f3f00]: * ID ("name" "Dovecot")
S[0x56466d1f3f00]: 3 OK ID completed (0.001 + 0.000 secs).
C[0x56466d587af0]: 4 namespace
S[0x56466d1f3f00]: * NAMESPACE (("INBOX." ".")) (("shared." ".")) NIL
S[0x56466d1f3f00]: 4 OK Namespace completed (0.001 + 0.000 secs).
C[0x56466d587af0]: 5 LIST "" ""
S[0x56466d1f3f00]: * LIST (\Noselect) "." ""
S[0x56466d1f3f00]: 5 OK List completed (0.001 + 0.000 secs).
C[0x56466d587af0]: 6 logout
S[0x56466d1f3f00]: * BYE Logging out
sogo.log (7,950 bytes)   
francis

francis

2022-02-16 13:36

administrator   ~0015876

No error with the IMAP commands, so the 404 comes from the emptyJunk action. Have you compile sogod yourself? I've pushed another change; please recompile or install the next nightly build (>= 20220217).

rschuetz

rschuetz

2022-02-17 15:00

reporter   ~0015877

It's working with 20220217 nightly build now.

Related Changesets

sogo: master fe038bb2

2022-02-11 13:03

francis


Details Diff
fix(mail): identify junk mailbox in lookup

Fixes 0005482
Affected Issues
0005482
mod - SoObjects/Mailer/SOGoMailFolder.m Diff File

sogo: master 63ad7aac

2022-02-14 18:35

francis


Details Diff
fix(mail): identify junk mailbox in lookup

Fixes 0005482
Affected Issues
0005482
mod - SoObjects/Mailer/SOGoMailAccount.m Diff File

sogo: master 557ff59e

2022-02-16 13:35

francis


Details Diff
fix(mail): identify junk mailbox in lookup

Fixes 0005482
Affected Issues
0005482
mod - SoObjects/Mailer/SOGoMailNamespace.m Diff File
mod - SoObjects/Mailer/product.plist Diff File

Issue History

Date Modified Username Field Change
2022-02-11 12:44 rschuetz New Issue
2022-02-11 13:04 francis Changeset attached => sogo master fe038bb2
2022-02-11 13:04 francis Assigned To => francis
2022-02-11 13:04 francis Resolution open => fixed
2022-02-11 13:05 francis Status new => resolved
2022-02-11 13:05 francis Fixed in Version => 5.6.0
2022-02-14 08:39 rschuetz Status resolved => feedback
2022-02-14 08:39 rschuetz Resolution fixed => reopened
2022-02-14 08:39 rschuetz Note Added: 0015863
2022-02-14 18:35 francis Changeset attached => sogo master 63ad7aac
2022-02-14 18:35 francis Resolution reopened => fixed
2022-02-14 18:35 francis Status feedback => resolved
2022-02-15 08:08 rschuetz Status resolved => feedback
2022-02-15 08:08 rschuetz Resolution fixed => reopened
2022-02-15 08:08 rschuetz Note Added: 0015864
2022-02-15 14:02 francis Note Added: 0015865
2022-02-15 14:09 rschuetz Note Added: 0015866
2022-02-15 14:09 rschuetz Status feedback => assigned
2022-02-15 15:44 francis Note Added: 0015867
2022-02-15 15:45 francis Relationship added related to 0005224
2022-02-16 08:21 rschuetz Note Added: 0015874
2022-02-16 08:21 rschuetz File Added: sogo.log
2022-02-16 13:35 francis Changeset attached => sogo master 557ff59e
2022-02-16 13:35 francis Resolution reopened => fixed
2022-02-16 13:36 francis Note Added: 0015876
2022-02-17 15:00 rschuetz Note Added: 0015877
2022-02-17 15:03 francis Status assigned => resolved