[jira] [Created] (JAMES-2273) James should warn when the jwt token is invalid or empty

2017-12-27 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2273:
---

 Summary: James should warn when the jwt token is invalid or empty
 Key: JAMES-2273
 URL: https://issues.apache.org/jira/browse/JAMES-2273
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen


When launching James with an empty jwt public key, there is no warning, no 
error message, but of course impossible to connect via jmap.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2262) Add more testing for SpamAssassin and documentation how to use SpamAssassin

2017-12-15 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2262:
---

 Summary: Add more testing for SpamAssassin and documentation how 
to use SpamAssassin
 Key: JAMES-2262
 URL: https://issues.apache.org/jira/browse/JAMES-2262
 Project: James Server
  Issue Type: Test
Reporter: Quynh Nguyen


Provide an integration test showing that James works well with Spamassassin.
If needed add some documentation to explain how to integrate/configure them.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2258) The inlined attachment should consider as false when inlined but no CID

2017-12-13 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2258:
---

 Summary: The inlined attachment should consider as false when 
inlined but no CID
 Key: JAMES-2258
 URL: https://issues.apache.org/jira/browse/JAMES-2258
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen


We have an inlined attachment but without CID so system should consider that's 
not inlined attachment --> return inlined = false in this case



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2255) getMessagesList.position range is shorter than the one from JMAP specs

2017-12-07 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2255:
---

 Summary: getMessagesList.position range is shorter than the one 
from JMAP specs
 Key: JAMES-2255
 URL: https://issues.apache.org/jira/browse/JAMES-2255
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen


As specified in JMAP spec, command getMessagesList request can have a position 
field defined as Number 
(cf http://jmap.io/spec-core.html#the-number-datatype).
When setting position to a high value: 9007199254740991, an invalid error is 
returned.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Commented] (JAMES-2009) Fix unstable CassandraMailboxManagerStressTest

2017-11-28 Thread Quynh Nguyen (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16270063#comment-16270063
 ] 

Quynh Nguyen commented on JAMES-2009:
-

This one also fix unstable CassandraUserProvisionningConcurrencyTest
It's fixed by removing the unneeded module when start jmap server

> Fix unstable CassandraMailboxManagerStressTest
> --
>
> Key: JAMES-2009
> URL: https://issues.apache.org/jira/browse/JAMES-2009
> Project: James Server
>  Issue Type: Bug
>  Components: Build System
>Reporter: Antoine Duprat
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2230) System mailbox shall be able to be shared

2017-11-22 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2230:
---

 Summary: System mailbox shall be able to be shared
 Key: JAMES-2230
 URL: https://issues.apache.org/jira/browse/JAMES-2230
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen


It needs to share system mailbox to another user



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2229) [IMAP] Mailbox name validation

2017-11-21 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2229:
---

 Summary: [IMAP] Mailbox name validation
 Key: JAMES-2229
 URL: https://issues.apache.org/jira/browse/JAMES-2229
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen


We should disallow empty mailbox name parts.

As stated in RFC-3501 :

> mailbox = "INBOX" / astring
> astring = 1*ASTRING-CHAR / string
and string is non empty (nstring is used for empty), so it means that the case 
of double delimiter is not valid

We should forbid the use of invalid mailbox name.

Note: CREATE allow mailbox name ending  by the separator, but it should be 
removed. This case should remain valid.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2223) NPE in MessageContantExtractor

2017-11-20 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2223:
---

 Summary: NPE in MessageContantExtractor
 Key: JAMES-2223
 URL: https://issues.apache.org/jira/browse/JAMES-2223
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen
 Attachments: inlinedWithoutContentDisposition.eml

A NPE is present in MessageContantExtractor, preventing me to read a specific 
email in JMAP.
The content of message was attached



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2216) Integration test when sharing subfolder without sharing parent

2017-11-14 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2216:
---

 Summary: Integration test when sharing subfolder without sharing 
parent
 Key: JAMES-2216
 URL: https://issues.apache.org/jira/browse/JAMES-2216
 Project: James Server
  Issue Type: Test
Reporter: Quynh Nguyen


The test case:
- Alice create a sub-folder then share to Bob --> Bob can see that sub-folder



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2213) JMAP supports isForwarded property

2017-11-12 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2213:
---

 Summary: JMAP supports isForwarded property
 Key: JAMES-2213
 URL: https://issues.apache.org/jira/browse/JAMES-2213
 Project: James Server
  Issue Type: Task
Reporter: Quynh Nguyen


We need to:
Add a GetMessageList filter and its tests
Add an entry in OldKeywords, and handle:

Convertion logic in Keywords
Modify upcoming requests: UpdateMessagePatch, CreationMessage
Add a isForwarded method in Message computed from Keywords




Of course it requires JMAP integration tests.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (MAILBOX-316) Subfolder sharing should modify parent right (add lookup)

2017-11-01 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created MAILBOX-316:


 Summary: Subfolder sharing should modify parent right (add lookup)
 Key: MAILBOX-316
 URL: https://issues.apache.org/jira/browse/MAILBOX-316
 Project: James Mailbox
  Issue Type: Improvement
Reporter: Quynh Nguyen


Propose with a MailboxListener. 
Pros:
- protocol independant
- Less code invasive.
We need to:
- Create an ACL event
- Create the listener for this


We don't need to "remove" lookup right when removing rights on child mailbox



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2206) Has broken URL on website

2017-10-30 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2206:
---

 Summary: Has broken URL on website
 Key: JAMES-2206
 URL: https://issues.apache.org/jira/browse/JAMES-2206
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen


the broken URL at: http://james.apache.org/other-versions.html and its children

It should be http://james.apache.org/server/other-versions.html instead of



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2187) check that download email and attachment work on a delegated message

2017-10-15 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2187:
---

 Summary: check that download email and attachment work on a 
delegated message
 Key: JAMES-2187
 URL: https://issues.apache.org/jira/browse/JAMES-2187
 Project: James Server
  Issue Type: Test
Reporter: Quynh Nguyen


If a user Alice has a message M with attachments in a mailbox M1.
Given a other user Bob such as Alice have shared M1 with Bob.
Bob should be able to download with JMAP the mail M and its attachments



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2183) Flags consistency when sharing mailbox

2017-10-11 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2183:
---

 Summary: Flags consistency when sharing mailbox
 Key: JAMES-2183
 URL: https://issues.apache.org/jira/browse/JAMES-2183
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen


Today, the Flags of a message are stored on the associations between the 
message and its mailboxes.

As JMAP makes messages Top Level Domain objects, that might be in several 
mailboxes, then we might need to merge several flags into a single one.


1/ We need to build a CRDT (Commutative) transformation for combining flags 
together. The idea here is that the way we will reduce multiple set of flags 
into only one set of flags will not depend of the order of the set.


For instance if the message is marked as important in one mailbox but not the 
other, the GetMessages should return it as important.

For instance if the message is marked as unread in one mailbox but not the 
other, the GetMessages should return it as read.

We need this transformation to be not order dependant.


2/ We need more testing to understand the state of different flags in James:


Especially, does GetMessageList in a specific mailbox reports messages being 
flags (when the message is also marked as not flagged elsewhere?).

We might want to test SetFlags behaviour on such messages (in several mailboxes 
with different flags).


2/ From the current state of flags in James, do you think we can improve our 
handling of flags inconsistencies?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2182) LIST IMAP command should return shared mailbox

2017-10-10 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2182:
---

 Summary: LIST IMAP command should return shared mailbox
 Key: JAMES-2182
 URL: https://issues.apache.org/jira/browse/JAMES-2182
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen


We support shared mailbox recently and it works well on JMAP layer
Now, make it works on IMAP with LIST command



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Updated] (JAMES-2173) Introduce a ``Mailbox.namespace`` property at JMAP level when getMailbox

2017-10-04 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-2173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen updated JAMES-2173:

Summary: Introduce a ``Mailbox.namespace`` property at JMAP level when 
getMailbox  (was: Introduce a ``Mailbox.namespace`` property)

> Introduce a ``Mailbox.namespace`` property at JMAP level when getMailbox
> 
>
> Key: JAMES-2173
> URL: https://issues.apache.org/jira/browse/JAMES-2173
> Project: James Server
>  Issue Type: Improvement
>Reporter: Quynh Nguyen
>
> Mailboxes should give information about their type and owner.
> For now, only two types would exist : "delegated" and "personal", with 
> related information : 
> for a deletaged mailbox
> {code:java}
> "namespace": {
> "type": "delegated",
> "owner": "btell...@linagora.com"
> }
> {code}
> for the mailbox owner
> {code:java}
> "namespace": {
> "type": "personal"
> }
> {code}
> You will write integration tests showing this property on personal/delegated 
> mailboxes.
> This property is read only. Any attempt to update it should be rejected.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Updated] (JAMES-2173) Introduce a ``Mailbox.namespace`` property

2017-10-04 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-2173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen updated JAMES-2173:

Description: 
Mailboxes should give information about their type and owner.

For now, only two types would exist : "delegated" and "personal", with related 
information : 

for a deletaged mailbox


{code:java}
"namespace": {
"type": "delegated",
"owner": "btell...@linagora.com"
}

{code}
for the mailbox owner


