[GH-ISSUE #20] Do not load autoreply forms for admins with no mailbox #10

Closed
opened 2026-02-27 10:25:17 +03:00 by kerem · 0 comments
Owner

Originally created by @tonioo on GitHub (Oct 31, 2015).
Original GitHub issue: https://github.com/modoboa/modoboa-postfix-autoreply/issues/20

Originally assigned to: @tonioo on GitHub.

Traceback:
File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  111.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/db/transaction.py" in inner
  394.                 return func(*args, **kwargs)
File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/db/transaction.py" in inner
  394.                 return func(*args, **kwargs)
File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  21.                 return view_func(request, *args, **kwargs)
File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
  21.                 return view_func(request, *args, **kwargs)
File "/srv/modoboa/env/local/lib/python2.7/site-packages/reversion/revisions.py" in do_revision_context
  297.                 return func(*args, **kwargs)
File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_admin/views/identity.py" in editaccount
  180.     events.raiseEvent("FillAccountInstances", request.user, account, instances)
File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/lib/events.py" in raiseEvent
  90.         callback(*args, **kwargs)
File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_postfix_autoreply/general_callbacks.py" in fill_account_tab
  55.         if account.mailbox:
File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/db/models/fields/related.py" in __get__
  428.                     self.related.get_accessor_name()

Exception Type: RelatedObjectDoesNotExist at /admin/accounts/edit/1/
Exception Value: User has no mailbox.
Originally created by @tonioo on GitHub (Oct 31, 2015). Original GitHub issue: https://github.com/modoboa/modoboa-postfix-autoreply/issues/20 Originally assigned to: @tonioo on GitHub. ``` python Traceback: File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 111. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/db/transaction.py" in inner 394. return func(*args, **kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/db/transaction.py" in inner 394. return func(*args, **kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 21. return view_func(request, *args, **kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 21. return view_func(request, *args, **kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/reversion/revisions.py" in do_revision_context 297. return func(*args, **kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_admin/views/identity.py" in editaccount 180. events.raiseEvent("FillAccountInstances", request.user, account, instances) File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa/lib/events.py" in raiseEvent 90. callback(*args, **kwargs) File "/srv/modoboa/env/local/lib/python2.7/site-packages/modoboa_postfix_autoreply/general_callbacks.py" in fill_account_tab 55. if account.mailbox: File "/srv/modoboa/env/local/lib/python2.7/site-packages/django/db/models/fields/related.py" in __get__ 428. self.related.get_accessor_name() Exception Type: RelatedObjectDoesNotExist at /admin/accounts/edit/1/ Exception Value: User has no mailbox. ```
kerem 2026-02-27 10:25:17 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-postfix-autoreply-modoboa#10
No description provided.