keltia / dmarc-cat

Small utility to decode the report sent by various email providers following the DMARC spec
Other
62 stars 13 forks source link

`-t` required in non-stdin mode #5

Open kyrias opened 4 years ago

kyrias commented 4 years ago

dmarc-cat currently always uses -t/fType to decide what kind of compression is in use whenever it isn't in the non-standard .zip format, even when you specify a filename.

themactep commented 3 years ago

I believe this fixes the issue. https://github.com/themactep/dmarc-cat/commit/7df667c7f49ac06921e4ed3c0056ccbb2616e879

the-voidl commented 3 years ago

Neverless dmarc-cat only gets file name from zip files. Wouldn't it be nice to determine standard .gz files?

keltia commented 2 years ago

@themactep you didn't open a PR so I just took your commit with attribution.

To all: I must improve type detection/choices, agreed.

keltia commented 2 years ago

Neverless dmarc-cat only gets file name from zip files. Wouldn't it be nice to determine standard .gz files?

I have only the filename to work with but yes I can do better.