{code:java}
"namespace": {
"type": "personal"
}
{code}

You will write integration tests showing this property on personal/delegated 
mailboxes.

This property is read only. Any attempt to update it should be rejected.

  was:
Mailboxes should give information about their type and owner.

For now, only two types would exist : "delegated" and "personal", with related 
information : 

for a deletaged mailbox

>"namespace": {
>"type": "delegated",
>"owner": "btell...@linagora.com"
>}
for the mailbox owner

"namespace": {
"type": "personal"
}
You will write integration tests showing this property on personal/delegated 
mailboxes.

This property is read only. Any attempt to update it should be rejected.


> Introduce a ``Mailbox.namespace`` property
> --
>
> Key: JAMES-2173
> URL: https://issues.apache.org/jira/browse/JAMES-2173
> Project: James Server
>  Issue Type: Improvement
>Reporter: Quynh Nguyen
>
> Mailboxes should give information about their type and owner.
> For now, only two types would exist : "delegated" and "personal", with 
> related information : 
> for a deletaged mailbox
> {code:java}
> "namespace": {
> "type": "delegated",
> "owner": "btell...@linagora.com"
> }
> {code}
> for the mailbox owner
> {code:java}
> "namespace": {
> "type": "personal"
> }
> {code}
> You will write integration tests showing this property on personal/delegated 
> mailboxes.
> This property is read only. Any attempt to update it should be rejected.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2173) Introduce a ``Mailbox.namespace`` property

2017-10-04 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2173:
---

 Summary: Introduce a ``Mailbox.namespace`` property
 Key: JAMES-2173
 URL: https://issues.apache.org/jira/browse/JAMES-2173
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen


Mailboxes should give information about their type and owner.

For now, only two types would exist : "delegated" and "personal", with related 
information : 

for a deletaged mailbox

"namespace": {
"type": "delegated",
"owner": "btell...@linagora.com"
}
for the mailbox owner

"namespace": {
"type": "personal"
}
You will write integration tests showing this property on personal/delegated 
mailboxes.

This property is read only. Any attempt to update it should be rejected.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Updated] (JAMES-2173) Introduce a ``Mailbox.namespace`` property

2017-10-04 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-2173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen updated JAMES-2173:

Description: 
Mailboxes should give information about their type and owner.

For now, only two types would exist : "delegated" and "personal", with related 
information : 

for a deletaged mailbox

>"namespace": {
>"type": "delegated",
>"owner": "btell...@linagora.com"
>}
for the mailbox owner

"namespace": {
"type": "personal"
}
You will write integration tests showing this property on personal/delegated 
mailboxes.

This property is read only. Any attempt to update it should be rejected.

  was:
Mailboxes should give information about their type and owner.

For now, only two types would exist : "delegated" and "personal", with related 
information : 

for a deletaged mailbox

"namespace": {
"type": "delegated",
"owner": "btell...@linagora.com"
}
for the mailbox owner

"namespace": {
"type": "personal"
}
You will write integration tests showing this property on personal/delegated 
mailboxes.

This property is read only. Any attempt to update it should be rejected.


> Introduce a ``Mailbox.namespace`` property
> --
>
> Key: JAMES-2173
> URL: https://issues.apache.org/jira/browse/JAMES-2173
> Project: James Server
>  Issue Type: Improvement
>Reporter: Quynh Nguyen
>
> Mailboxes should give information about their type and owner.
> For now, only two types would exist : "delegated" and "personal", with 
> related information : 
> for a deletaged mailbox
> >"namespace": {
> >"type": "delegated",
> >"owner": "btell...@linagora.com"
> >}
> for the mailbox owner
> "namespace": {
> "type": "personal"
> }
> You will write integration tests showing this property on personal/delegated 
> mailboxes.
> This property is read only. Any attempt to update it should be rejected.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2145) Ensure security of the download attachment endpoint

2017-09-18 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2145:
---

 Summary: Ensure security of the download attachment endpoint
 Key: JAMES-2145
 URL: https://issues.apache.org/jira/browse/JAMES-2145
 Project: James Server
  Issue Type: Task
Reporter: Quynh Nguyen


We introduced the attachmentId -> messageIds relation populated with existing 
data.

We can now implement attachment download access checking.

Here are the steps:

- Retrieve the messageId associated with the given attachmentId through the 
MessageIdManager.
- Retrieve the MailboxMessages (FetchType Metatdata) through MessageIdManager. 
If not empty then we have a user message referencing the attachment and thus 
can serve it. Otherwise we pretend the attachment don't exist.
- If allowed, serve the attachment.

The security should be enforced at the AttachmentManager layer.
Acceptance criteria : Integration tests on JMAP: check downloading someone else 
attachment returns not found.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Closed] (JAMES-2135) text/calendar bodies should not be displayed in textBody

2017-09-11 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen closed JAMES-2135.
---
Resolution: Fixed

I've done and merge to master

> text/calendar bodies should not be displayed in textBody
> 
>
> Key: JAMES-2135
> URL: https://issues.apache.org/jira/browse/JAMES-2135
> Project: James Server
>  Issue Type: Improvement
>Reporter: Quynh Nguyen
>
> It should rather be considered as an attachment.
> This is the behaviour under Roundcube and TB, we should comply with it.
> But in case of JMAP, the user should view the textBody which contains 
> calendar's detail,
> So we expect this ticket:
> - Should convert all textBody to the attachment so that the user should see 
> attachment instead of.
> - Should just process when "text/calendar" type and will convert to 
> "multipart/mixed" with the bodyPart contains all content of text/calendar
> - Should move all "Content-*" header from main message to the bodyPart



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2139) [Groups] Integration tests for RRT Alias CRUD

2017-09-06 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2139:
---

 Summary: [Groups] Integration tests for RRT Alias CRUD
 Key: JAMES-2139
 URL: https://issues.apache.org/jira/browse/JAMES-2139
 Project: James Server
  Issue Type: Task
Reporter: Quynh Nguyen


This tasks consists writing integration tests using the CRUD for Alias RRT.

For example we must check that after adding some RRT via this CRUS, one mail 
can be sent to an alias and delivered to several users, including users outside 
of the domain.

Write an integration test implying webadmin defined redirections and mailet.

Example test to write here:


1. Define your redirections
2. Send a mail
3. Check rewriting logic with IMAP



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Updated] (JAMES-2135) text/calendar bodies should not be displayed in textBody

2017-09-06 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen updated JAMES-2135:

Description: 
It should rather be considered as an attachment.

This is the behaviour under Roundcube and TB, we should comply with it.

But in case of JMAP, the user should view the textBody which contains 
calendar's detail,

So we expect this ticket:
- Should convert all textBody to the attachment so that the user should see 
attachment instead of.
- Should just process when "text/calendar" type and will convert to 
"multipart/mixed" with the bodyPart contains all content of text/calendar
- Should move all "Content-*" header from main message to the bodyPart


  was:
It should rather be considered as an attachment.

This is the behaviour under Roundcube and TB, we should comply with it.


> text/calendar bodies should not be displayed in textBody
> 
>
> Key: JAMES-2135
> URL: https://issues.apache.org/jira/browse/JAMES-2135
> Project: James Server
>  Issue Type: Improvement
>Reporter: Quynh Nguyen
>
> It should rather be considered as an attachment.
> This is the behaviour under Roundcube and TB, we should comply with it.
> But in case of JMAP, the user should view the textBody which contains 
> calendar's detail,
> So we expect this ticket:
> - Should convert all textBody to the attachment so that the user should see 
> attachment instead of.
> - Should just process when "text/calendar" type and will convert to 
> "multipart/mixed" with the bodyPart contains all content of text/calendar
> - Should move all "Content-*" header from main message to the bodyPart



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2135) text/calendar bodies should not be displayed in textBody

2017-09-01 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2135:
---

 Summary: text/calendar bodies should not be displayed in textBody
 Key: JAMES-2135
 URL: https://issues.apache.org/jira/browse/JAMES-2135
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen


It should rather be considered as an attachment.

This is the behaviour under Roundcube and TB, we should comply with it.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Updated] (JAMES-2127) Run inspection profile "Guava's functions can replace by java"

2017-08-22 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-2127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen updated JAMES-2127:

Description: 
James now upgrade to java 8 version so some Guava functions should be 
deprecated and can be replaced by lamda.
This ticket should take care:
- Optional
- Supplier
- Collection

> Run inspection profile "Guava's functions can replace by java"
> --
>
> Key: JAMES-2127
> URL: https://issues.apache.org/jira/browse/JAMES-2127
> Project: James Server
>  Issue Type: Improvement
>Reporter: Quynh Nguyen
>
> James now upgrade to java 8 version so some Guava functions should be 
> deprecated and can be replaced by lamda.
> This ticket should take care:
> - Optional
> - Supplier
> - Collection



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2127) Run inspection profile "Guava's functions can replace by java"

2017-08-22 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2127:
---

 Summary: Run inspection profile "Guava's functions can replace by 
java"
 Key: JAMES-2127
 URL: https://issues.apache.org/jira/browse/JAMES-2127
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen






--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2110) Support JMAP keywords

2017-08-04 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2110:
---

 Summary: Support JMAP keywords
 Key: JAMES-2110
 URL: https://issues.apache.org/jira/browse/JAMES-2110
 Project: James Server
  Issue Type: New Feature
