james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tellier Benoit (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PROTOCOLS-109) Quota support for Append, copy and move IMAP commands
Date Wed, 21 Jan 2015 10:21:34 GMT
Tellier Benoit created PROTOCOLS-109:

             Summary: Quota support for Append, copy and move IMAP commands
                 Key: PROTOCOLS-109
                 URL: https://issues.apache.org/jira/browse/PROTOCOLS-109
             Project: James Protocols
          Issue Type: New Feature
            Reporter: Tellier Benoit
            Assignee: Eric Charles

I think it would be nice to have IMAP command that may increase the size of a mailbox to check

I listed those commands : 

  - COPY
  - MOVE

I already implemented some stuff in the COPY processor :
  - before copying anything, I check quotas
  - I compute the total size of the moved messages
  - I get the quota for the targetted mailbox
  - Check the quota by adding the total size of moved messages to the target mailbox quota
and check it.
  - If it is OK then messages are moved
  - If not, I think no message should be moved ( RFC 3501 : if it fails, nothing should have
been done )

Something similar can be achieved with the move commands.

Problems appears with the Append command : we can not get the size of a stream, and I do not
believe ( or even trust ) that the clients sends the size of the message with the command...
So there is two solutions :
  - Get the full message and calculates his size, and add it to the store if quotas are OK
  - Normally append the message end check quota afterwards. Delete the messages if quotas
are not OK. I think I would prefer this solution.

What do you think ?

This message was sent by Atlassian JIRA

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

View raw message