Commit Graph
100 Commits
Author SHA1 Message Date
Janos SUTO a5f005769f Revert "gui: fixing journal handling"
This reverts commit 1b7026dce6.
2018-12-23 19:50:14 +00:00
Janos SUTO 1412a77fee Added 2 journaled emails to the test set
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-12-23 19:49:12 +00:00
Janos SUTO 1b7026dce6 gui: fixing journal handling
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-12-15 22:11:14 +00:00
Janos SUTO 5f391ef9ef Fixing php unit tests
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-12-09 08:27:37 +00:00
Janos SUTO 37ba4e29b1 Moved integration tests to tests dir
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-12-09 08:24:05 +00:00
Janos SUTO 0659564b32 Moved php unit tests to unit_tests/php dir
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-12-09 08:24:05 +00:00
Janos SUTO 9898b749c7 Use TLS v1.2 in Zend protocols
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 22:27:44 +01:00
Janos SUTO 11a78de0c8 Fixed signedness of count_match()
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 21:54:44 +01:00
Janos SUTO 3cf2102238 refactor tests/SplitMessageTest.php
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 17:25:59 +01: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 53249db1eb Refactored rules.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 17:12:07 +01:00
Janos SUTO a3226764c6 Even more util refactoring
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 16:58:03 +01:00
Janos SUTO 8eb5dbe69a More util refactoring
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 16:35:41 +01:00
Janos SUTO 0f96713fe7 Refactored some utils
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 16:28:25 +01:00
Janos SUTO a4dc3deb36 refactored util/pilerpurge.py
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 16:03:01 +01:00
Janos SUTO e776eead0c refactored util/mailstat.php
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 15:59:02 +01:00
Janos SUTO 10bd6a17ce refactored echo in util/gmail-imap-import.php
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 15:55:18 +01:00
Janos SUTO 9c52194849 Refactored echo in util/generate_stats.php
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 15:53:17 +01:00
Janos SUTO 4a5e57816c Refactored unit tests
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 15:48:37 +01:00
Janos SUTO 78dd67613b Fixed init_ssl() name to init_ssl_to_server()
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 15:19:08 +01:00
Janos SUTO 2c3f29db44 use init_ssl from misc.c in unit_tests/smtp.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 15:14:41 +01:00
Janos SUTO d97e653e8c Removed code duplication from rules.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 15:02:54 +01:00
Janos SUTO 6e47f50ffd Removed code duplication from memc.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 14:57:55 +01:00
Janos SUTO ab488283ec Removing code duplicates from imap.c and pop3.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-11-03 14:31:02 +01:00
Janos SUTO 400f9f2ca4 Removed ?> from ru lang file
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-10-30 17:47:24 +00:00
Janos SUTO c92ad1bf7e improved logging in message.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-10-23 11:56:50 +00:00
Janos SUTO afa6fc7a7c Fix ctx initialization
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-10-17 07:26:46 +00: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 cb4b65a840 Even more refactoring for rules.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-10-17 06:56:50 +00:00
Janos SUTO 181febf950 Refactored query_retain_period()
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-10-17 06:47:43 +00:00
Janos SUTO c37a5f2084 Added -std=c99 to gcc options
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-10-16 08:56:11 +00:00
Janos SUTO 4f0dda34c2 Added http redirect to logout page to bring the user to the login after 5 secs
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-10-07 18:02:21 +00:00
Janos SUTO ef458a08f9 Added http_referer check for logged in users
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-10-06 15:53:45 +00:00
Janos SUTO 59c9a80964 Fixed pdf export
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-10-06 15:02:32 +00:00
Janos SUTO 47aa9e7cb0 Fixed gcc options for less warnings
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-10-06 16:31:02 +02:00
Janos SUTO 099fe93a87 Added wkhtmltopdf support
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-10-06 16:30:26 +02:00
Janos SUTO d6ab3d0c9a fixed a unit test
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-09-29 08:54:22 +02:00
Janos SUTO 084d578273 Removed unused data parameter from several functions
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-09-29 08:43:50 +02:00
Janos SUTO 2128ac8b8a Fixed #943
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-09-23 06:38:36 +00:00
Janos SUTO 6eaa70d991 Added salt to crypt()
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-09-09 16:15:49 +00:00
Janos SUTO eae385616f Added missing ldap port the 2nd new LDAP() call
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-09-09 14:53:29 +00:00
Janos SUTO 1ea62b8446 Added exception handling for gui imap auth
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-09-09 14:35:18 +00:00
Janos SUTO 4efe39b5f3 Added ldap port to gui
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-09-09 14:18:38 +00:00
Janos SUTO 5a96b65ead fix sql query for statistics gui feature
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-08-15 07:03:34 +00:00
Janos SUTO 38c8b67ef9 fixed cron.jobs
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-08-13 17:34:35 +00:00
Janos SUTO c669a10778 added systemd dir to SUBDIRS
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-08-13 17:30:55 +00:00
Janos SUTO 25676445e6 Added more debug info to move_email()
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-08-09 09:23:47 +00:00
Janos SUTO 70c2580fdc Added systemd support
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-07-14 12:57:08 +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 bb6e0578b7 add return value check to system() call
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-07-12 05:53:26 +00:00
Janos SUTO 5d31891f87 pilerstats shows the delta between now and the last archived email
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-07-11 06:18:39 +00:00
Janos SUTO c5959f79c4 Fixed attachment name parsing
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-07-10 11:18:19 +00:00
Janos SUTO 3088b4c401 remove trailing whitespace from unit_tests/check_attachments.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-06-24 14:44:34 +02: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 fb7aef0ddf minor bdat fix
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-06-24 14:08:09 +02:00
Janos SUTO ab001f985f add soname info to libpiler.so.0.1.1
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-06-13 15:07:19 +02:00
Janos SUTO 2e2d04914f make install copies webui to piler localstatedir
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-06-10 18:41:42 +02:00
Janos SUTO ac49647fc3 bdat fixes
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-05-13 16:48:20 +02:00
Janos SUTO a0fb4137a5 fix bdat command detection
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-05-13 15:32:11 +02:00
Janos SUTO 65cd19b047 fix smtp.c logging
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-05-13 15:18:48 +02:00
Janos SUTO 59eabf194b fixed typo in setting session fd
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-05-13 14:59:59 +02:00
Janos SUTO 0d7d1f9ff7 added fd to received line logging
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-05-13 14:57:13 +02:00
Janos SUTO f9a0dee5c4 fix logging the descriptor for smtp chat
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-05-13 14:47:47 +02:00
Janos SUTO 97830bc265 revised bdat support
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-05-13 14:26:21 +02:00
Janos SUTO 41777063f0 added missing $ to variable name
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-05-13 09:04:49 +02:00
Janos SUTO 2331cd7546 check local auth first, then remote auth methods, eg. imap, pop3, ...
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-05-13 08:53:16 +02:00
Janos SUTO d975966a7a Fix a bug preventing password change for local users
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-05-10 09:26:38 +02:00
Janos SUTO fb6675eb73 add extra logging if accept() fails
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-05-03 13:08:05 +02:00
Janos SUTO 462063fc26 gui: do not show the monitor / statistics menu in case an external dashboard is set
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-04-15 20:31:57 +02:00
Janos SUTO 4a7ec5d41d gui: add support for external dashboard
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-04-15 18:42:34 +02:00
Janos SUTO c3f4f2148c postinstall.sh.in minor fixes
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-31 19:29:39 +02:00
Janos SUTO e7ea15594a fixed config-site.php reference in config.php
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-30 14:17:06 +02:00
Janos SUTO 4487d6948f make use bash instead of sh for top level Makefile
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-30 08:25:45 +02:00
Janos SUTO 58e9b809c9 gui: add isset test for date header fixing
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-30 08:09:35 +02:00
Janos SUTO c12a876e59 Fixed #758: sphinx index watcher
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-18 13:54:13 +01:00
Janos SUTO c918ad2a66 fix handling partial lines in DATA stage
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-17 17:32:32 +01:00
Janos SUTO f2853b9f18 logging fix for piler-smtp.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-13 15:22:51 +01:00
Janos SUTO 0e116cfd6e improved logging for piler-smtp.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-13 14:50:49 +01:00
Janos SUTO e5262ff935 Added smtp response time in ms to stats.c output
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-11 17:06:49 +01:00
Janos SUTO c3a36dc213 improved signal logging for piler-smtp.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-11 09:01:34 +01:00
Janos SUTO 9997c10b4e fixed a leaking file descriptor in extract_attachment_content()
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-06 20:57:54 +01:00
Janos SUTO 15c9fa7101 Retire piler child after processing max_requests_per_child messages
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-06 14:42:07 +01:00
Janos SUTO ae1d551db4 Added more signals to result p_clean_exit()
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-06 11:59:24 +01:00
Janos SUTO 2ca822c689 fix buffering issue introduced with the simplifed handle_data()
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-04 20:16:30 +01:00
Janos SUTO 1d0019ff35 simplified handle_data()
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-04 19:50:37 +01:00
Janos SUTO a48e3c74df fix opendocument text extraction
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-04 13:21:19 +01: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 2cfd5ece53 db: fixing database schema #2
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-03 11:05:50 +01:00
Janos SUTO 06bc6fb15c db: fixing database schema
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-03 10:54:37 +01:00
Janos SUTO 6939b7fe45 added missing include file to test.c
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-03 10:37:19 +01:00
Janos SUTO e18ec3a701 revised smtp protocol handling
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-03-02 22:46:48 +01:00
Janos SUTO 52d44ddee1 added option to specify a different config file for pilertest
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-28 14:19:58 +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 91074ed617 gui: remove X-Piler-Envelope-To: header lines for non auditor users
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-21 14:56:38 +01:00
Janos SUTO a815d1b60f write only envelope to if it's not on @hostname
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-21 13:55:05 +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 abe2849ace fix writing envelope recipients to eml file
Signed-off-by: Janos SUTO <sj@acts.hu>
2018-02-20 20:03:20 +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