Reporter: Quynh Nguyen


JAMES current now supports is* for flag
Based on JMAP spec, support keyword for flag for getMessage and setMessage



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Closed] (MAILBOX-302) Support JMAP keywords

2017-08-04 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAILBOX-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen closed MAILBOX-302.

Resolution: Invalid

Wrong project

> Support JMAP keywords
> -
>
> Key: MAILBOX-302
> URL: https://issues.apache.org/jira/browse/MAILBOX-302
> Project: James Mailbox
>  Issue Type: New Feature
>Reporter: Quynh Nguyen
>
> JAMES current now supports is* for flag
> Based on JMAP spec, support keyword for flag for getMessage and setMessage



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (MAILBOX-302) Support JMAP keywords

2017-08-04 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created MAILBOX-302:


 Summary: Support JMAP keywords
 Key: MAILBOX-302
 URL: https://issues.apache.org/jira/browse/MAILBOX-302
 Project: James Mailbox
  Issue Type: New Feature
Reporter: Quynh Nguyen


JAMES current now supports is* for flag
Based on JMAP spec, support keyword for flag for getMessage and setMessage



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2106) JMAP sort

2017-07-31 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2106:
---

 Summary: JMAP sort
 Key: JAMES-2106
 URL: https://issues.apache.org/jira/browse/JAMES-2106
 Project: James Server
  Issue Type: Improvement
  Components: JMAP
Reporter: Quynh Nguyen
Assignee: Antoine Duprat


Currently, only 2 sorts are supported: id, date

We would like to support more search options: size, from, to, subject

You will write integration tests showing that messages get the right order.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2099) Add James REST API to expose the swagger API

2017-07-24 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2099:
---

 Summary: Add James REST API to expose the swagger API
 Key: JAMES-2099
 URL: https://issues.apache.org/jira/browse/JAMES-2099
 Project: James Server
  Issue Type: New Feature
Reporter: Quynh Nguyen


We have a lot of REST full service which expose to end user but we did not have 
any guideline explain how to use it.

Swagger is there for that purpose which expose API.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2094) Optimise COPY and MOVE function

2017-07-06 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2094:
---

 Summary: Optimise COPY and MOVE function
 Key: JAMES-2094
 URL: https://issues.apache.org/jira/browse/JAMES-2094
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen


Moving message from mailbox to another mailbox should not need to save message 
again so this ticket takes chance to optimise MOVE function



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2082) Split and Stream blobs from message

2017-07-02 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2082:
---

 Summary: Split and Stream blobs from message
 Key: JAMES-2082
 URL: https://issues.apache.org/jira/browse/JAMES-2082
 Project: James Server
  Issue Type: Task
Reporter: Quynh Nguyen


We need to optimise our Message storage.

Currently, reading messages even with FetchType.Metadata is very inefficient, 
as Blob is stored with the data. This makes IMAP requests like *UID FETCH 1:\* 
UID* very inefficient and actually overload the cluster.

This task should write a new CassandraMessageDaoV2 that stores streamable blobs 
in a separate table.

Introduce you DAO on the top of:
 - A new table for messages
 - A new table for blobs
 - A new table for blobParts

Make CassandraMessage\*Mapper:
 - Write to CassandraMessageDaoV2
 - READ from CassandraMessageDaoV2 and if not found, READ from 
CassandraMessageDaoV1

When reading from CassandraMessageDaoV1, you should take care to to *on the 
fly* migration:
 - Read from CassandraMessageDaoV1
 - Write in CassandraMessageDaoV2
 - (Delete for space concerns) from CassandraMessageDaoV1



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2058) Add new page on the website for Spring JPA configuration

2017-06-15 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2058:
---

 Summary: Add new page on the website for Spring JPA configuration
 Key: JAMES-2058
 URL: https://issues.apache.org/jira/browse/JAMES-2058
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen


As the James use Spring JPA and it use DERBY as the default database.
In case of using another sequence database with Spring JPA, it needs somewhere 
to guide how to configure it



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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



[jira] [Created] (JAMES-2050) Improve IMAP processor configuration

2017-06-08 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2050:
---

 Summary: Improve IMAP processor configuration
 Key: JAMES-2050
 URL: https://issues.apache.org/jira/browse/JAMES-2050
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen


In some cases we would like to activate and deactivate a capability. On current 
code, it's no easy to do it.
For detail how to do it and technical detail we have:
  - Processor configuration is hardcoded in Spring and Guice
  - We want it to be read instead from XML file
  - This means we should:
 + Uncouple IMAP processors configuration from IMAP processor construction 
(as XML file for the specific IMAP server is not available). This can be done 
by adding a **configure** method to each IMAP processor.
 + This way, the processor chain can be configured for each IMAP servers
 + We need to ensure IMAP processor is not a singleton: its configuration 
might differ across servers
 + The configuration of the processor chain should then be done by 
IMAPServer
(and remove hard-coded configuration settings from Spring and Guice



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (JAMES-2048) Message is saved success but it did not be retrieved right after that

2017-06-06 Thread Quynh Nguyen (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-2048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16038272#comment-16038272
 ] 

Quynh Nguyen commented on JAMES-2048:
-

This issue should happen when we have message with attachment which have empty 
cid (Content-ID: or Content-ID: <   >)

> Message is saved success but it did not be retrieved right after that
> -
>
> Key: JAMES-2048
> URL: https://issues.apache.org/jira/browse/JAMES-2048
> Project: James Server
>  Issue Type: Bug
>Reporter: Quynh Nguyen
>
> In the log we have:
> {code:java}
> Error while processing listener 
> org.apache.james.mailbox.elasticsearch.events.ElasticSearchListeningMessageSearchIndex
>  for org.apache.james.mailbox.store.event.EventFactory.AddedImpl
> Caused by: java.lang.IllegalArgumentException: 'cidAsString' is mandatory
> at org.apache.james.mailbox.model.Cid.from(Cid.java:30)
>   at java.lang.Thread.run(Thread.java:745) Caused by: 
> java.lang.IllegalArgumentException: 'cidAsString' is mandatory 
> at 
> com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) 
> at org.apache.james.mailbox.model.Cid.from(Cid.java:30) at 
> java.util.Optional.map(Optional.java:215) 
> at 
> org.apache.james.mailbox.cassandra.mail.CassandraMessageDAO.messageAttachmentByIdFrom(CassandraMessageDAO.java:273)
> at 
> java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) 
> at 
> java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
> at 
> java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) 
> at 
> java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) 
> at 
> java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) 
> at 
> java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
>at 
> java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) 
>at 
> org.apache.james.mailbox.cassandra.mail.CassandraMessageMapper.lambda$retrieveMessages$4(CassandraMessageMapper.java:181)
>  
> {code}
> We should :
>  - enhance Log message with mailbox name, mailbox ID, user name and UID + 
> messageId (separate PR)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Updated] (JAMES-2048) Message is saved success but it did not be retrieved right after that

2017-06-06 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-2048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen updated JAMES-2048:

Description: 
In the log we have:
{code:java}
Error while processing listener 
org.apache.james.mailbox.elasticsearch.events.ElasticSearchListeningMessageSearchIndex
 for org.apache.james.mailbox.store.event.EventFactory.AddedImpl

Caused by: java.lang.IllegalArgumentException: 'cidAsString' is mandatory

at org.apache.james.mailbox.model.Cid.from(Cid.java:30)

at java.lang.Thread.run(Thread.java:745) Caused by: 
java.lang.IllegalArgumentException: 'cidAsString' is mandatory 
at 
com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) 
at org.apache.james.mailbox.model.Cid.from(Cid.java:30) at 
java.util.Optional.map(Optional.java:215) 
at 
org.apache.james.mailbox.cassandra.mail.CassandraMessageDAO.messageAttachmentByIdFrom(CassandraMessageDAO.java:273)
at 
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) 
at 
java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at 
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) 
at 
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) 
at 
java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) 
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
   at 
java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) 
   at 
org.apache.james.mailbox.cassandra.mail.CassandraMessageMapper.lambda$retrieveMessages$4(CassandraMessageMapper.java:181)
 
{code}

We should :
 - enhance Log message with mailbox name, mailbox ID, user name and UID + 
messageId (separate PR)


  was:
In the log we have:
{code:java}
Error while processing listener 
org.apache.james.mailbox.elasticsearch.events.ElasticSearchListeningMessageSearchIndex
 for org.apache.james.mailbox.store.event.EventFactory.AddedImpl

Caused by: java.lang.IllegalArgumentException: 'cidAsString' is mandatory

at org.apache.james.mailbox.model.Cid.from(Cid.java:30)

at java.lang.Thread.run(Thread.java:745) Caused by: 
java.lang.IllegalArgumentException: 'cidAsString' is mandatory 
at 
com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) 
at org.apache.james.mailbox.model.Cid.from(Cid.java:30) at 
java.util.Optional.map(Optional.java:215) 
at 
org.apache.james.mailbox.cassandra.mail.CassandraMessageDAO.messageAttachmentByIdFrom(CassandraMessageDAO.java:273)
at 
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) 
at 
java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at 
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) 
at 
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) 
at 
java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) 
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
   at 
java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) 
   at 
