Skip to content

[BUG] pilerimport imported an XML file #400

@larsen0815

Description

@larsen0815

Describe the bug
I accidentally didn't delete an XML file that had been created by the export of our previous mail archiving solution. pilerimport imported the file, and now it shows up in Piler:

Image

To Reproduce
Steps to reproduce the behavior:

  1. Place XML file nosubject.eml.xml.txt into the directory you will be importing files from
  2. pilerimport -d . -j /var/piler/tmp/failed_import -r

Expected behavior
pilerimport should inspect the file and see that it is not a proper EML file that could be imported, log a warning, and continue with the rest of the files (if any).

Piler version:
piler 1.4.8-652f50a3, Build Date: Mon Jan 12 14:02:37 UTC 2026
ldd version: ldd (Ubuntu GLIBC 2.39-0ubuntu8.6) 2.39
gcc version: gcc version 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04)
OS: Linux bbebad682a99 6.14.11-4-pve #1 SMP PREEMPT_DYNAMIC PMX 6.14.11-4 (2025-10-10T08:04Z) x86_64 x86_64 x86_64 GNU/Linux
Configure command: ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-database=mariadb
MySQL client library version: 3.3.16
Extractors: /usr/bin/pdftotext /usr/bin/catdoc /usr/bin/catppt /usr/bin/xls2csv /usr/bin/unrtf /usr/bin/tnef libzip

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions