[jira] [Commented] (JAMES-2371) Store attachments out of the database

2018-05-28 Thread mostafa vtp (JIRA)

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

mostafa vtp commented on JAMES-2371:


Hi
I reviewed StripAttachment and RecoverAttachment mailets. I can change 
StripAttachment to save attachments in another storage and replace it with a 
specific tag in the email message. But I think RecoverAttachment should run 
when IMAP or POP3 requests are sent to James but it run when James receives 
email. 
How I can write mailet for IMAP and POP3 requests? 
Is it Possible to write code similar to mailet for IMAP and POP3 request?

> Store attachments out of the database
> -
>
> Key: JAMES-2371
> URL: https://issues.apache.org/jira/browse/JAMES-2371
> Project: James Server
>  Issue Type: New Feature
>  Components: MailStore  MailRepository
>Reporter: mostafa vtp
>Priority: Major
>  Labels: storage
>
> I want to store email attachments on file system(directly or by calling a 
> service to do it) and save only text part of the message body in database.
> I know that in general, saving whole message body (including attachments) in 
> database is better But due to certain circumstances, I have to do it. And it 
> may be useful for others with limited storage space on database.
> We can implement it as a configurable feature.
> And if it is not accepted as a new feature, can anyone help me out how to do 
> it?
> Thank you



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (JAMES-2371) Store attachments out of the database

2018-04-16 Thread mostafa vtp (JIRA)

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

mostafa vtp commented on JAMES-2371:


Thank you very much

> Store attachments out of the database
> -
>
> Key: JAMES-2371
> URL: https://issues.apache.org/jira/browse/JAMES-2371
> Project: James Server
>  Issue Type: New Feature
>  Components: MailStore  MailRepository
>Reporter: mostafa vtp
>Priority: Major
>  Labels: storage
>
> I want to store email attachments on file system(directly or by calling a 
> service to do it) and save only text part of the message body in database.
> I know that in general, saving whole message body (including attachments) in 
> database is better But due to certain circumstances, I have to do it. And it 
> may be useful for others with limited storage space on database.
> We can implement it as a configurable feature.
> And if it is not accepted as a new feature, can anyone help me out how to do 
> it?
> Thank you



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (JAMES-2371) Store attachments out of the database

2018-04-15 Thread Tellier Benoit (JIRA)

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

Tellier Benoit commented on JAMES-2371:
---

Hi mostafa,

Regarding project relations

**/mailbox/api** defines the APIs to interact with mail storage. There is a 
couple of implementations, for instance,**mailbox/memory** for testing 
purposes, **mailbox/jpa** for storing emails in a database over JPA, 
**mailbox/cassandra** for doing so over Cassandra.

Here are the main interfaces:
 - *MailboxManager* for handling "non selected IMAP operations", mailbox level 
operations.
 - *MessageManager* is for handling messages level operations.

The **mailbox/store** project proposes an implementation for these managers and 
delegates to the implementations only specific storage concerns through 
mappers. Here are the main mappers:
 - MailboxMapper for simple mailbox storage directives
 - MessageMapper for simple message storage directives

Note that there is a full test suite for each of these mappers, to ensure 
compliance (at least for supported, non experimental back-ends mentioned above).

Maybe this page could be enhanced with what I just had been presenting to you. 
I will create a ticket for that.

This page gives you a more global overview of the James architecture (not just 
limited to the **mailbox**) http://james.apache.org/server/dev.html

If you have some more precise questions, I would be glad to answer it.

Cheers.

Benoit

> Store attachments out of the database
> -
>
> Key: JAMES-2371
> URL: https://issues.apache.org/jira/browse/JAMES-2371
> Project: James Server
>  Issue Type: New Feature
>  Components: MailStore  MailRepository
>Reporter: mostafa vtp
>Priority: Major
>  Labels: storage
>
> I want to store email attachments on file system(directly or by calling a 
> service to do it) and save only text part of the message body in database.
> I know that in general, saving whole message body (including attachments) in 
> database is better But due to certain circumstances, I have to do it. And it 
> may be useful for others with limited storage space on database.
> We can implement it as a configurable feature.
> And if it is not accepted as a new feature, can anyone help me out how to do 
> it?
> Thank you



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (JAMES-2371) Store attachments out of the database

2018-04-11 Thread mostafa vtp (JIRA)

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

mostafa vtp commented on JAMES-2371:


Is there any software design (and architecture) documentation for Apache James 
to help us understand project relations, class relations, used technology 
stack, programming approach and …?

 

> Store attachments out of the database
> -
>
> Key: JAMES-2371
> URL: https://issues.apache.org/jira/browse/JAMES-2371
> Project: James Server
>  Issue Type: New Feature
>  Components: MailStore  MailRepository
>Reporter: mostafa vtp
>Priority: Major
>  Labels: storage
>
> I want to store email attachments on file system(directly or by calling a 
> service to do it) and save only text part of the message body in database.
> I know that in general, saving whole message body (including attachments) in 
> database is better But due to certain circumstances, I have to do it. And it 
> may be useful for others with limited storage space on database.
> We can implement it as a configurable feature.
> And if it is not accepted as a new feature, can anyone help me out how to do 
> it?
> Thank you



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (JAMES-2371) Store attachments out of the database

2018-04-10 Thread mostafa vtp (JIRA)

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

mostafa vtp commented on JAMES-2371:


Thank you for your quick and accurate response.

I will investigate it.

 

> Store attachments out of the database
> -
>
> Key: JAMES-2371
> URL: https://issues.apache.org/jira/browse/JAMES-2371
> Project: James Server
>  Issue Type: New Feature
>  Components: MailStore  MailRepository
>Reporter: mostafa vtp
>Priority: Major
>  Labels: storage
>
> I want to store email attachments on file system(directly or by calling a 
> service to do it) and save only text part of the message body in database.
> I know that in general, saving whole message body (including attachments) in 
> database is better But due to certain circumstances, I have to do it. And it 
> may be useful for others with limited storage space on database.
> We can implement it as a configurable feature.
> And if it is not accepted as a new feature, can anyone help me out how to do 
> it?
> Thank you



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (JAMES-2371) Store attachments out of the database

2018-04-09 Thread Tellier Benoit (JIRA)

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

Tellier Benoit commented on JAMES-2371:
---

Hi Mostafa.

This is, in brief, the direction we are taking.

We introduced recently a "blob store" component for storing a potentially large 
amount of data, out of the database 
(https://github.com/apache/james-project/tree/master/server/blob). The only 
implementation today is Cassandra based, but some object stores (yet to be 
defined) will be added in the future.

Please note that the `mailbox` implementation has to support and integrate the 
blob API. The only one to currently do so is the Cassandra Mailbox.

We would more than welcome some contribution on this topic, might it be:
 - Implementing additional backends for the blob-api
 - Modifying existing mailbox implementations to rely on the blob-api

Best regards,

> Store attachments out of the database
> -
>
> Key: JAMES-2371
> URL: https://issues.apache.org/jira/browse/JAMES-2371
> Project: James Server
>  Issue Type: New Feature
>  Components: MailStore  MailRepository
>Reporter: mostafa vtp
>Priority: Major
>  Labels: storage
>
> I want to store email attachments on file system(directly or by calling a 
> service to do it) and save only text part of the message body in database.
> I know that in general, saving whole message body (including attachments) in 
> database is better But due to certain circumstances, I have to do it. And it 
> may be useful for others with limited storage space on database.
> We can implement it as a configurable feature.
> And if it is not accepted as a new feature, can anyone help me out how to do 
> it?
> Thank you



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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