Metadata-Version: 2.4
Name: imio.zamqp.dms
Version: 0.24.0
Summary: zamqp consumer for imio.dms.mail
Author: IMIO
Author-email: devs@imio.be
License: GPL version 2
Project-URL: PyPI, https://pypi.python.org/pypi/imio.zamqp.dms
Project-URL: Source, https://github.com/imio/imio.zamqp.dms
Keywords: amqp dms document management system
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Plone
Classifier: Framework :: Plone :: 4.3
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Operating System :: OS Independent
Requires-Dist: plone.api
Requires-Dist: Products.GenericSetup>=1.8.2
Requires-Dist: setuptools
Requires-Dist: imio.dms.mail
Requires-Dist: imio.zamqp.core>0.11
Provides-Extra: test
Requires-Dist: imio.dms.mail[test]; extra == "test"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: keywords
Dynamic: license
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: summary

.. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
   If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
   This text does not appear on pypi or github. It is a comment.

.. image:: https://github.com/IMIO/imio.pyutils/actions/workflows/main.yml/badge.svg?branch=master
    :target: https://github.com/IMIO/imio.zamqp.dms/actions/workflows/main.yml

.. image:: https://coveralls.io/repos/github/IMIO/imio.zamqp.dms/badge.svg
    :target: https://coveralls.io/github/IMIO/imio.zamqp.dms

.. image:: http://img.shields.io/pypi/v/imio.zamqp.dms.svg
   :alt: PyPI badge
   :target: https://pypi.org/project/imio.zamqp.dms

==============================================================================
imio.zamqp.dms
==============================================================================

Consume some queues to create incoming and ougoing mails

Features
--------

- Get documents to create incoming mails
- Get documents to create incoming emails
- Get documents to create outgoing mails
- Get documents to add a signed version in existing outgoing mails

Documentation
-------------

Full documentation in the code ;-)


Translations
------------

This product has been translated into

- French


Installation
------------

Install imio.zamqp.dms by adding it to your buildout::

    [buildout]

    ...

    eggs =
        imio.zamqp.dms


and then running ``bin/buildout``


Contribute
----------

- Issue Tracker: https://github.com/IMIO/imio.zamqp.dms/issues
- Source Code: https://github.com/IMIO/imio.zamqp.dms


Support
-------

If you are having issues, please let us know.
We have a mailing list located at: project@example.com


License
-------

The project is licensed under the GPLv2.


Contributors
============

- Stephan Geulette, s.geulette@imio.be


Changelog
=========


0.24.0 (2026-04-21)
-------------------

- Upgraded products and corrected tests.
  [sgeulette]
- Added esigned attribute on consumed file following esign use.
  [sgeulette]

0.23.1 (2026-03-16)
-------------------

- Added dmsappendixfile portal_type to seach with external_id in OutgoingGeneratedMail.
  [sgeulette]
- Improved code to avoid error accessing potentially missing attribute
  [sgeulette]

0.23.0 (2026-03-03)
-------------------

- Updated versions following server.dmsmail.
  [sgeulette]
- Updated OutgoingGeneratedMail following new signed state
  [sgeulette]
- Updated OutgoingGeneratedMail for esigned files
  [sgeulette]
- Removed 'to_sign' and 'signed' fields from the scan behavior.
  [chris-adam]
- Updated pdf_files_uids now containing list of lists
  [sgeulette]
- Used _update_esign_session method to update esign session files status and session status
  [chris-adam]

0.22.1 (2025-05-27)
-------------------

- Corrected error by adding `validated` state in `OutgoingGeneratedMail`.
  [sgeulette]

0.22.0 (2025-05-05)
-------------------

- Corrected error when a primary_organization held_position was not found with the given email
  [sgeulette]
- Corrected error when routing table pattern field is None
  [sgeulette]
- Renamed userid to agent_id in IncomingEmail consumer and passed agent_id to tal conditions
  [sgeulette]
- For routing table, kept assigned_user value even treating_groups is None
  [sgeulette,cadam]
- For routing table, with _primary_org_ option for treating_groups, defined value too if assigned user is only
  in one service
  [sgeulette]
- Normalized attachment filenames for incoming emails
  [cadam]

0.21.0 (2025-02-20)
-------------------