org.apache.james.mailbox.cassandra.mail.CassandraMessageMapper.lambda$retrieveMessages$4(CassandraMessageMapper.java:181)
 
{code}

Link to the log: 
https://openpaas.linagora.com/viewlogs/app/kibana#/doc/logs-*/logs-2017-05-18/tester/?id=AVwa9PGjzFPejjEzjY_0


I would like first to have MailboxID and UID of failed message. (And user in 
mailboxSession ?)

Then here is the stack trace (attached as a screen shot).

We can see that eventhough an Attachment have been correctly written, we are 
failing retrieving it.

Needless to say, we should not fail indexing on retrieving attachments...

Needless to say, we should not fail reading an attachment if we succeeded 
writing it.

We should :
 - enhance Log message with mailbox name, mailbox ID, user name and UID + 
messageId (separate PR)
 - try to reproduce valid write + failed read with unit tests on 
AttachmentMapper.
 - fix it!


> Message is saved success but it did not be retrieved right after that
> -
>
> Key: JAMES-2048
> URL: https://issues.apache.org/jira/browse/JAMES-2048
> Project: James Server
>  Issue Type: Bug
>Reporter: Quynh Nguyen
>
> In the log we have:
> {code:java}
> Error while processing listener 
> org.apache.james.mailbox.elasticsearch.events.ElasticSearchListeningMessageSearchIndex
>  for org.apache.james.mailbox.store.event.EventFactory.AddedImpl
> Caused by: java.lang.IllegalArgumentException: 'cidAsString' is mandatory
> at org.apache.james.mailbox.model.Cid.from(Cid.java:30)
>   at java.lang.Thread.run(Thread.java:745) Caused by: 
> 

[jira] [Created] (JAMES-2048) Message is saved success but it did not be retrieved right after that

2017-06-06 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2048:
---

 Summary: Message is saved success but it did not be retrieved 
right after that
 Key: JAMES-2048
 URL: https://issues.apache.org/jira/browse/JAMES-2048
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen


In the log we have:
{code:java}
Error while processing listener 
org.apache.james.mailbox.elasticsearch.events.ElasticSearchListeningMessageSearchIndex
 for org.apache.james.mailbox.store.event.EventFactory.AddedImpl

Caused by: java.lang.IllegalArgumentException: 'cidAsString' is mandatory

at org.apache.james.mailbox.model.Cid.from(Cid.java:30)

at java.lang.Thread.run(Thread.java:745) Caused by: 
java.lang.IllegalArgumentException: 'cidAsString' is mandatory 
at 
com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) 
at org.apache.james.mailbox.model.Cid.from(Cid.java:30) at 
java.util.Optional.map(Optional.java:215) 
at 
org.apache.james.mailbox.cassandra.mail.CassandraMessageDAO.messageAttachmentByIdFrom(CassandraMessageDAO.java:273)
at 
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) 
at 
java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at 
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) 
at 
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) 
at 
java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) 
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
   at 
java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) 
   at 
org.apache.james.mailbox.cassandra.mail.CassandraMessageMapper.lambda$retrieveMessages$4(CassandraMessageMapper.java:181)
 
{code}

Link to the log: 
https://openpaas.linagora.com/viewlogs/app/kibana#/doc/logs-*/logs-2017-05-18/tester/?id=AVwa9PGjzFPejjEzjY_0


I would like first to have MailboxID and UID of failed message. (And user in 
mailboxSession ?)

Then here is the stack trace (attached as a screen shot).

We can see that eventhough an Attachment have been correctly written, we are 
failing retrieving it.

Needless to say, we should not fail indexing on retrieving attachments...

Needless to say, we should not fail reading an attachment if we succeeded 
writing it.

We should :
 - enhance Log message with mailbox name, mailbox ID, user name and UID + 
messageId (separate PR)
 - try to reproduce valid write + failed read with unit tests on 
AttachmentMapper.
 - fix it!



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Updated] (JAMES-2039) Add integration testing for mail's preview with ISO-8859-1 encoding

2017-06-01 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen updated JAMES-2039:

Summary: Add integration testing for mail's preview with ISO-8859-1 
encoding  (was: The preview of mail contains unprintable characters with 
ISO-8859-1 encoding)

> Add integration testing for mail's preview with ISO-8859-1 encoding
> ---
>
> Key: JAMES-2039
> URL: https://issues.apache.org/jira/browse/JAMES-2039
> Project: James Server
>  Issue Type: Bug
>Reporter: Quynh Nguyen
> Attachments: iso8859_1charset.eml
>
>
> When we have the email with mime part like this : 
> {code:java}
> Content-Type: text/plain; charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> {code}
> Then preview contains some wrong characters.
> View the attached file as the sample



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Updated] (JAMES-2039) The preview of mail contains unprintable characters with ISO-8859-1 encoding

2017-06-01 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen updated JAMES-2039:

Summary: The preview of mail contains unprintable characters with 
ISO-8859-1 encoding  (was: The preview of mail has bad characters with 
ISO-8859-1 encoding)

> The preview of mail contains unprintable characters with ISO-8859-1 encoding
> 
>
> Key: JAMES-2039
> URL: https://issues.apache.org/jira/browse/JAMES-2039
> Project: James Server
>  Issue Type: Bug
>Reporter: Quynh Nguyen
> Attachments: iso8859_1charset.eml
>
>
> When we have the email with mime part like this : 
> {code:java}
> Content-Type: text/plain; charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> {code}
> Then preview contains some wrong characters.
> View the attached file as the sample



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Updated] (JAMES-2039) The preview of mail has bad characters with ISO-8859-1 encoding

2017-06-01 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen updated JAMES-2039:

Summary: The preview of mail has bad characters with ISO-8859-1 encoding  
(was: The preview of mail has a bad characters with encoding issue)

> The preview of mail has bad characters with ISO-8859-1 encoding
> ---
>
> Key: JAMES-2039
> URL: https://issues.apache.org/jira/browse/JAMES-2039
> Project: James Server
>  Issue Type: Bug
>Reporter: Quynh Nguyen
> Attachments: iso8859_1charset.eml
>
>
> When we have the email with mime part like this : 
> {code:java}
> Content-Type: text/plain; charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> {code}
> Then preview contains some wrong characters.
> View the attached file as the sample



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Updated] (JAMES-2039) The preview of mail has a bad characters with encoding issue

2017-05-31 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen updated JAMES-2039:

Attachment: iso8859_1charset.eml

> The preview of mail has a bad characters with encoding issue
> 
>
> Key: JAMES-2039
> URL: https://issues.apache.org/jira/browse/JAMES-2039
> Project: James Server
>  Issue Type: Bug
>Reporter: Quynh Nguyen
> Attachments: iso8859_1charset.eml
>
>
> When we have the email with mime part like this : 
> {code:java}
> Content-Type: text/plain; charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
> {code}
> Then preview contains some wrong characters.
> View the attached file as the sample



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-2039) The preview of mail has a bad characters with encoding issue

2017-05-31 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2039:
---

 Summary: The preview of mail has a bad characters with encoding 
issue
 Key: JAMES-2039
 URL: https://issues.apache.org/jira/browse/JAMES-2039
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen


When we have the email with mime part like this : 


{code:java}
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
{code}

Then preview contains some wrong characters.
View the attached file as the sample



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (JAMES-2033) RemoteDelivery raising error on JMAP sent emails

2017-05-22 Thread Quynh Nguyen (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-2033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16020607#comment-16020607
 ] 

Quynh Nguyen commented on JAMES-2033:
-

It's done by: https://github.com/linagora/james-project/pull/805

> RemoteDelivery raising error on JMAP sent emails
> 
>
> Key: JAMES-2033
> URL: https://issues.apache.org/jira/browse/JAMES-2033
> Project: James Server
>  Issue Type: Bug
>Reporter: Quynh Nguyen
>
> What happen is very simple:
> User sends a mail
> mail is getting processed and is being processed by REmoteDelivery
> RemoteDelivery copies the email and enqueue it it a dedicated MailQueue
> JamesMailSpooler execute the dequeue decorator and moves the mail out of 
> outbox
> RemoteDelivery threads dequeue the email, send it
> As the mail is dequeued a second time the DequeueDecorator is executed a 
> second time. But the mail no more is in the Outbox. It then raise this error!



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Closed] (JAMES-2033) RemoteDelivery raising error on JMAP sent emails

2017-05-22 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-2033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen closed JAMES-2033.
---

> RemoteDelivery raising error on JMAP sent emails
> 
>
> Key: JAMES-2033
> URL: https://issues.apache.org/jira/browse/JAMES-2033
> Project: James Server
>  Issue Type: Bug
>Reporter: Quynh Nguyen
>
> What happen is very simple:
> User sends a mail
> mail is getting processed and is being processed by REmoteDelivery
> RemoteDelivery copies the email and enqueue it it a dedicated MailQueue
> JamesMailSpooler execute the dequeue decorator and moves the mail out of 
> outbox
> RemoteDelivery threads dequeue the email, send it
> As the mail is dequeued a second time the DequeueDecorator is executed a 
> second time. But the mail no more is in the Outbox. It then raise this error!



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Resolved] (JAMES-2033) RemoteDelivery raising error on JMAP sent emails

