Commit Graph
22 Commits
Author SHA1 Message Date
jbpenrath cf66702adc ✨(front) paginate maildomain and mailboxes views
Add pagination on maildomain and mailboxes data grid to allow navigation
in large list of items
2025-08-12 14:04:38 +02:00
jbpenrath 53110862d6 ✨(front) manage abilities
Improve openapi schema to pass abilities to frontend properly.
Then through the useAbility hook, hide/disable actions.
It concerns actions to send messages, write messages, share
thread access, crud labels, crud maildomain mailboxes.
2025-08-07 10:39:23 +02:00
Sylvain ZimmerandSabrina Demagny 4545f4ff48 ✨(roles) implement MailboxAccessRole.SENDER 2025-07-18 14:11:29 +02:00
Sylvain ZimmerandGitHub 3259eb07a6 ✨(admin) add maildomainaccess model, api route and backend tests (#102)
* ✨(admin) add maildomainacess model, api route and backend tests

* ♻️(drf) simplify API code
2025-05-21 22:21:45 +02:00
Sabrina Demagny eca469e666 ✨(api) add endpoint to manage ThreadAccess
Allows creating, updating, and deleting access to threads based on
user role.
2025-05-16 12:18:14 +02:00
Sabrina DemagnyandGitHub 84f95bf52a ✨(backend) use ThreadAccess instead of direct mailbox link (#80)
* ✨(backend) use ThreadAccess instead of direct mailbox link

Remove the direct link to a mailbox on Thread model. It is now possible to
define two types of roles for each thread (Reader and Editor) for a mailbox.
When creating a new thread, a new access to the sender's mailbox is created
with the Editor role.
It is now possible to delegate a thread to another mailbox with the Reader or
Editor role. So it is possible to forward a thread to another internal user
and avoid mail forwarding.

* ✨(backend) change MailboxAccess permission into roles

Enhance access on mailbox and thread with role everywhere!

* improve doc

* enhance tests

* lint
2025-05-12 21:29:06 +02:00
Sylvain ZimmerandJean-Baptiste PENRATH 17b86ad5db ♻️(flags) refactor "read" and "thread.delete" feature in a single flag route 2025-04-30 22:06:29 +02:00
Sylvain ZimmerandJean-Baptiste PENRATH 183d152f2c ♻️(mda) refactor large parts of the MDA with thinner views 2025-04-30 22:06:29 +02:00
Sabrina DemagnyandJean-Baptiste PENRATH 9d72a787b7 ✨(backend) allow to create draft message then send it
Add flag for draft message.
Split API view to create draft message, update it then allow to
send it.
2025-04-30 22:06:29 +02:00
Sabrina Demagny 4abc817628 ✨(api) allow to delete a batch of threads
Add an endpoint to allow deleting a list of threads by passing a
list of thread IDs.
2025-04-28 02:44:23 +02:00
Sabrina Demagny 301680d744 ✨(api) allow to delete thread
A thread can be delete with its messages
2025-04-28 01:02:07 +02:00
Sabrina Demagny 2de5699b4e ✨(api) allow to delete message
Allow to delete message and if the message is the last of a thread,
delete the thread too.
2025-04-28 00:29:01 +02:00
jbpenrath ae2eba4e77 ✨(frontend) allow user to reply to the latest message in a thread
Add a reply all button in the the message action bar which displays
a form to reply to the latest message of the thread.
2025-04-22 17:18:28 +02:00
Sabrina Demagny b04e6e6825 ✨(api) modify expected data to create message
Expect mailbox id instead of contact id for senderId
2025-04-22 16:50:20 +02:00
Sylvain Zimmer 318cb72aa9 ✨(rfc5322) add stronger RFC5322 parsing and connect to MTAs
This large commit upgrades our raw email parsing from the native
Python library to the Flanker package.
2025-04-22 10:34:26 +02:00
Sabrina Demagny 5d3fad57c3 ✨(api) allow to create new message instance
For now use a separate API view to create the message and all objects
linked.
Add dedicated permission for message creation.
Allow to create a really simple reply (not yet with last message content)
Send message to MTA will be implemented into the next PR
2025-04-21 17:31:45 +02:00
Sabrina Demagny b5e887db80 ✨(backend) enhance permissions to access to Mailbox and Thread
Split permission to use has_object_permission to check permission on objects
Mailbox, Thread, Message
2025-04-20 19:50:01 +02:00
Sabrina Demagny 1a2c6ce7a1 ✨(api) enhance code and manage not existing mailbox or thread
Enhance permissions and viewsets
2025-04-18 10:17:48 +02:00
Sabrina Demagny efb9176663 🐛(messages) fix permissions for user to access of mailbox content
check if authenticated user has access to mailbox
2025-04-17 01:12:32 +02:00
Sabrina Demagny 57db469eec ✨(api) add get threads endpoint
Allow to list all threads for a logged user.
2025-04-16 18:12:37 +02:00
Sylvain Zimmer e36e10966c 🚨(lint) fix lint, mostly removing unused imports 2025-04-15 19:37:12 +02:00
Sylvain Zimmer 53db5a748d 🎉(all) bootstrap the Messages project
We used the Drive repository as starting point. There are still
some leftovers that will be cleaned up over time.
2025-04-13 18:48:04 +02:00