This repository has been archived on 2026-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
RepApp/repapp/email_interface/urls.py

27 lines
798 B
Python

"""
Urls of RepApp.
"""
import sys
import logging
from django.urls import path
from django.conf import settings
from . import views
app_name = 'email_interface'
urlpatterns = [
path("process/", views.process, name="process"),
path("sent/", views.my_sent_mails, name="my_sent_mails"),
path("received/", views.my_received_mails, name="my_received_mails"),
path("attachments/", views.my_attachments, name="my_attachments"),
path("<int:id>/view", views.mail_thread, name="mail_thread"),
]
if settings.DEBUG or sys.argv[1:2] == ['test']:
logging.info('email_interface: enable test and debug URLs')
urlpatterns += [
path("test-mail/", views.send_test_mail, name="send_test_mail"),
path("send-mail/", views.SendMailView.as_view(), name="send_mail"),
]