2017-05-22 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-2033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen resolved JAMES-2033.
-
Resolution: Done

> RemoteDelivery raising error on JMAP sent emails
> 
>
> Key: JAMES-2033
> URL: https://issues.apache.org/jira/browse/JAMES-2033
> Project: James Server
>  Issue Type: Bug
>Reporter: Quynh Nguyen
>
> What happen is very simple:
> User sends a mail
> mail is getting processed and is being processed by REmoteDelivery
> RemoteDelivery copies the email and enqueue it it a dedicated MailQueue
> JamesMailSpooler execute the dequeue decorator and moves the mail out of 
> outbox
> RemoteDelivery threads dequeue the email, send it
> As the mail is dequeued a second time the DequeueDecorator is executed a 
> second time. But the mail no more is in the Outbox. It then raise this error!



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-2033) RemoteDelivery raising error on JMAP sent emails

2017-05-21 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2033:
---

 Summary: RemoteDelivery raising error on JMAP sent emails
 Key: JAMES-2033
 URL: https://issues.apache.org/jira/browse/JAMES-2033
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen


What happen is very simple:

User sends a mail
mail is getting processed and is being processed by REmoteDelivery
RemoteDelivery copies the email and enqueue it it a dedicated MailQueue
JamesMailSpooler execute the dequeue decorator and moves the mail out of 
outbox
RemoteDelivery threads dequeue the email, send it
As the mail is dequeued a second time the DequeueDecorator is executed a 
second time. But the mail no more is in the Outbox. It then raise this error!




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Reopened] (JAMES-1999) JAMES do not delayed startup on not yet started ElasticSearch

2017-05-10 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen reopened JAMES-1999:
-

The ci build is unstable when multiple building in parallel.

> JAMES do not delayed startup on not yet started ElasticSearch
> -
>
> Key: JAMES-1999
> URL: https://issues.apache.org/jira/browse/JAMES-1999
> Project: James Server
>  Issue Type: Bug
>Reporter: Quynh Nguyen
> Fix For: 3.0.0
>
>
> We had implemented the delayed start for James. When launching James + 
> Cassandra +ES, James is supposed to wait sometimes for Cassandra and 
> ElasticSearch when they are not yet started. This allow rebooting
> components in any order. This especially useful in docker-compose, or
> when your infrastructure do handle service dependencies.
> This feature appeared to be buggy.
> We will:
>  - Implement integration tests demonstrating this behavior
>  - Extract the underlying retry service and unit test it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (JAMES-2019) JMAP Preview is not display because of empty

2017-05-08 Thread Quynh Nguyen (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16000499#comment-16000499
 ] 

Quynh Nguyen commented on JAMES-2019:
-

We used TextExtractor for two cases:
- One for textBody
- The other for preview

In this case we expect
- textBody should be replace empty html tag by "/n"
- preview should normalize string

It needs to consider when we do the ticket 
https://issues.apache.org/jira/browse/JAMES-2018 because the Jsoup will 
normalize string as default so textBody should be wrong in some cases

> JMAP Preview is not display because of empty
> 
>
> Key: JAMES-2019
> URL: https://issues.apache.org/jira/browse/JAMES-2019
> Project: James Server
>  Issue Type: Bug
>Reporter: Quynh Nguyen
>
> This one will be fixed automatically when we do this one 
> https://issues.apache.org/jira/browse/JAMES-2018
> - With the huge HTML, TikaTextExtrator does not remove the white space then 
> when we truncate preview string, it returns MAX_LENGTH_TRUNCATION of space
> - Another issue: Tika does not include  tag in extracted content but 
> Jsoup does --> will remote  tag with JsoupTextExtractor.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-2019) JMAP Preview is not display because of empty

2017-05-08 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2019:
---

 Summary: JMAP Preview is not display because of empty
 Key: JAMES-2019
 URL: https://issues.apache.org/jira/browse/JAMES-2019
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen


This one will be fixed automatically when we do this one 
https://issues.apache.org/jira/browse/JAMES-2018
- With the huge HTML, TikaTextExtrator does not remove the white space then 
when we truncate preview string, it returns MAX_LENGTH_TRUNCATION of space
- Another issue: Tika does not include  tag in extracted content but 
Jsoup does --> will remote  tag with JsoupTextExtractor.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-2017) Preview message should not contain ellipsis

2017-05-05 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2017:
---

 Summary: Preview message should not contain ellipsis
 Key: JAMES-2017
 URL: https://issues.apache.org/jira/browse/JAMES-2017
 Project: James Server
  Issue Type: Wish
Reporter: Quynh Nguyen


Based on client, it said "Ellipsis is a display thing, the client is 
responsible to put it following display rules"
So it needs to remove "..." out of preview message in case of message content 
length is over limitation (for now, if it's more then 256 characters)




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (JAMES-1823) quotaUpdater is invoked more than one time for a message addition or deletion

2017-05-03 Thread Quynh Nguyen (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15996065#comment-15996065
 ] 

Quynh Nguyen commented on JAMES-1823:
-

It's fixed and merged by: https://github.com/linagora/james-project/pull/772
Then you can close this one

> quotaUpdater is invoked more than one time for a message addition or deletion
> -
>
> Key: JAMES-1823
> URL: https://issues.apache.org/jira/browse/JAMES-1823
> Project: James Server
>  Issue Type: Bug
>  Components: MailStore & MailRepository
>Affects Versions: master
>Reporter: Paul Lee
> Fix For: master
>
> Attachments: DefaultDelegatingMailboxListener.java
>
>
> The following code snippet in 'init' method in 'StoreMailboxManager.java' is 
> executed multiple times such that the same quotaUpdater is registered as a 
> global listener more than once.
> if (quotaUpdater != null && quotaUpdater instanceof MailboxListener) {
> this.addGlobalListener((MailboxListener) quotaUpdater, null);
> }
> The above code is invoked multiple times by the below configuration in 
> 'spring-mailbox.xml'.
> 
> 
> The quota increase or decrease is currently being executed twice for each 
> message addition or deletion in our tests because the same quota updater is 
> registered twice by the above config. For example, if a message of 1MB is 
> appended to a mailbox, 'getCurrentStorage' method in 
> 'InMemoryCurrentQuotaManager.java' returns a size which is 2MBs larger than 
> before.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-2014) Refactor NetMatcher

2017-05-03 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-2014:
---

 Summary: Refactor NetMatcher
 Key: JAMES-2014
 URL: https://issues.apache.org/jira/browse/JAMES-2014
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen


- Enhance code coverage to 100% for NetMatcher.java and its related class also.
- Make the code can be easier for reading.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (JAMES-1912) AmqpForwardAttachmentTest seems to be failing when no docker

2017-04-23 Thread Quynh Nguyen (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15980666#comment-15980666
 ] 

Quynh Nguyen commented on JAMES-1912:
-

Here is the PR: https://github.com/linagora/james-project/pull/768

> AmqpForwardAttachmentTest seems to be failing when no docker
> 
>
> Key: JAMES-1912
> URL: https://issues.apache.org/jira/browse/JAMES-1912
> Project: James Server
>  Issue Type: Bug
>Reporter: Tellier Benoit
>
> Reported by Mathias Rodenberg.
> Tests in error:
>   AmqpForwardAttachmentTest.:87 » IllegalState Could not find a valid 
> Dock... 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (JAMES-1912) AmqpForwardAttachmentTest seems to be failing when no docker

2017-04-20 Thread Quynh Nguyen (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15976440#comment-15976440
 ] 

Quynh Nguyen commented on JAMES-1912:
-

- From code, can reproduce by stop docker service then run the test
- From docker testing: read the README file about "Some tests needs a 
DOCKER_HOST environment variable in order to be played" --> can produce by 
point DOCKER_HOST to the wrong host.

> AmqpForwardAttachmentTest seems to be failing when no docker
> 
>
> Key: JAMES-1912
> URL: https://issues.apache.org/jira/browse/JAMES-1912
> Project: James Server
>  Issue Type: Bug
>Reporter: Tellier Benoit
>
> Reported by Mathias Rodenberg.
> Tests in error:
>   AmqpForwardAttachmentTest.:87 » IllegalState Could not find a valid 
> Dock... 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (JAMES-1912) AmqpForwardAttachmentTest seems to be failing when no docker

2017-04-20 Thread Quynh Nguyen (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15976305#comment-15976305
 ] 

Quynh Nguyen commented on JAMES-1912:
-

ESReporterTest.:54 » IllegalState Could not find a valid Docker 
environm...

> AmqpForwardAttachmentTest seems to be failing when no docker
> 
>
> Key: JAMES-1912
> URL: https://issues.apache.org/jira/browse/JAMES-1912
> Project: James Server
>  Issue Type: Bug
>Reporter: Tellier Benoit
>
> Reported by Mathias Rodenberg.
> Tests in error:
>   AmqpForwardAttachmentTest.:87 » IllegalState Could not find a valid 
> Dock... 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (JAMES-1912) AmqpForwardAttachmentTest seems to be failing when no docker

2017-04-19 Thread Quynh Nguyen (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15974204#comment-15974204
 ] 

Quynh Nguyen commented on JAMES-1912:
-

Try to reproduce this bug by point to non existed docker but it had another 
error, keep try to reproduce this bug

