2015-01-25 12:10:17 +01:00
|
|
|
"""
|
|
|
|
This module defines the URL patterns for mailbox and mail address related
|
|
|
|
views.
|
|
|
|
|
|
|
|
"""
|
2023-02-18 22:46:48 +01:00
|
|
|
from __future__ import absolute_import
|
2015-01-25 12:10:17 +01:00
|
|
|
|
2023-02-18 22:46:48 +01:00
|
|
|
from django.urls import re_path
|
2015-01-25 12:10:17 +01:00
|
|
|
|
|
|
|
from .views import (
|
2015-01-25 18:20:51 +01:00
|
|
|
AddMailAddress,
|
2015-01-25 12:49:31 +01:00
|
|
|
ChangeMailboxPassword,
|
2015-01-25 12:10:17 +01:00
|
|
|
CreateMailbox,
|
2015-01-25 19:03:58 +01:00
|
|
|
DeleteMailAddress,
|
2015-01-25 22:07:54 +01:00
|
|
|
EditMailAddress,
|
2015-01-25 12:10:17 +01:00
|
|
|
)
|
|
|
|
|
2015-12-19 20:11:23 +01:00
|
|
|
urlpatterns = [
|
2023-02-18 22:46:48 +01:00
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/mailbox/create$",
|
|
|
|
CreateMailbox.as_view(),
|
|
|
|
name="create_mailbox",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/mailbox/(?P<slug>[\w0-9]+)/setpassword$",
|
|
|
|
ChangeMailboxPassword.as_view(),
|
|
|
|
name="change_mailbox_password",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/mailaddress/(?P<domain>[\w0-9-.]+)/create$",
|
|
|
|
AddMailAddress.as_view(),
|
|
|
|
name="add_mailaddress",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/mailaddress/(?P<domain>[\w0-9-.]+)/(?P<pk>\d+)" r"/edit$",
|
|
|
|
EditMailAddress.as_view(),
|
|
|
|
name="edit_mailaddress",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/mailaddress/(?P<domain>[\w0-9-.]+)/(?P<pk>\d+)" r"/delete$",
|
|
|
|
DeleteMailAddress.as_view(),
|
|
|
|
name="delete_mailaddress",
|
|
|
|
),
|
2015-12-19 20:11:23 +01:00
|
|
|
]
|