- Avoid error in `creating_group_split` when a group is not correct.
  [sgeulette]
- Taken into account routing table in `IncomingEmail` consumer.
  [sgeulette]
- Taken into account state_set table in `IncomingEmail` consumer.
  [sgeulette]

0.20.0 (2023-11-28)
-------------------

- Set new setup
  [sgeulette]
- In IncomingEmail consumer, when the sender email is an internal held position, we select only one position:
  the primary organization related one or the first one of the list but not all
  [sgeulette]
- In IncomingEmail consumer, when the agent has a primary organization, we select it to set treating_groups.
  [sgeulette]
- In IncomingEmail consumer, when the agent is part of the encodeurs group, treating_groups is not set.
  [sgeulette]

0.19 (2023-07-07)
-----------------

- Replaced imio.helpers transitions import.
  [sgeulette]

0.18 (2023-02-10)
-----------------

- Removed accented characters from orig_sender_email.
  [sgeulette]

0.17 (2022-08-19)
-----------------

- Set differently mail_type: on im, set at first voc value, on iem set at 'email' or first voc value.
  [sgeulette]

0.16 (2022-04-25)
-----------------

- Handled correctly transitions to be done on IncomingEmail.
  [sgeulette]

0.15 (2022-03-17)
-----------------

- Set a non empty title when the email subject is empty.
  [sgeulette]
- Created incoming and outgoing mails in subfolder
  [sgeulette]
- Proposed email type alternative
  [sgeulette]

0.14 (2021-12-06)
-----------------

- Used _unrestrictedGetObject() after unrestricted search
  [sgeulette]

0.13 (2021-11-24)
-----------------

- Corrected sender selection.
  [sgeulette]

0.12 (2021-11-15)
-----------------

- Handled tar containing eml file.
  [sgeulette]

0.11 (2021-08-27)
-----------------

- Lowercased email to match correctly.
  [sgeulette]

0.10 (2021-06-04)
-----------------

- Changed email dmsfile title (and id)
  [sgeulette]
- Store original_sender_email on dmsincoming_email
  [sgeulette]
- Use right metadata set to create dmsincoming_email
  [sgeulette]
- Use current_user obj directly to avoid error when username is different from userid
  [sgeulette]
- Added tests
  [sgeulette]

0.9 (2021-04-21)
----------------

- Changed new incoming email state following iemail_manual_forward_transitions option.
  [sgeulette]
- Changed the way an internal user is searched
  [sgeulette]
- Added default email mail_type
  [sgeulette]
- Defined _upload_file_extra_data to replace set_scan_attr when possible
  [sgeulette]
- Removed Subject value from email metadata
  [sgeulette]
- Set `_iem_agent` attribute when agent forwarded email and document transitioned
  [sgeulette]
- Closed a generated document only if not an email or email has been sent
  [sgeulette]

0.8 (2020-10-07)
----------------

- Corrected available created transitions in OutgoingGeneratedMail.
  [sgeulette]
- Replaced service_chief by n_plus_1
  [sgeulette]

0.7 (2019-11-25)
----------------

- Managed creating_group and treating_group metadatas.
  [sgeulette]
- Added consumer for dmsincoming_email type
  [daggelpop,sgeulette]

0.6 (2018-07-24)
----------------

- Search differently existing file for OutgoingGeneratedMail.
  [sgeulette]

0.5 (2018-03-29)
----------------

- Use scanner role to do 'set_scanned' transition.
  [sgeulette]

0.4 (2018-01-24)
----------------

- Changed outgoing date value in OutgoingGeneratedMail consumer.
  [sgeulette]

0.3 (2018-01-24)
----------------

- Set datetime value in outgoing date.
  [sgeulette]

0.2 (2018-01-22)
----------------

- Replaced file_portal_type by file_portal_types (list).
  [sgeulette]
- No more use commit function but generic consume
  [sgeulette]
- Removed useless transition
  [sgeulette]

0.1 (2017-06-01)
----------------

- Added OutgoingMailConsumer
  [sgeulette]
- Added OutgoingGeneratedMailConsumer
  [sgeulette]
- Replaced and refactored imio.dms.amqp, using imio.zamqp.core as base.
  [sgeulette]
