Commit graph

20 commits

Author SHA1 Message Date
1cfd4327da Add tests for managemails.models
This commit adds tests for managemails.models to improve the test
coverage of that model. There are some changes to the classes in
managemails.models too:

- add a method create_mailbox to MailboxManager
- properly handle uncommited mailaddresses in MailAddress.set_mailbox
  and MailAddress.set_forward_addresses
2015-11-28 14:07:34 +00:00
b11055807f Clean PEP8 violations 2015-11-22 14:03:47 +00:00
2af30d6148 fix mail forwarding setup bug
- fix wrong variable name in
  managemails.models.MailAddress.set_forward_addresses and typo in
  managemails.forms.EditMailAddressForm
2015-02-06 11:17:03 +01:00
5429055f0d implement mail address target editing
- extract common code into managemails.forms.MailAddressFieldMixin
- move code from forms into managemails.models.MailAddress
- implement managemails.models.MailboxManager.unused and unused_or_own
- implement managemails.forms.EditMailAddressForm
- add managemails.views.EditMailAddress
- add URL pattern 'edit_mailaddress' to managemails.urls
- add template managemails/mailaddress_edit.html
- add changelog entry
2015-01-25 22:12:03 +01:00
af27400077 add verbose name to MailAddress fields 2015-01-25 19:01:01 +01:00
e04132bd24 improve managemails app
- add managemails.apps to give a more meaningful title in the admin site
- add verbose names to MailAddressMailbox fields
- implement managemails.models.Mailbox.get_mailaddresses and a corresponding
  property mailaddresses
2015-01-24 20:58:20 +01:00
d78bad06b7 add docstrings to managemails.models 2015-01-19 23:00:01 +01:00
5b41d93898 refactor osusers.tasks into fileservertasks and ldaptasks 2015-01-19 21:44:57 +01:00
19390d369a add admin list filtering and ordering for mail addresses and mailboxes 2015-01-17 12:25:54 +01:00
54b99281e3 call create/delete mailbox tasks when saving/deleting mailboxes 2014-12-27 16:31:43 +01:00
92c6b39e12 implement automatic creation of mailbox names
- create mailbox name when saving new mailboxes in admin
- add MailboxManager that implement get_next_mailbox_name as manager for
  Mailbox
2014-12-27 00:24:05 +01:00
ecaff6a4af move existing MailDomains to domains table 2014-05-25 15:17:08 +02:00
f085dab017 let mailboxes reference os users
- refer to osuser instead of own home, uid and gid entries in mailboxes
- add data and schema migrations
2014-05-24 22:50:43 +02:00
3473b14e62 add timestamps to managemails models 2014-05-24 21:56:30 +02:00
d5e1128ff6 allow only one mailbox for a mailaddress
- add migration to place a unique constraint on MailAddressMailbox.mailaddress
  and drop existing primary_key
- change managemails.models.MailAddressMailbox.mailaddress to OneToOneField
2014-05-24 20:57:17 +02:00
ee46a61e6d add inline editing for mail address targets
- move active flag into managemails.models.ActivateAbleMixin
- refactor Mailbox and Mailaddress to use ActivateAbleMixin
- implement managemails.models.Mailbox.__str__
- add managemails.admin.ActivationChangeMixin to provide activate and
  deactivate actions for model admin classes
- add activate and deactivate actions for managemails.admin.MailboxAdmin
- add managemails.admin.MailAddressAdmin and inlines for MailAddressMailbox and
  MailAddressForward management on the MailAddress management admin page
2014-05-24 14:58:54 +02:00
cc7f5247ab decouple mailbox from domain 2014-05-22 22:57:21 +02:00
618a9b8c11 add separate models for mail addresses, domains and mailboxes 2014-05-19 22:28:25 +02:00
540871865f add initial data model for managemails 2014-05-18 21:35:00 +02:00
123eedaeb1 add generated managemails app 2014-05-18 20:02:39 +02:00