Commit Graph

654 Commits

Author SHA1 Message Date
Janos SUTO
a9f5562f63 Fixed message/rfc822 parsing
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-07-24 12:39:53 +02:00
Janos SUTO
b2a1666c41 If the calculated date based on Date: header line differs more than 1 week then override it with the data parsed from the first Received: line
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-07-20 13:00:53 +02:00
Janos SUTO
8ffcb6e664 Fixed adding extra recipient for pilerimport
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-07-19 18:07:49 +02:00
Janos SUTO
fbe7a76b65 Fixed dotstuff and while() loop when writing the buffer to disk
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-07-18 16:05:36 +02:00
Janos SUTO
4fd0fd25c5 Fixed reading a line from smtp data stage
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-07-11 17:26:03 +02:00
Janos SUTO
03c22264ea Fixed reindex percent calculation
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-07-11 14:09:16 +02:00
Janos SUTO
9745b078f5 Refactored pop3 download function to fix a dot stuffing error
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-07-03 16:21:48 +02:00
Janos SUTO
0b18c6060f Fixed handling dot stuffing in the DATA stage of the smtp chat
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-07-03 13:08:33 +02:00
Janos SUTO
62fcb37606 Get server_id from piler_id for utilities
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-07-02 10:37:15 +02:00
Janos SUTO
9360b429ce Fixed progressbar for reindex
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-07-02 10:25:19 +02:00
Janos SUTO
817df3c172 Added compat support for openssl 1.0.2 (most notably centos7)
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-06-28 19:39:18 +02:00
Janos SUTO
aab7b712d2 Introduced -Z option for pilerimport to add delay between importing emails
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-06-21 12:52:58 +02:00
Janos SUTO
83530e2036 duplicate detection went to a new function
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-06-02 20:20:10 +02:00
Janos SUTO
e92f7653d5 pilerimport should not use the mmap_dedup_test feature
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-06-02 20:16:21 +02:00
Janos SUTO
66a8f60d9d Print the sphinx query to stdout in dry run
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-05-04 05:37:02 +02:00
Janos SUTO
f268396233 pilerexport dryrun prints the total number of attachments as well
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-05-02 14:24:45 +02:00
Janos SUTO
13b10d5f3d If the Date: field contains some garbage return the current timestamp
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-04-22 13:45:05 +02:00
Janos SUTO
be39146fd2 PVS Studio refactoring
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-04-18 20:19:26 +02:00
Janos SUTO
5d479b732a Introduced the archive_address feature
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-04-17 07:40:13 +02:00
Janos SUTO
10544fe029 Improved zip export performance
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-04-12 05:16:56 +02:00
Janos SUTO
10309b9c25 reindex should cleanup its tempfiles
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-04-10 20:53:05 +02:00
Janos SUTO
e6607b0bf1 pilerexport should syslog the sphinx query
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-04-07 20:37:05 +02:00
Janos SUTO
105ff4110a Added support to set min. TLS protocol version
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-03-26 05:19:11 +01:00
Janos SUTO
5c2ceb178b Release of 1.3.11
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-02-23 07:26:47 +01:00
Janos SUTO
1283e33e50 Further improved the session timeout handling
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-02-22 05:25:19 +01:00
Janos SUTO
50a2328f64 Refactored epoll timeout check
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-02-22 05:25:05 +01:00
Janos SUTO
9856b92c22 Added debugging to track piler-smtp segfault issue
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-02-22 05:24:12 +01:00
Janos SUTO
0f2657275c Fixed tear_down_session()
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-02-09 08:55:47 +01:00
Janos SUTO
5d70881463 Added SMTP HELP command to piler-smtp
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-02-08 20:36:11 +01:00
Janos SUTO
cb56eaeaed Reset buffer in make_digests()
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-01-06 08:36:50 +01:00
Janos SUTO
99a4bf4819 Discard header-only message without a Message-ID line
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-01-04 15:57:45 +01:00
Janos SUTO
1288c9fed3 Refactored hbuf and sbuf in piler-smtp.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-28 20:39:43 +01:00
Janos SUTO
1e6a4b22c1 smtp acl fixes
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-28 20:31:11 +01:00
Janos SUTO
ed8fc2a6e8 Fixed smtp acl implementation
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-28 13:11:29 +01:00
Janos SUTO
c1150832dd Fixed header protection text for screen.h
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-28 11:30:11 +01:00
Janos SUTO
f8a32dd025 Introduced smtp acl
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-27 23:40:39 +01:00
Janos SUTO
fbb5aa8479 write to zip file requires libzip 1.x
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-24 15:57:29 +01:00
Janos SUTO
3729ed1ecf pilerimport can read data exported by pilerexport from stdin
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-20 22:01:34 +01:00
Janos SUTO
2b4f27372d Added -o option to pilerexport to print everything to stdout
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-18 22:42:16 +01:00
Janos SUTO
9dea29d783 pilertest should calculate retention timestamp starting from the sent timestamp
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-13 19:49:46 +01:00
Janos SUTO
61834843f1 Fixed sender domain check
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-13 08:52:52 +01:00
Janos SUTO
58a164467e Fixed unit tests for sender
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-13 08:36:12 +01:00
Janos SUTO
4b37b4fc1a Fixed from/sender processing
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-13 07:50:03 +01:00
Janos SUTO
d9d5f7db66 Handle the Sender: header line
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-12 21:43:16 +01:00
Janos SUTO
82f6d0c0cf Fixed typo for openssl 1.0.x EVP_bf_cbc()
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-04 19:38:21 +01:00
Janos SUTO
d2f3f018c0 Introduced new AES-256 encryption method for new emails
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-04 16:30:59 +01:00
Janos SUTO
613f25848d Keep a whitespace character when removing xml tags
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-04 14:07:25 +01:00
Janos SUTO
a35f8903f7 Reindex should process the attachments as well
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-04 13:59:47 +01:00
Janos SUTO
e8eb74d07a Fixed gz attachment type search in determine_attachment_type()
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-04 13:58:47 +01:00
Janos SUTO
2ed654c87f Prepend a random garbage block to the data to be encrypted
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-12-03 18:12:48 +01:00