> AmqpForwardAttachmentTest seems to be failing when no docker
> 
>
> Key: JAMES-1912
> URL: https://issues.apache.org/jira/browse/JAMES-1912
> Project: James Server
>  Issue Type: Bug
>Reporter: Tellier Benoit
>
> Reported by Mathias Rodenberg.
> Tests in error:
>   AmqpForwardAttachmentTest.:87 » IllegalState Could not find a valid 
> Dock... 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Updated] (JAMES-1999) JAMES do not delayed startup on not yet started ElasticSearch

2017-04-14 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen updated JAMES-1999:

Description: 
We had implemented the delayed start for James. When launching James + 
Cassandra +ES, James is supposed to wait sometimes for Cassandra and 
ElasticSearch when they are not yet started. This allow rebooting
components in any order. This especially useful in docker-compose, or
when your infrastructure do handle service dependencies.

This feature appeared to be buggy.

We will:
 - Implement integration tests demonstrating this behavior
 - Extract the underlying retry service and unit test it.
Summary: JAMES do not delayed startup on not yet started ElasticSearch  
(was: Elasticsearch does not retry to connect when error)

> JAMES do not delayed startup on not yet started ElasticSearch
> -
>
> Key: JAMES-1999
> URL: https://issues.apache.org/jira/browse/JAMES-1999
> Project: James Server
>  Issue Type: Bug
>Reporter: Quynh Nguyen
> Fix For: 3.0.0
>
>
> We had implemented the delayed start for James. When launching James + 
> Cassandra +ES, James is supposed to wait sometimes for Cassandra and 
> ElasticSearch when they are not yet started. This allow rebooting
> components in any order. This especially useful in docker-compose, or
> when your infrastructure do handle service dependencies.
> This feature appeared to be buggy.
> We will:
>  - Implement integration tests demonstrating this behavior
>  - Extract the underlying retry service and unit test it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-1999) Elasticsearch does not retry to connect when error

2017-04-13 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1999:
---

 Summary: Elasticsearch does not retry to connect when error
 Key: JAMES-1999
 URL: https://issues.apache.org/jira/browse/JAMES-1999
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen
 Fix For: 3.0.0






--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-1994) Merge marketting website and current website

2017-04-11 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1994:
---

 Summary: Merge marketting website and current website
 Key: JAMES-1994
 URL: https://issues.apache.org/jira/browse/JAMES-1994
 Project: James Server
  Issue Type: Task
Reporter: Quynh Nguyen


Its source code should be in src/site

The docker should generate the complete website.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Reopened] (MAILBOX-290) Error handling for Attachment parser, not throw when unknown content-disposition

2017-03-22 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAILBOX-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen reopened MAILBOX-290:
--

In case of in-lined attachment but no cid then convert that to normal 
attachment 

> Error handling for Attachment parser, not throw when unknown 
> content-disposition
> 
>
> Key: MAILBOX-290
> URL: https://issues.apache.org/jira/browse/MAILBOX-290
> Project: James Mailbox
>  Issue Type: Bug
>  Components: store
>Affects Versions: master
>Reporter: Quynh Nguyen
> Fix For: master
>
>
> When retrieve attachment list which contain unknown content disposition then 
> the list should be ignore that error, write the log instead of throwing 
> exception.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-1970) Push security of multi-mailbox search to the back-end

2017-03-17 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1970:
---

 Summary: Push security of multi-mailbox search to the back-end
 Key: JAMES-1970
 URL: https://issues.apache.org/jira/browse/JAMES-1970
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen


MailboxManager should check rights on multi mailbox search (add tests about it).




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-1965) Compute textBody when htmlBody is available

2017-03-14 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1965:
---

 Summary: Compute textBody when htmlBody is available
 Key: JAMES-1965
 URL: https://issues.apache.org/jira/browse/JAMES-1965
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen
Priority: Critical


Some emails (for example JIRA's ones) have no textBody but have an htmlBody.
In this case the textBody should be computed to allow Inbox to have a proper 
reply with quote on mobile.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Closed] (JAMES-1858) JWS-Create James Image for get started part with JPA_Guice

2017-03-13 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen closed JAMES-1858.
---
Resolution: Done

> JWS-Create James Image for get started part with JPA_Guice
> --
>
> Key: JAMES-1858
> URL: https://issues.apache.org/jira/browse/JAMES-1858
> Project: James Server
>  Issue Type: Sub-task
>Reporter: Quynh Nguyen
> Fix For: 3.0.0
>
>
> This James image has a default configuration using JPA_Guice. And it also 
> includes a default domain named james.local and three default users: user01, 
> user02, user03. Note: this James server will respond to IMAP port 143 and 
> SMTP port 25.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-1964) Enhance JPA docker image logging

2017-03-13 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1964:
---

 Summary: Enhance JPA docker image logging
 Key: JAMES-1964
 URL: https://issues.apache.org/jira/browse/JAMES-1964
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen


To much bindings for SLF4J. No output in the logger.

We should be able to have logs on the docker image.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-1963) Expose new web admin endpoint for managing the DomainMapping

2017-03-12 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1963:
---

 Summary: Expose new web admin endpoint for managing the 
DomainMapping
 Key: JAMES-1963
 URL: https://issues.apache.org/jira/browse/JAMES-1963
 Project: James Server
  Issue Type: New Feature
Reporter: Quynh Nguyen






--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Updated] (MAILBOX-290) Error handling for Attachment parser, not throw when unknown content-disposition

2017-03-12 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAILBOX-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen updated MAILBOX-290:
-
Summary: Error handling for Attachment parser, not throw when unknown 
content-disposition  (was: Error handling for Attachment parser, not throw when 
unknown content-dispositio)

> Error handling for Attachment parser, not throw when unknown 
> content-disposition
> 
>
> Key: MAILBOX-290
> URL: https://issues.apache.org/jira/browse/MAILBOX-290
> Project: James Mailbox
>  Issue Type: Bug
>  Components: store
>Affects Versions: master
>Reporter: Quynh Nguyen
> Fix For: master
>
>
> When retrieve attachment list which contain unknown content disposition then 
> the list should be ignore that error, write the log instead of throwing 
> exception.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Updated] (MAILBOX-290) Error handling for Attachment parser, not throw when unknown content-dispositio

2017-03-12 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAILBOX-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen updated MAILBOX-290:
-
Description: When retrieve attachment list which contain unknown content 
disposition then the list should be ignore that error, write the log instead of 
throwing exception.  (was: 
```
java.lang.IllegalStateException: 'cid' is mandatory for inline attachments
at 
org.apache.james.mailbox.model.MessageAttachment$Builder.build(MessageAttachment.java:79)
at 
org.apache.james.mailbox.store.mail.model.impl.MessageParser.retrieveAttachment(MessageParser.java:106)
at 
org.apache.james.mailbox.store.mail.model.impl.MessageParser.listAttachments(MessageParser.java:84)
at 
org.apache.james.mailbox.store.mail.model.impl.MessageParser.retrieveAttachments(MessageParser.java:67)
at 
org.apache.james.mailbox.store.StoreMessageManager.extractAttachments(StoreMessageManager.java:438)
at 
org.apache.james.mailbox.store.StoreMessageManager.appendMessage(StoreMessageManager.java:394)
```

And exception is caught here :

```
try {
return messageParser.retrieveAttachments(contentIn);
} catch (Exception e) {
LOG.warn("Error while parsing mail's attachments: " + 
e.getMessage(), e);
return ImmutableList.of();
}
```

Extreme error handling : No attachment will be created for JMAP if one 
attachement is not well formatted

If an attachment is failing (IE inline without CID), and the message have an 
other valid attachment, then the MessageAttachmentParser should have one 
attachment.

Write JMAP integration test for this too
)

> Error handling for Attachment parser, not throw when unknown 
> content-dispositio
> ---
>
> Key: MAILBOX-290
> URL: https://issues.apache.org/jira/browse/MAILBOX-290
> Project: James Mailbox
>  Issue Type: Bug
>  Components: store
>Affects Versions: master
>Reporter: Quynh Nguyen
> Fix For: master
>
>
> When retrieve attachment list which contain unknown content disposition then 
> the list should be ignore that error, write the log instead of throwing 
> exception.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (MAILBOX-290) Error handling for Attachment parser, not throw when unknown content-dispositio

2017-03-12 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created MAILBOX-290:


 Summary: Error handling for Attachment parser, not throw when 
unknown content-dispositio
 Key: MAILBOX-290
 URL: https://issues.apache.org/jira/browse/MAILBOX-290
 Project: James Mailbox
  Issue Type: Bug
  Components: store
Affects Versions: master
Reporter: Quynh Nguyen
 Fix For: master



```
java.lang.IllegalStateException: 'cid' is mandatory for inline attachments
at 
org.apache.james.mailbox.model.MessageAttachment$Builder.build(MessageAttachment.java:79)
at 
org.apache.james.mailbox.store.mail.model.impl.MessageParser.retrieveAttachment(MessageParser.java:106)
at 
org.apache.james.mailbox.store.mail.model.impl.MessageParser.listAttachments(MessageParser.java:84)
at 
org.apache.james.mailbox.store.mail.model.impl.MessageParser.retrieveAttachments(MessageParser.java:67)
at 
org.apache.james.mailbox.store.StoreMessageManager.extractAttachments(StoreMessageManager.java:438)
at 
org.apache.james.mailbox.store.StoreMessageManager.appendMessage(StoreMessageManager.java:394)
```

And exception is caught here :

```
try {
return messageParser.retrieveAttachments(contentIn);
} catch (Exception e) {
LOG.warn("Error while parsing mail's attachments: " + 
e.getMessage(), e);
return ImmutableList.of();
}
```

Extreme error handling : No attachment will be created for JMAP if one 
attachement is not well formatted

If an attachment is failing (IE inline without CID), and the message have an 
other valid attachment, then the MessageAttachmentParser should have one 
attachment.

Write JMAP integration test for this too




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Closed] (JAMES-1949) setMailboxes: can't create system mailbox by JMAP

2017-02-24 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-1949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen closed JAMES-1949.
---
Resolution: Won't Fix

It will be done by MailboxAnnotation

> setMailboxes: can't create system mailbox by JMAP
> -
>
> Key: JAMES-1949
> URL: https://issues.apache.org/jira/browse/JAMES-1949
> Project: James Server
>  Issue Type: Improvement
>  Components: JMAP
>Reporter: Quynh Nguyen
>Assignee: Antoine Duprat
>
> We should not be able to modify a system mailbox with JMAP method 
> setMailboxes.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-1949) setMailboxes: can't create system mailbox by JMAP

2017-02-23 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1949:
---

 Summary: setMailboxes: can't create system mailbox by JMAP
 Key: JAMES-1949
 URL: https://issues.apache.org/jira/browse/JAMES-1949
 Project: James Server
  Issue Type: Improvement
  Components: JMAP
Reporter: Quynh Nguyen
Assignee: Antoine Duprat


We should not be able to modify a system mailbox with JMAP method setMailboxes.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-1947) Implement ApplicableFlags on the mailboxManager layer

2017-02-22 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1947:
---

 Summary: Implement ApplicableFlags on the mailboxManager layer
 Key: JAMES-1947
 URL: https://issues.apache.org/jira/browse/JAMES-1947
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen



Add a method to get ApplicableFlags on MessageManager.

Provide a default implementation that fetches all messages in the mailbox to 
compute them.

Then implement a shortcut with Cassandra. You will need one table : (MailboxId) 
<-> (SystemFlags (booleans), unerFlags (Set of String)) You will update tis 
table upon succeeded flags update and append.

But what are applicableFlags ? It's the union of the flags of the message 
stored in the mailbox.

You will of course add tests for :

Your DAO
On the MessageManager layer (append and setFlags should update applicable 
flags)
And on combination with MessageManager (setInMailboxes and setFlags should 
update applicable flags)





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-1935) Optimize SetMessagesCreationProcessor: do not search all mailboxes when look up mailbox by role

2017-02-09 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1935:
---

 Summary: Optimize SetMessagesCreationProcessor: do not search all 
mailboxes when look up mailbox by role
 Key: JAMES-1935
 URL: https://issues.apache.org/jira/browse/JAMES-1935
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen






--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Closed] (MAILBOX-286) Optimize SetMessagesCreationProcessor: do not search all mailboxes when look up mailbox by role

2017-02-09 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAILBOX-286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen closed MAILBOX-286.

Resolution: Invalid

It's created in wrong project

> Optimize SetMessagesCreationProcessor: do not search all mailboxes when look 
> up mailbox by role
> ---
>
> Key: MAILBOX-286
> URL: https://issues.apache.org/jira/browse/MAILBOX-286
> Project: James Mailbox
>  Issue Type: Improvement
>Reporter: Quynh Nguyen
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (MAILBOX-286) Optimize SetMessagesCreationProcessor: do not search all mailboxes when look up mailbox by role

2017-02-09 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created MAILBOX-286:


 Summary: Optimize SetMessagesCreationProcessor: do not search all 
mailboxes when look up mailbox by role
 Key: MAILBOX-286
 URL: https://issues.apache.org/jira/browse/MAILBOX-286
 Project: James Mailbox
  Issue Type: Improvement
Reporter: Quynh Nguyen






--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Created] (JAMES-1927) Override Cassandra Guice server with a LDAP user repository.

2017-02-07 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1927:
---

 Summary: Override Cassandra Guice server with a LDAP user 
repository.
 Key: JAMES-1927
 URL: https://issues.apache.org/jira/browse/JAMES-1927
 Project: James Server
  Issue Type: New Feature
Reporter: Quynh Nguyen






--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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



[jira] [Commented] (JAMES-1785) setMessages : moving a message

2017-01-18 Thread Quynh Nguyen (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15827670#comment-15827670
 ] 

Quynh Nguyen commented on JAMES-1785:
-

Move feature on JMAP

> setMessages : moving a message
> --
>
> Key: JAMES-1785
> URL: https://issues.apache.org/jira/browse/JAMES-1785
> Project: James Server
>  Issue Type: New Feature
>Reporter: Laura Royet
>
> setMessages : moving a message



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (JAMES-1871) Canceling JMAP uploads should not return an error

2017-01-11 Thread Quynh Nguyen (JIRA)

[ 
https://issues.apache.org/jira/browse/JAMES-1871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15817880#comment-15817880
 ] 

Quynh Nguyen commented on JAMES-1871:
-

This one is fixed and merged. Please close it

> Canceling JMAP uploads should not return an error
> -
>
> Key: JAMES-1871
> URL: https://issues.apache.org/jira/browse/JAMES-1871
> Project: James Server
>  Issue Type: Bug
>  Components: JMAP
>Reporter: Tellier Benoit
>
> When an upload of a file is started with OpenPaaS Unified Inbox, not 
> finished, then cancel before it's finished, the following error is raised
> ```
> Unable to find source-code formatter for language: title james logs. 
> Available languages are: actionscript, html, java, javascript, none, sql, 
> xhtml, xml
> esn_james | 14:15:46.952 [ERROR] o.a.j.j.UploadServlet - Error while 
> uploading content
> esn_james | org.eclipse.jetty.io.EofException: Early EOF
> esn_james | at 
> org.eclipse.jetty.server.HttpInput$3.noContent(HttpInput.java:791)
> esn_james | at org.eclipse.jetty.server.HttpInput.read(HttpInput.java:157)
> esn_james | at java.io.InputStream.read(InputStream.java:101)
> esn_james | at com.google.common.io.ByteStreams.copy(ByteStreams.java:70)
> esn_james | at 
> com.google.common.io.ByteStreams.toByteArray(ByteStreams.java:115)
> esn_james | at 
> org.apache.james.jmap.UploadHandler.uploadContent(UploadHandler.java:59)
> esn_james | at 
> org.apache.james.jmap.UploadHandler.handle(UploadHandler.java:51)
> esn_james | at 
> org.apache.james.jmap.UploadServlet.doPost(UploadServlet.java:55)
> esn_james | at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> esn_james | at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> esn_james | at 
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:821)
> esn_james | at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1685)
> esn_james | at 
> org.apache.james.jmap.AuthenticationFilter.doFilter(AuthenticationFilter.java:75)
> esn_james | at 
> org.apache.james.jmap.BypassAuthOnRequestMethod.tryAuth(BypassAuthOnRequestMethod.java:115)
> esn_james | at 
> org.apache.james.jmap.BypassAuthOnRequestMethod.doFilter(BypassAuthOnRequestMethod.java:97)
> esn_james | at 
> org.apache.james.jmap.AllowAllCrossOriginRequests.doFilter(AllowAllCrossOriginRequests.java:46)
> esn_james | at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
> esn_james | at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
> esn_james | at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:513)
> esn_james | at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
> esn_james | at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> ```
> This should not be an error but a normal log "An upload has been canceled 
> before the end" or something like that.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (MAILBOX-279) Ensure JPA Mailbox pass test suites

2017-01-09 Thread Quynh Nguyen (JIRA)

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

Quynh Nguyen commented on MAILBOX-279:
--

It's done and merged by https://github.com/linagora/james-project/pull/499
Could you close this?

> Ensure JPA Mailbox pass test suites
> ---
>
> Key: MAILBOX-279
> URL: https://issues.apache.org/jira/browse/MAILBOX-279
> Project: James Mailbox
>  Issue Type: Improvement
>  Components: jpa
>Reporter: Matthieu Baechler
>
> JPA mailbox implementation will be the default one for james 3.0
> We would like to make sure it passes the test suite we wrote when developing 
> Cassandra mailbox to check its conformity.
> A downside of JPA it that it doesn't implement Attachment direct access 
> capability thus we have to split MessageMapperTest between tests that require 
> Attachments capability and tests that do not.
> Then JPA mailbox have to pass all mapper tests except attachments ones.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Created] (JAMES-1905) Add some tests combining MessageIdManager and MessageManager

2017-01-08 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1905:
---

 Summary: Add some tests combining MessageIdManager and 
MessageManager
 Key: JAMES-1905
 URL: https://issues.apache.org/jira/browse/JAMES-1905
 Project: James Server
  Issue Type: Test
Reporter: Quynh Nguyen






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Closed] (JAMES-1900) Decode headers before indexing

2017-01-04 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen closed JAMES-1900.
---
   Resolution: Fixed
