Commit Graph

33 Commits

Author SHA1 Message Date
Benjamin Dauvergne 55e17ac3fc When applying an automatic forwarding rule, select the new sender among the original recipients who matched the rule 2011-11-23 10:29:37 +01:00
Benjamin Dauvergne 345a0dfe5a [view] when forwarding mark original document as read for any user which has forwarding power
We get the list of users with forwarding power and lookup all their
mailboxes for the original document, then mark it read.
2011-11-17 16:19:25 +01:00
Benjamin Dauvergne 05af0efe2f remove debugging statements 2011-10-18 00:58:30 +02:00
Benjamin Dauvergne efaaaefd29 [automatic forwarding] add one more selecting field: originaly_to_user
* Document now needs at least one of their recipient to match the
   AutomaticForwarding.originaly_to_user field which references a list
   of users for an AutomaticForwarding rule to be applied.
2011-10-16 09:59:56 +02:00
Benjamin Dauvergne ab854501ab fix base_url computation (bis) 2011-10-10 15:16:44 +02:00
Benjamin Dauvergne 86a1830e30 fix base_url computation 2011-10-10 15:12:41 +02:00
Benjamin Dauvergne 764b894f8a Allow forwarding to Greffe, member of Greffe list, and to members of Administrateurs group 2011-10-10 11:29:30 +02:00
Benjamin Dauvergne 426cd570c7 Restore destination limitations, only activate forwarding for the Greffe account 2011-10-10 10:22:12 +02:00
Benjamin Dauvergne 2ea55d9104 factorize some queryset filtering from inbox() and outbox() inside the listing() view 2011-10-06 23:08:15 +02:00
Benjamin Dauvergne 8e47960b53 Implement logic of automatic forwarding
All exceptions are logged then ignored so that normal sending is never blocked by a problem inside
2011-10-06 17:07:32 +02:00
Benjamin Dauvergne f24eae5464 in views.forward_document remove all use of request
As request is no more passed to forward_document
any use of request must be moved to the caller.
2011-10-06 17:07:32 +02:00
Benjamin Dauvergne 9a7b90a956 Remove the request argument to forward_document, explicitely pass the sender and logger objects 2011-10-06 17:07:31 +02:00
Benjamin Dauvergne b71d173c90 add 'automatic' optional argument to the forward_docucment function
This function will be reused for the automatic forwarding feature.
2011-10-06 17:07:31 +02:00
Benjamin Dauvergne b433d2bc30 factorize extraction of to_list and to_user recipients from Forwarding form 2011-10-06 17:07:31 +02:00
Benjamin Dauvergne 7ef54f9c4d show forwarding status of documents, implement forwarding post handler 2011-10-04 03:17:11 +02:00
Benjamin Dauvergne 60a03f218c plug the forwarding form into the message view 2011-09-23 15:34:17 +02:00
Benjamin Dauvergne 5cbdeb5ecf add a sendmail command, to receive document sent by mail
The sender can be extracted from the From header or forced on the
command line by the --sender option. Recipients are taken as command
line arguments, if no recipient is given, they are extracted from the
To, Cc and Bcc headers.

The --base_url argument must be set to pass the base_url used to build
the URL to the received document; it is used by the mail notification
functionnality. When working in the web views, this can be easily
deduced from the environement, but when running as a child of a mail
server, you must pass it to the command line tool.
2011-09-22 17:32:18 +02:00
Benjamin Dauvergne 416a64041b does not try to return a filename in the Content-Disposition, let the browser handle it from the URL 2011-09-15 16:22:05 +02:00
Benjamin Dauvergne 9bde342304 change header from h1 to h4, and h2 to h5 in help content 2011-09-08 16:26:15 +02:00
Benjamin Dauvergne 525df55c5a cache images for the help content 2011-09-08 16:26:15 +02:00
Benjamin Dauvergne ee77bd49bb change help header from h1 to h3, and h2 to h4 2011-09-08 15:52:11 +02:00
Benjamin Dauvergne 2a53baf42b fix delete view when using GET verb 2011-09-08 15:40:07 +02:00
Benjamin Dauvergne a8f7b01b57 remove import * 2011-09-08 15:37:03 +02:00
Benjamin Dauvergne 416a9cccd5 pull help content from entrouvert wiki 2011-09-08 14:58:57 +02:00
Benjamin Dauvergne 3dd0ad8f67 add a model to contain sending limitations 2011-08-31 22:34:40 +02:00
Benjamin Dauvergne c199d97a84 fix wrong usage of the upload view 2011-08-24 16:38:16 +02:00
Benjamin Dauvergne 51ceca567f remove debugging statement 2011-08-24 16:35:18 +02:00
Benjamin Dauvergne 325702abd5 fix wrong argument name to inbox-by-document-message view 2011-08-24 16:32:27 +02:00
Benjamin Dauvergne d7c73acb1e fix link to received documents in notification mails 2011-08-24 16:27:09 +02:00
Benjamin Dauvergne 92ce3486dc create a backoffice and an admin section
- listing have been simplified for most object in the backoffice
- link to their documents have been added to user pages
- attached files can be downloaded from the backoffice
- all fields in the backoffice are read-only
- /superadmin is reserved to superusers (the hosting organisation)
- link to attached file are displayed directly in listing views
2011-08-24 15:53:25 +02:00
Benjamin Dauvergne 38dc831883 FileForm: change recipient and filetype list depending on the sender belonging to some list
The two mailing lists affected are Parlementaires and Gouvernement.

Filetype list for each one is configurable from the setting file.
Recipient list is hard-coded to "Greffe".

Closes #593.
2011-08-23 12:11:22 +02:00
Benjamin Dauvergne 3c905499b1 add timestamp to log when sending a document 2011-08-22 17:22:15 +02:00
Benjamin Dauvergne a7b86c79bb rename docbow_app package to docbow 2011-08-22 10:39:12 +02:00