Commit Graph

144 Commits

Author SHA1 Message Date
Janos SUTO
611260fd7e openssl refactor of digest handling
Signed-off-by: Janos SUTO <sj@acts.hu>
2022-09-14 20:08:59 +02:00
Janos SUTO
eb2b22b2bc Fixed parser to properly handle Received: lines
Signed-off-by: Janos SUTO <sj@acts.hu>
2022-05-28 13:04:55 +02:00
Janos SUTO
c274e21823 Fixed handling of the extra_to_field header
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-12-16 10:40:26 +01:00
Janos SUTO
e3973144b4 Improved html parsing
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-12-09 11:27:51 +01:00
Janos SUTO
959b729a6e Improved Message-ID parsing
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-12-09 11:02:24 +01:00
Janos SUTO
aea0cf865d Fixed date header parsing
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-10-30 18:40:46 +02:00
Janos SUTO
4ce49d6bc2 Fixed parsing the received lines
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-08-14 19:15:07 +02:00
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
be39146fd2 PVS Studio refactoring
Signed-off-by: Janos SUTO <sj@acts.hu>
2021-04-18 20:19:26 +02: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
535a4aa61c Added security header feature
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-11-26 19:01:45 +01:00
Janos SUTO
2d084e17d8 Attachment filename is added to the indexed body
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-10-24 18:47:10 +02:00
Janos SUTO
345fd715f5 cppcheck refactoring
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-08-10 20:58:34 +02:00
Janos SUTO
a01a3b9eb5 Fixed parser issue for attachment directly in the email, no mime
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-03-14 07:43:19 +01:00
Janos SUTO
d687fa16ab Code cleanup
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-03-03 15:47:02 +01:00
Janos SUTO
4c0030b636 Removed unused *q variable
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-02-16 10:33:21 +01:00
Janos SUTO
5a548be06c Moved tokenization code to tokenizer.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-02-16 10:15:11 +01:00
Janos SUTO
77eaf64050 A minor fix for check_against_...
Signed-off-by: Janos SUTO <sj@acts.hu>
2019-01-13 15:22:27 +00:00
Janos SUTO
4c4e1b52b3 Fix #957 missing extra recipient address
Signed-off-by: Janos SUTO <sj@acts.hu>
2019-01-13 13:40:01 +00:00
Janos SUTO
0e585cf2ca Refactored parser.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 17:12:20 +01:00
Janos SUTO
2d0beab92a Fixed signed vs. unsigned comparisons
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-10-17 07:26:07 +00:00
Janos SUTO
f72a87ca60 use proper boundary checking for to_domain string
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-07-12 20:16:08 +00:00
Janos SUTO
3ce983bb37 fix bcc address handling
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-06-24 14:40:18 +02:00
Janos SUTO
553d7e92c0 truncate extremely long from address and message_id
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-03 11:20:55 +01:00
Janos SUTO
e284d15801 reset rcpt_domain hash as well for journaled messages after the journal header is found
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-26 17:38:17 +01:00
Janos SUTO
b9f6f3627a add only envelope recipients to the beginning of email in case of process_rcpt_to_addresses=1
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-20 21:47:08 +01:00
Janos SUTO
30b50f72c5 parser fix for envelope addresses
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-20 21:09:08 +01:00
Janos SUTO
f88740ad9b envelope header fix for piler
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-20 20:35:31 +01:00
Janos SUTO
e0e59d2e74 write envelope addresses to the beginning of email message file
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-20 15:59:21 +01:00
Janos SUTO
4be9f7dcc4 parser: handle properly if there is no filename in content-type mime header
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-06 19:55:17 +01:00
Janos SUTO
3e22fbfd76 parser: fix multiline attachment name
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-04 10:50:42 +01:00
Janos SUTO
723f0b5c5f additional parser fix
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-01-11 09:59:58 +01:00
Janos SUTO
631e8de191 src: fix html parsing + added amazon journaling support
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-09-06 19:55:30 +02:00
Janos SUTO
950211687f src: refactoring
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-08-08 15:34:45 +02:00
Janos SUTO
0cf7bfa04a parser: remove isHexNumber() function
Signed-off-by: Janos SUTO <sj@acts.hu>
2017-06-13 19:46:48 +00:00
SJ
961ae7afee improved the search feature
Change-Id: Ia714ffade38edc9dd19b70ba37f996e6705ce057
Signed-off-by: SJ <sj@acts.hu>
2017-05-06 20:15:41 +02:00
SJ
71f0af9bb2 parser: fixed aaa+bbb@aaa.fu recipient address
Change-Id: I56b8065edc1a2efb371911236108acbbdb051233
Signed-off-by: SJ <sj@acts.hu>
2017-03-05 21:16:18 +01:00
SJ
d04776fb5f journal fix
Change-Id: I4b4f4e8e6924d0f5c910ddd2affee7b0841d93b5
Signed-off-by: SJ <sj@acts.hu>
2016-05-30 10:17:54 +02:00
SJ
c2e7a94b4e fixing spam header recognition
Signed-off-by: SJ <sj@acts.hu>
2016-05-05 21:13:45 +02:00
SJ
65fc0b377e added reimport option for pilerimport 2016-04-05 21:10:09 +02:00
SJ
b9a3f8d7c0 fixed a multiline subject header decoding issue 2016-03-14 21:26:18 +01:00
SJ
b05ddbf571 refactoring 2015-12-29 21:14:19 +01:00
SJ
d261cc98de parser fix 2015-12-29 15:09:54 +01:00
SJ
dd83ee8fb1 code cleanup 2015-12-28 13:28:19 +01:00
SJ
b0c97aa129 added a few unit tests 2015-11-27 12:17:19 +01:00
SJ
aefd7ccba4 code cleanup 2015-11-21 23:06:47 +01:00