Fix Version/s: 3.0.0

> Decode headers before indexing
> --
>
> Key: JAMES-1900
> URL: https://issues.apache.org/jira/browse/JAMES-1900
> Project: James Server
>  Issue Type: Bug
>Reporter: Quynh Nguyen
> Fix For: 3.0.0
>
>
> Headers in emails are usually encoded using 
> https://tools.ietf.org/html/rfc2047
> It's the so-called encoded-word encoding.
> When we put emails into ES, we should decode headers to UTF-8 to make sure 
> search will match even non-ascii characters.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Created] (JAMES-1903) Automatically subscribe the user to a folder created with JMAP

2017-01-03 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1903:
---

 Summary: Automatically subscribe the user to a folder created with 
JMAP
 Key: JAMES-1903
 URL: https://issues.apache.org/jira/browse/JAMES-1903
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen


When I create a folder with JMAP I should be immediately subscribed to it. 
Currently when I browse my account with an IMAP client I don't "see" the folder 
until I subscribe to it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Created] (JAMES-1900) Decode headers before indexing

2016-12-29 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1900:
---

 Summary: Decode headers before indexing
 Key: JAMES-1900
 URL: https://issues.apache.org/jira/browse/JAMES-1900
 Project: James Server
  Issue Type: Bug
Reporter: Quynh Nguyen


Headers in emails are usually encoded using https://tools.ietf.org/html/rfc2047
It's the so-called encoded-word encoding.
When we put emails into ES, we should decode headers to UTF-8 to make sure 
search will match even non-ascii characters.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Closed] (JAMES-1895) JMAP and MailboxSession type

2016-12-22 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-1895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen closed JAMES-1895.
---
Resolution: Invalid

for the moment a system session is nothing more than an internal user session 
(ie a user session without a login process)
and it seems to be documented to be like this
what the point of having a real system session with advanced rights?
I think this will ask several hard questions, such as quota handling, etc.


> JMAP and MailboxSession type
> 
>
> Key: JAMES-1895
> URL: https://issues.apache.org/jira/browse/JAMES-1895
> Project: James Server
>  Issue Type: Improvement
>Reporter: Quynh Nguyen
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Created] (JAMES-1895) JMAP and MailboxSession type

2016-12-21 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1895:
---

 Summary: JMAP and MailboxSession type
 Key: JAMES-1895
 URL: https://issues.apache.org/jira/browse/JAMES-1895
 Project: James Server
  Issue Type: Improvement
Reporter: Quynh Nguyen






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Created] (JAMES-1892) Cassandra should Pass JMAP integration tests

2016-12-20 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1892:
---

 Summary: Cassandra should Pass JMAP integration tests
 Key: JAMES-1892
 URL: https://issues.apache.org/jira/browse/JAMES-1892
 Project: James Server
  Issue Type: Task
Reporter: Quynh Nguyen


Cassandra should Pass JMAP integration tests



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Created] (JAMES-1887) AbstractMessageIdManager: make it pass the "event" part of the messageIdManagerTests.

2016-12-12 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1887:
---

 Summary: AbstractMessageIdManager: make it pass the "event" part 
of the messageIdManagerTests.
 Key: JAMES-1887
 URL: https://issues.apache.org/jira/browse/JAMES-1887
 Project: James Server
  Issue Type: New Feature
Reporter: Quynh Nguyen






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Closed] (MAILBOX-281) AbstractMessageIdManager: make it pass the "event" part of the messageIdManagerTests.

2016-12-12 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAILBOX-281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen closed MAILBOX-281.

Resolution: Invalid

> AbstractMessageIdManager: make it pass the "event" part of the 
> messageIdManagerTests.
> -
>
> Key: MAILBOX-281
> URL: https://issues.apache.org/jira/browse/MAILBOX-281
> Project: James Mailbox
>  Issue Type: New Feature
>Reporter: Quynh Nguyen
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Created] (MAILBOX-281) AbstractMessageIdManager: make it pass the "event" part of the messageIdManagerTests.

2016-12-12 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created MAILBOX-281:


 Summary: AbstractMessageIdManager: make it pass the "event" part 
of the messageIdManagerTests.
 Key: MAILBOX-281
 URL: https://issues.apache.org/jira/browse/MAILBOX-281
 Project: James Mailbox
  Issue Type: New Feature
Reporter: Quynh Nguyen






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Closed] (JAMES-1857) JWS-Create James Image for get started part

2016-11-20 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen closed JAMES-1857.
---

> JWS-Create James Image for get started part
> ---
>
> Key: JAMES-1857
> URL: https://issues.apache.org/jira/browse/JAMES-1857
> Project: James Server
>  Issue Type: Sub-task
>Reporter: Quynh Nguyen
> Fix For: 3.0.0
>
>
> This James image has a default configuration using JPA (hsqldb) and Lucene. 
> It also includes a default domain named james.local and three default users: 
> user01, user02, user03. Note: this James server will respond to IMAP port 143 
> and SMTP port 25.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Resolved] (JAMES-1857) JWS-Create James Image for get started part

2016-11-20 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen resolved JAMES-1857.
-
Resolution: Fixed

It's done and merged to master

> JWS-Create James Image for get started part
> ---
>
> Key: JAMES-1857
> URL: https://issues.apache.org/jira/browse/JAMES-1857
> Project: James Server
>  Issue Type: Sub-task
>Reporter: Quynh Nguyen
> Fix For: 3.0.0
>
>
> This James image has a default configuration using JPA (hsqldb) and Lucene. 
> It also includes a default domain named james.local and three default users: 
> user01, user02, user03. Note: this James server will respond to IMAP port 143 
> and SMTP port 25.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Closed] (JAMES-1842) JPA and Lucene should be defalt configuration

2016-11-20 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen closed JAMES-1842.
---

It's done and merged to master branch

> JPA and Lucene should be defalt configuration
> -
>
> Key: JAMES-1842
> URL: https://issues.apache.org/jira/browse/JAMES-1842
> Project: James Server
>  Issue Type: Task
> Environment: Java 6
>Reporter: Quynh Nguyen
> Fix For: 3.0.0
>
>
> It should make sure back-end works well on java 6



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Resolved] (JAMES-1842) JPA and Lucene should be defalt configuration

2016-11-20 Thread Quynh Nguyen (JIRA)

 [ 
https://issues.apache.org/jira/browse/JAMES-1842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Quynh Nguyen resolved JAMES-1842.
-
Resolution: Fixed

> JPA and Lucene should be defalt configuration
> -
>
> Key: JAMES-1842
> URL: https://issues.apache.org/jira/browse/JAMES-1842
> Project: James Server
>  Issue Type: Task
> Environment: Java 6
>Reporter: Quynh Nguyen
> Fix For: 3.0.0
>
>
> It should make sure back-end works well on java 6



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Created] (JAMES-1857) JWS-Create James Image for get started part

2016-11-06 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1857:
---

 Summary: JWS-Create James Image for get started part
 Key: JAMES-1857
 URL: https://issues.apache.org/jira/browse/JAMES-1857
 Project: James Server
  Issue Type: Sub-task
Reporter: Quynh Nguyen


This James image has a default configuration using JPA (hsqldb) and Lucene. It 
also includes a default domain named james.local and three default users: 
user01, user02, user03. Note: this James server will respond to IMAP port 143 
and SMTP port 25.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Created] (JAMES-1842) JPA and Lucene should be defalt configuration

2016-10-18 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1842:
---

 Summary: JPA and Lucene should be defalt configuration
 Key: JAMES-1842
 URL: https://issues.apache.org/jira/browse/JAMES-1842
 Project: James Server
  Issue Type: Task
 Environment: Java 6
Reporter: Quynh Nguyen
 Fix For: 3.0.0


It should make sure back-end works well on java 6



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Created] (MAILBOX-270) Apache James supports metadata extension (RFC5464)

2016-06-01 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created MAILBOX-270:


 Summary: Apache James supports metadata extension (RFC5464)
 Key: MAILBOX-270
 URL: https://issues.apache.org/jira/browse/MAILBOX-270
 Project: James Mailbox
  Issue Type: New Feature
  Components: api
Affects Versions: 0.4
Reporter: Quynh Nguyen


We support the metadata extension by below standard: 
https://tools.ietf.org/html/rfc5464




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Created] (JAMES-1737) Wrong destination in the README.txt file for building James on java 8

2016-05-16 Thread Quynh Nguyen (JIRA)
Quynh Nguyen created JAMES-1737:
---

 Summary: Wrong destination in the README.txt file for building 
James on java 8
 Key: JAMES-1737
 URL: https://issues.apache.org/jira/browse/JAMES-1737
 Project: James Server
  Issue Type: Improvement
  Components: Documentation
Affects Versions: Trunk
Reporter: Quynh Nguyen
 Fix For: Trunk


In order to run the build, you have to launch the following command:

The old one is:
$ docker run -v $PWD/.m2:/root/.m2 -v $PWD:/origin -v 
$PWD/dockerfiles/run/spring/destination:/destination -t james/project -s SHA1

It should be:
docker run -v $PWD/.m2:/root/.m2 -v $PWD:/origin -v 
$PWD/dockerfiles/run/guice/destination:/destination -t james/project -s SHA1



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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