intelmq-mailgen (1.4.0-1) stable; urgency=medium

  * example script to add bcc contacts: handle existing parameters to mail_format_as_csv
  * Raise error when scripts directory is not a directory or cannot be read.
  * Notifications: Handle NULL aggregate_identifier
  * Tableformat: Handle NULL extra
  * SQL/Database:
    * Add `ON DELETE CASCADE` to the foreign keys of table `directives` (#50)
      that allows deleting data from tables events and sent without manually
      deleting the corresponding entries from the directives.
  * intelmqcbmail tool:
    * in double verbose mode, also print the event IDs.
    * New parameter `--batch-size` (#56).
    * No exception & traceback when no notifications are generated (#57, fixes #48).

 -- Sebastian Wagner <sebix@sebix.at>  Thu, 04 Sep 2025 22:14:10 +0200

intelmq-mailgen (1.3.8-1) stable; urgency=medium

  * notifications:
    * allow to pass an existing ticket number to mail_format_as_csv
    * allow to skip marking an email as sent (for reusing a ticket number)
    * add example script to add bcc contacts

 -- Sebastian Wagner <swagner@intevation.de>  Wed, 04 Jun 2025 14:21:14 +0200

intelmq-mailgen (1.3.7-1) stable; urgency=medium

  * cli interface:
    * do not commit the directive to db if only in preview-mode
    * better error message when format scripts did not generate a notification
    * in Dry runs and debug logging level, also log envelop to addresses if set
  * notifications:
    * allow for different envelope-to than header-to in mail_format_as_csv and EmailNotification
  * Packaging:
    * Add GitHub Workflows to build Debian Package for Debian 11 and Debian 12
    * Fix Build for Debian 12 / Ubuntu 24.04 (#47)
  * Documentation:
    * Include the README in the rendered documentation, converted to RST
    * Add conceptual overview graphics and some texts
    * add database schema visualization
    * convert sql/updates to markdown for readability
  * SQL/Database:
    * Fix script to create Type `ip_endpoint` as superuser
    * use JSONB of events.extra
      IntelMQ's eventdb events.extra switched from type JSON to JSONB:
      https://github.com/certtools/intelmq/pull/2597
      directly use the JSONB type in the functions
  * github workflows:
    * update some actions for compatibility, update runners
    * fix package build script
    * update python versions: remove 3.7, add 3.8-3.13
    * use gpgme from pypi instead of compiling ourself

 -- Sebastian Wagner <swagner@intevation.de>  Wed, 30 Apr 2025 15:03:19 +0200

intelmq-mailgen (1.3.6-1) stable; urgency=medium

  * gnupg: set home dir with parameter, not env variable
  * Documentation:
    * add docs on format specs
    * small fixes
    * render API docs

 -- Sebastian Wagner <swagner@intevation.de>  Fri, 30 Aug 2024 18:54:13 +0200

intelmq-mailgen (1.3.5-2) stable; urgency=medium

  * ScriptContext: Handle self.templates = None and read from directory
    (default with intelmqmail cli interface).

 -- Sebastian Wagner <swagner@intevation.de>  Tue, 16 Jan 2024 16:32:08 +0100

intelmq-mailgen (1.3.5-1) stable; urgency=medium

  * allow setting default table format by calling scripts
    is used if the called script (template) does not set one
    set an internal fallback value, if neither a default is provided, nor
    the script sets a table format

 -- Sebastian Wagner <swagner@intevation.de>  Fri, 08 Sep 2023 12:19:14 +0200

intelmq-mailgen (1.3.4-1) stable; urgency=medium

  * notifications: fix bug when templates are given as parameter
    due to a variable name clash, the loop over all templates, has set the
    fallback_template to a string, causing a type error

 -- Sebastian Wagner <swagner@intevation.de>  Fri, 30 Jun 2023 17:11:41 +0200

intelmq-mailgen (1.3.3-1) stable; urgency=medium

  * Allow passing templates as parameters

 -- Sebastian Wagner <swagner@intevation.de>  Wed, 21 Jun 2023 15:11:50 +0200

intelmq-mailgen (1.3.2-1) stable; urgency=medium

  * Documentation available at http://intevation.github.io/intelmq-mailgen/
  * Enhancements to the library-mode:
    * Template can be passed as parameter to mailgen
    * dry run (simulation mode)
    * Preview mode: returning notifications as string to the caller instead of sending them via SMTP
    * `additional_directive_where` as parameter
    * Existing database connection can be passed as parameter to mailgen
  * Many small style and formatting fixes

 -- Sebastian Wagner <swagner@intevation.de>  Wed, 31 May 2023 15:55:13 +0200

intelmq-mailgen (1.3.1-1) stable; urgency=medium

  * use sys.exit instead of exit
  * `additional_directive_where`: allow to use events
  * new parameter additional_directive_where
  * add parameter --verbose for debug logging
  * add option to load custom config file per parameter
  * better help messages in program

 -- Sebastian Wagner <swagner@intevation.de>  Wed, 15 Mar 2023 11:28:24 +0100

intelmq-mailgen (1.3.0-3) stable; urgency=medium

  * Remove postgresql dependency. mailgen only needs the client on the same
    machine, not the server.
  * remove recommended python3-pyxarf, is unavailable
    fixes #45
  * Add pkg-resources as runtime dependency

 -- Sebastian Wagner <swagner@intevation.de>  Tue, 31 Jan 2023 09:51:07 +0100

intelmq-mailgen (1.3.0-2) stable; urgency=medium

  * Remove python package's dependency on 'gpg'.
    Due to a bug in python3-gpg of Ubuntu Focal, intelmqcbmail would always
    fail on start.
    See https://bugs.launchpad.net/ubuntu/+source/gpgme1.0/+bug/1977645

 -- Sebastian Wagner <swagner@intevation.de>  Wed, 15 Jun 2022 14:36:56 +0200

intelmq-mailgen (1.3.0-1) stable; urgency=medium

  * Add revision.

 -- Sebastian Wagner <swagner@intevation.de>  Fri, 10 Jun 2022 17:36:29 +0200

intelmq-mailgen (1.3.0) unstable; urgency=medium

  * Changed dependency to use the official Python GnuPG bindings
   and drop support for old pygpgme bindings.
  * Dropped support for Python `v<=3.5.*`
  * Make depending on `pyxarf` module optional.

 -- Sascha Wilde <wilde@intevation.de>  Mon, 24 May 2021 19:16:13 +0200

intelmq-mailgen (1.02) unstable; urgency=medium

  * Improve performance:
    - Assume newest inserted_at correlates to newest sent_at
  * Store timestamp of email Date header in sent

 -- Sascha Wilde <wilde@intevation.de>  Fri, 12 Jul 2019 10:04:01 +0200

intelmq-mailgen (1.01) unstable; urgency=medium

  * To improve speed, determine last_sent over the last month only
  * Allow log-level to be set for the intelmqmail.cb logger, too and add
    some more debug log output

 -- Sascha Wilde <wilde@intevation.de>  Thu, 27 Jun 2019 18:08:05 +0200

intelmq-mailgen (1.00~rc3) unstable; urgency=medium

  * Allow passing a logger instance to load_scripts.
    This is needed by current version of intelmq-certbund-contact

 -- Sascha Wilde <wilde@intevation.de>  Wed, 12 Sep 2018 15:45:25 +0200

intelmq-mailgen (1.00~rc2) unstable; urgency=medium

  * No microseconds in time stamps
  * Explicitly generate a Message-Id for notification mails
  * Make it easier to use items from the extra field in table formats

 -- Gernot Schulz <gernot@intevation.de>  Mon, 13 Aug 2018 16:12:56 +0200

intelmq-mailgen (1.00~rc1) unstable; urgency=medium

  * Enforce quoted-printable for text MIME parts.
    This enforces splitting of long lines on transport.
  * Start a new SMTP session more often.  This fixes problems with session
    Tmieouts when big amounts of directives are processerd in a batch.

 -- Sascha Wilde <Sascha Wilde <wilde@intevation.de>>  Wed, 07 Feb 2018 16:51:58 +0100

intelmq-mailgen (0.99~rc5) unstable; urgency=medium

  * Extended data format for avalanche.
  * Extended and improved documentation.

 -- Sascha Wilde <wilde@intevation.de>  Mon, 17 Jul 2017 17:55:25 +0200

intelmq-mailgen (0.99~rc4) unstable; urgency=medium

  * New release candidate
  * Update maintainer

 -- Gernot Schulz <gernot@intevation.de>  Fri, 16 Jun 2017 11:53:20 +0200

intelmq-mailgen (0.99~rc3) unstable; urgency=medium

  * Updates rules.

 -- Sascha Wilde <wilde@intevation.de>  Thu, 20 Apr 2017 13:07:57 +0200

intelmq-mailgen (0.99~rc2) unstable; urgency=high

  * CSV attachments
  * OpenPGP/MIME signatures

 -- Gernot Schulz <gernot@intevation.de>  Mon, 10 Apr 2017 15:53:10 +0200

intelmq-mailgen (0.99~rc1) unstable; urgency=high

  * The functionality from db-api was removed and moved to new repo (and
    package) intelmq-fody-api.
  * New notification concept.
  * Preliminary Xarf Support
  * New, more flexible configuration concept.

 -- Sascha Wilde <wilde@intevation.de>  Thu, 30 Mar 2017 15:16:39 +0200

intelmq-mailgen (0.95.1) unstable; urgency=low

  * Added Db-api backends for Fody to packaging.

 -- Sascha Wilde <wilde@intevation.de>  Mon, 06 Mar 2017 17:01:15 +0100

intelmq-mailgen (0.95) testing; urgency=medium

  * Release 0.95

 -- Sascha Wilde <wilde@intevation.de>  Tue, 31 Jan 2017 18:58:59 +0100

intelmq-mailgen (0.95~rc2) unstable; urgency=low

  * Added fix for #864 (Shadowserver Open-LDAP key mapping)

 -- Sascha Wilde <wilde@intevation.de>  Mon, 30 Jan 2017 18:10:51 +0100

intelmq-mailgen (0.95~rc1) unstable; urgency=low

  * Customer changes
  * Work with current intelmq

 -- Sascha Wilde <wilde@intevation.de>  Fri, 27 Jan 2017 12:47:18 +0100

intelmq-mailgen (0.95~beta2) unstable; urgency=low

  * Removed amplification field from cvs in mssql report.

 -- Sascha Wilde <wilde@intevation.de>  Mon, 21 Nov 2016 16:58:33 +0100

intelmq-mailgen (0.95~beta1) unstable; urgency=low

  * New release
  * Various fixes and refactoring.

 -- Sascha Wilde <wilde@intevation.de>  Fri, 18 Nov 2016 12:55:45 +0100

intelmq-mailgen (0.94~beta5) unstable; urgency=low

  * New release

 -- Gernot Schulz <gernot@intevation.de>  Tue, 09 Aug 2016 16:26:15 +0200

intelmq-mailgen (0.94~beta4) unstable; urgency=low

  * New release
  * Check for appropriate intelmq version

 -- Gernot Schulz <gernot@intevation.de>  Thu, 04 Aug 2016 16:06:24 +0200

intelmq-mailgen (0.94~beta2) unstable; urgency=low

  * New release
  * Add Open-MSSQL and Open-Mongo DB feed formats

 -- Gernot Schulz <gernot@intevation.de>  Mon, 18 Jul 2016 13:40:49 +0200

intelmq-mailgen (0.94~beta1) unstable; urgency=low

  * New release
  * Improved documentation
  * Simplified code to send mails with cvs data for a limited selection of
    feeds.

 -- Sascha Wilde <wilde@intevation.de>  Wed, 13 Jul 2016 17:21:59 +0200

intelmq-mailgen (0.94~alpha6) unstable; urgency=low

  * New release

 -- Bernhard Reiter <bernhard@intevation.de>  Fri, 08 Jul 2016 09:30:00 +0200

intelmq-mailgen (0.94~alpha5) unstable; urgency=medium

  * Add an example template

 -- Gernot Schulz <gernot@intevation.de>  Fri, 01 Jul 2016 18:25:40 +0200

intelmq-mailgen (0.94~alpha4) unstable; urgency=medium

  * New release

 -- Gernot Schulz <gernot@intevation.de>  Fri, 01 Jul 2016 11:07:30 +0200

intelmq-mailgen (0.94~alpha3) unstable; urgency=medium

  * New release (requires reinitialization of the notification table!)
  * Fix license information
  * Update maintainer information
  * Run tests when building package

 -- Gernot Schulz <gernot@intevation.de>  Tue, 21 Jun 2016 14:32:50 +0200

intelmq-mailgen (0.94~alpha2) unstable; urgency=medium

  * New upstream release

 -- Gernot Schulz <gernot@intevation.de>  Wed, 08 Jun 2016 13:10:52 +0200

intelmq-mailgen (0.94~alpha1) unstable; urgency=medium

  * New upstream release
  * New dependencies: gnupg2, python3-gpgme

 -- Gernot Schulz <gernot@intevation.de>  Fri, 03 Jun 2016 15:47:54 +0200

intelmq-mailgen (0.93~alpha1) unstable; urgency=medium

  * Mark as alpha again, as most functionality is still inkomplete.
  * Merged in xarf and related code changes.

 -- Sascha Wilde <wilde@intevation.de>  Fri, 27 May 2016 10:52:55 +0200

intelmq-mailgen (0.92~rc1) unstable; urgency=medium

  * Don't require both (user and system) configuration files.

 -- Sascha Wilde <wilde@intevation.de>  Mon, 25 May 2016 11:15:00 +0200

intelmq-mailgen (0.91~rc1) unstable; urgency=high

  * Added generic csv output for unknown classification types.

 -- Sascha Wilde <wilde@intevation.de>  Mon, 25 May 2016 10:43:00 +0200

intelmq-mailgen (0.90~rc2) unstable; urgency=low

  * Drop dependency on intelmq.

 -- Sascha Wilde <wilde@intevation.de>  Mon, 24 May 2016 11:44:37 +0200

intelmq-mailgen (0.90~rc1) unstable; urgency=low

  * New Release.

 -- Sascha Wilde <wilde@intevation.de>  Mon, 23 May 2016 15:46:37 +0200

intelmq-mailgen (0.90~alpha1) UNRELEASED; urgency=medium

  * Initial release. (2auto/issue20)

 -- Sascha Wilde <wilde@sha-bang.de>  Tue, 17 May 2016 16:48:03 +0200
