[jira] [Commented] (MAILBOX-392) Strengthen Mailbox name validation upon mailbox creation

2020-12-27 Thread Jira


[ 
https://issues.apache.org/jira/browse/MAILBOX-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17255453#comment-17255453
 ] 

René Cordier commented on MAILBOX-392:
--

https://github.com/linagora/james-project/pull/4168 has been merged

> Strengthen Mailbox name validation upon mailbox creation
> 
>
> Key: MAILBOX-392
> URL: https://issues.apache.org/jira/browse/MAILBOX-392
> Project: James Mailbox
>  Issue Type: Improvement
>  Components: api
>Reporter: Benoit Tellier
>Priority: Major
> Fix For: 3.5.0
>
>
> https://tools.ietf.org/html/rfc3501#section-5.1 states that:
> {code:java}
>3)Although the list-wildcard characters ("%" and "*") are valid
>  in a mailbox name, it is difficult to use such mailbox names
>  with the LIST and LSUB commands due to the conflict with
>  wildcard interpretation.
>5)Two characters, "#" and "&", have meanings by convention, and
>  should be avoided except when used in that convention.
> {code}
> However there requirements are not enforced by the mailbox backend.
> With JMAP we can create a mailbox containing forbidden characters leading to 
> invalid mailbox namesfor instace containing `#`



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[jira] [Commented] (MAILBOX-392) Strengthen Mailbox name validation upon mailbox creation

2020-12-24 Thread Benoit Tellier (Jira)


[ 
https://issues.apache.org/jira/browse/MAILBOX-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17254719#comment-17254719
 ] 

Benoit Tellier commented on MAILBOX-392:


https://github.com/linagora/james-project/pull/4168

We still reject the `#` prefix as it is reserved to denote
a namespace. However, the use of # within the name does not lead
to further ambiguities and can be relaxed.

Names containing `#` are allowed by Cyrus, so relaxing this
conditions helps with data migration from Cyrus servers.

https://tools.ietf.org/html/rfc3501#section-5.1 simply discourages the use of 
`#` due to conventions but do
not require it to be banned.

```
Two characters, "#" and "&", have meanings by convention, and
should be avoided except when used in that convention.
```

> Strengthen Mailbox name validation upon mailbox creation
> 
>
> Key: MAILBOX-392
> URL: https://issues.apache.org/jira/browse/MAILBOX-392
> Project: James Mailbox
>  Issue Type: Improvement
>  Components: api
>Reporter: Benoit Tellier
>Priority: Major
> Fix For: 3.5.0
>
>
> https://tools.ietf.org/html/rfc3501#section-5.1 states that:
> {code:java}
>3)Although the list-wildcard characters ("%" and "*") are valid
>  in a mailbox name, it is difficult to use such mailbox names
>  with the LIST and LSUB commands due to the conflict with
>  wildcard interpretation.
>5)Two characters, "#" and "&", have meanings by convention, and
>  should be avoided except when used in that convention.
> {code}
> However there requirements are not enforced by the mailbox backend.
> With JMAP we can create a mailbox containing forbidden characters leading to 
> invalid mailbox namesfor instace containing `#`



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[jira] [Commented] (MAILBOX-392) Strengthen Mailbox name validation upon mailbox creation

2020-09-23 Thread Jira


[ 
https://issues.apache.org/jira/browse/MAILBOX-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17200667#comment-17200667
 ] 

René Cordier commented on MAILBOX-392:
--

[https://github.com/linagora/james-project/pull/3805] added a change to doc the 
above commit

> Strengthen Mailbox name validation upon mailbox creation
> 
>
> Key: MAILBOX-392
> URL: https://issues.apache.org/jira/browse/MAILBOX-392
> Project: James Mailbox
>  Issue Type: Improvement
>  Components: api
>Reporter: Benoit Tellier
>Priority: Major
> Fix For: 3.5.0
>
>
> https://tools.ietf.org/html/rfc3501#section-5.1 states that:
> {code:java}
>3)Although the list-wildcard characters ("%" and "*") are valid
>  in a mailbox name, it is difficult to use such mailbox names
>  with the LIST and LSUB commands due to the conflict with
>  wildcard interpretation.
>5)Two characters, "#" and "&", have meanings by convention, and
>  should be avoided except when used in that convention.
> {code}
> However there requirements are not enforced by the mailbox backend.
> With JMAP we can create a mailbox containing forbidden characters leading to 
> invalid mailbox namesfor instace containing `#`



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[jira] [Commented] (MAILBOX-392) Strengthen Mailbox name validation upon mailbox creation

2020-09-17 Thread Benoit Tellier (Jira)


[ 
https://issues.apache.org/jira/browse/MAILBOX-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17198062#comment-17198062
 ] 

Benoit Tellier commented on MAILBOX-392:


In IMAP `&` character is escaped (UTF-7) thus there is no restriction to its 
usage in mailbox names.

https://github.com/linagora/james-project/pull/3784 relaxed this constraint and 
tested escaping.

> Strengthen Mailbox name validation upon mailbox creation
> 
>
> Key: MAILBOX-392
> URL: https://issues.apache.org/jira/browse/MAILBOX-392
> Project: James Mailbox
>  Issue Type: Improvement
>  Components: api
>Reporter: Benoit Tellier
>Priority: Major
> Fix For: 3.5.0
>
>
> https://tools.ietf.org/html/rfc3501#section-5.1 states that:
> {code:java}
>3)Although the list-wildcard characters ("%" and "*") are valid
>  in a mailbox name, it is difficult to use such mailbox names
>  with the LIST and LSUB commands due to the conflict with
>  wildcard interpretation.
>5)Two characters, "#" and "&", have meanings by convention, and
>  should be avoided except when used in that convention.
> {code}
> However there requirements are not enforced by the mailbox backend.
> With JMAP we can create a mailbox containing forbidden characters leading to 
> invalid mailbox namesfor instace containing `#`



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[jira] [Commented] (MAILBOX-392) Strengthen Mailbox name validation upon mailbox creation

2019-11-14 Thread Benoit Tellier (Jira)


[ 
https://issues.apache.org/jira/browse/MAILBOX-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16974750#comment-16974750
 ] 

Benoit Tellier commented on MAILBOX-392:


https://github.com/linagora/james-project/pull/2863 strengthened mailbox name 
validation of newly created mailboxes.

> Strengthen Mailbox name validation upon mailbox creation
> 
>
> Key: MAILBOX-392
> URL: https://issues.apache.org/jira/browse/MAILBOX-392
> Project: James Mailbox
>  Issue Type: Improvement
>  Components: api
>Reporter: Benoit Tellier
>Priority: Major
>
> https://tools.ietf.org/html/rfc3501#section-5.1 states that:
> {code:java}
>3)Although the list-wildcard characters ("%" and "*") are valid
>  in a mailbox name, it is difficult to use such mailbox names
>  with the LIST and LSUB commands due to the conflict with
>  wildcard interpretation.
>5)Two characters, "#" and "&", have meanings by convention, and
>  should be avoided except when used in that convention.
> {code}
> However there requirements are not enforced by the mailbox backend.
> With JMAP we can create a mailbox containing forbidden characters leading to 
> invalid mailbox namesfor instace containing `#`



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



[jira] [Commented] (MAILBOX-392) Strengthen Mailbox name validation upon mailbox creation

2019-11-12 Thread Benoit Tellier (Jira)


[ 
https://issues.apache.org/jira/browse/MAILBOX-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16972999#comment-16972999
 ] 

Benoit Tellier commented on MAILBOX-392:


See 
See https://github.com/linagora/james-project/pull/2863

> Strengthen Mailbox name validation upon mailbox creation
> 
>
> Key: MAILBOX-392
> URL: https://issues.apache.org/jira/browse/MAILBOX-392
> Project: James Mailbox
>  Issue Type: Improvement
>  Components: api
>Reporter: Benoit Tellier
>Priority: Major
>
> https://tools.ietf.org/html/rfc3501#section-5.1 states that:
> {code:java}
>3)Although the list-wildcard characters ("%" and "*") are valid
>  in a mailbox name, it is difficult to use such mailbox names
>  with the LIST and LSUB commands due to the conflict with
>  wildcard interpretation.
>5)Two characters, "#" and "&", have meanings by convention, and
>  should be avoided except when used in that convention.
> {code}
> However there requirements are not enforced by the mailbox backend.
> With JMAP we can create a mailbox containing forbidden characters leading to 
> invalid mailbox namesfor instace containing `#`



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org