Package Details: parsedmarc 6.12.0-1

Git Clone URL: (read-only, click to copy)
Package Base: parsedmarc
Description: Python package and CLI for parsing aggregate and forensic DMARC reports
Upstream URL:
Licenses: Apache
Submitter: flacks
Maintainer: None
Last Packager: thomas_niphba
Votes: 3
Popularity: 0.000000
First Submitted: 2018-08-23 21:39 (UTC)
Last Updated: 2021-01-03 21:45 (UTC)

Latest Comments

piater commented on 2022-07-03 18:06 (UTC) (edited on 2022-07-03 18:08 (UTC) by piater)

To fix the bad escape \d at position 7 bug leading to empty reports:


  • In depends, replace dateparser>=... by dateutil.
  • Add dateutil.patch to source, and 30e7d94081110b3e77882f673c6914429b99332adabf806b5a92432ee5a03df019ca3b4c4990573553231b3aefc1d4c778437cb3f9fcbb387e8ae96c0c4ca31d to sha512sums.


prepare() {
    cd "$srcdir/$pkgname-$_commit"
    patch --strip=1 --input=$srcdir/dateutil.patch

Add a file dateutil.patch containing:

diff --unified --recursive --text parsedmarc.orig/parsedmarc/
--- parsedmarc.orig/parsedmarc/ 2020-11-25 15:36:39.000000000 +0100
+++  2022-07-03 18:18:10.559619785 +0200
@@ -3,6 +3,7 @@
 import logging
 import os
 from datetime import datetime
+from datetime import timezone
 from datetime import timedelta
 from collections import OrderedDict
 import tempfile
@@ -17,7 +18,7 @@
 import mailbox
 import re

-import dateparser
+from dateutil.parser import parse as parse_date
 import dns.reversename
 import dns.resolver
 import dns.exception
@@ -239,12 +240,9 @@

     human_timestamp = human_timestamp.replace("-0000", "")
     human_timestamp = parenthesis_regex.sub("", human_timestamp)
-    settings = {}

-    if to_utc:
-        settings = {"TO_TIMEZONE": "UTC"}
-    return dateparser.parse(human_timestamp, settings=settings)
+    dt = parse_date(human_timestamp)
+    return dt.astimezone(timezone.utc) if to_utc else dt

 def human_timestamp_to_timestamp(human_timestamp):

android commented on 2021-03-21 02:06 (UTC)

python-codecov is still missing. I just commented it out in the PKGBUILD (in python-mailsuite too) Any idea what the consequences of no python-codecov are?

ashpie commented on 2021-02-02 14:43 (UTC)

python-codecov seems to have been deleted from the AUR. Any idea why? Is there a way to install it from another source?

bjo commented on 2021-01-03 20:15 (UTC)

Feel free to adopt the package :)

thomas_niphba commented on 2021-01-03 16:54 (UTC)

I have created an updated PKGBUILD for version 6.12.0. I would like to share with you.

flacks commented on 2019-09-01 23:39 (UTC) (edited on 2019-09-01 23:40 (UTC) by flacks)

lilmike, I have not tested parsedmarc with Python requirements explicitly marked as lesser-than versions, but we can induce that there are API incompatibilities with the newer libraries. Its not difficult to build the older/newer versions of Python packages not in the AUR - see the ABS, and, in the case of older packages, the respective packages' Git history. In my case, as of this writing, I haven't run into system-wide issues with the older/newer Python libraries.

lilmike commented on 2019-09-01 11:17 (UTC)

This package seems to depend on python-elasticsearch<7.0.0, and it is currently at 7.0.4. Would it be possible to update the PKGBUILD to support that version, or does the source on github itself not support it?

danieltetraquark commented on 2019-03-11 17:53 (UTC)

Could you maybe use the latest commit? There are several -git PKGBUILDs around here