Adam Cooke
5cc9eb3df7
refactor: move lib/postal/reply_separator to app/lib/reply_separator
2024-02-23 22:51:36 +00:00
Adam Cooke
321ab95936
refactor: move lib/postal/smtp_server to app/lib/smtp_server
2024-02-23 22:51:36 +00:00
Adam Cooke
73a55a5053
refactor: move senders in to app/senders/
2024-02-23 22:51:36 +00:00
Adam Cooke
eb246bb4e7
refactor: move app/util/* to app/lib/
2024-02-23 22:51:36 +00:00
Adam Cooke
93fc120f44
refactor: move worker from lib/worker to app/lib/worker
2024-02-23 22:51:36 +00:00
Adam Cooke
a44e1f9081
refactor: refactors message dequeueing ( #2810 )
2024-02-23 22:51:36 +00:00
Adam Cooke
07eb15246f
docs: update docs for how IP address allocation works
...
closes #2209
2024-02-23 22:51:35 +00:00
Adam Cooke
870b26c2f2
refactor: move Postal::QueryString to app/util/query_string
2024-02-23 22:51:35 +00:00
Adam Cooke
05d2ec4d04
refactor: move Postal::BounceMessage to app/models/bounce_message
2024-02-23 22:51:35 +00:00
Adam Cooke
77faf886b3
refactor: move Postal::DKIMHeader to app/util/dkim_header
2024-02-23 22:51:35 +00:00
Adam Cooke
8765d8e57a
test: add tests for DNSResolver
2024-02-23 22:51:35 +00:00
Adam Cooke
1a4158699c
refactor: refactor DNS resolution
...
This commit also adds some of tests for the Domain model. It was during the writing of these tests that the DNS resolution refactoring requirement became apparent.
2024-02-23 22:51:34 +00:00
Adam Cooke
2023200d91
test: add tests for Server model
2024-02-23 22:51:34 +00:00
Adam Cooke
8b61100082
test: additional tests for batched messages when unqueueing messages
2024-02-23 22:51:34 +00:00
Adam Cooke
27b7ced3bc
chore: remove non-breaking spaces from comments
2024-02-23 22:51:34 +00:00
Adam Cooke
b4016f6b49
test: add tests for message unqueueing
...
This adds a comprehensive set of tests for the message unqueueing service.
Additionally, it improves how message databases are used for testing environments.
2024-02-23 22:51:34 +00:00
Adam Cooke
e0403ba641
refactor: refactor webhook deliveries
2024-02-23 22:51:33 +00:00
Adam Cooke
dc8e895bfe
feat: new background work process
...
This removes all previous dependencies on RabbitMQ and the need to run separate cron and requeueing processes.
2024-02-23 22:51:33 +00:00
Adam Cooke
044058d0f1
feat: more consistent logging
2024-02-23 22:51:32 +00:00
Adam Cooke
6214892710
chore: annotate models
2024-02-13 11:46:35 +00:00
Adam Cooke
ec636661d5
style(rubocop): remaining offences
2024-02-12 09:55:20 +00:00
Adam Cooke
278ef0886a
style(rubocop): Lint/SuppressedException
2024-02-12 09:55:18 +00:00
Adam Cooke
bab6346239
style(rubocop): Lint/DuplicateMethods
2024-02-12 09:55:18 +00:00
Adam Cooke
a1dc0f77ac
style(rubocop): Lint/DuplicateBranch
2024-02-12 09:55:18 +00:00
Adam Cooke
9ce28a427f
style(rubocop): Style/SelectByRegexp
2024-02-12 09:55:18 +00:00
Adam Cooke
4674e63b5f
style(rubocop): Lint/MissingSuper
2024-02-12 09:55:15 +00:00
Adam Cooke
9563f30c96
style(rubocop): Naming/MemoizedInstanceVariableName
2024-02-12 09:40:34 +00:00
Adam Cooke
00a02f2655
style(rubocop): Style/SafeNavigation
2024-02-12 09:40:34 +00:00
Adam Cooke
04a34831c7
style(rubocop): Style/For
2024-02-12 09:40:34 +00:00
Adam Cooke
6a58ecf605
style(rubocop): Style/IdenticalConditionalBranches
2024-02-12 09:40:31 +00:00
Adam Cooke
6ad56ee9c9
style(rubocop): Lint/IneffectiveAccessModifier
2024-02-10 23:03:28 +00:00
Adam Cooke
c558f1c69c
style(rubocop): Style/NumericPredicate
2024-02-10 22:59:30 +00:00
Adam Cooke
7119e8642d
style(rubocop): Lint/ShadowingOuterLocalVariable
2024-02-10 22:51:09 +00:00
Adam Cooke
bd85920565
style(rubocop): Style/WordArray
2024-02-10 22:39:43 +00:00
Adam Cooke
129dffab9e
style(rubocop): Style/MutableConstant
2024-02-10 17:34:29 +00:00
Adam Cooke
a5d5ba5326
style(rubocop): Layout/MultilineMethodCallBraceLayout
2024-02-10 17:25:45 +00:00
Adam Cooke
ee94e4e1a0
style(rubocop): Lint/UnusedBlockArgument
2024-02-10 17:20:13 +00:00
Adam Cooke
7590a46234
style(rubocop): Lint/UselessAssignment
2024-02-10 17:18:24 +00:00
Adam Cooke
e142d0da5f
style(rubocop): Layout/LineLength
2024-02-10 17:18:23 +00:00
Adam Cooke
0e4ed5ca03
style(rubocop): Layout/EmptyLineAfterMagicComment
2024-02-10 17:18:23 +00:00
Adam Cooke
6ab36c09c9
style(rubocop): Style/FrozenStringLiteralComment
2024-02-10 17:18:22 +00:00
Adam Cooke
15f9671b66
feat: privacy mode
...
Adds support for hiding IP addresses & hostnames associated with clients sending
authenticated mail in to Postal over SMTP and HTTP
2024-02-07 09:45:09 +00:00
Adam Cooke
6b2bf9062d
fix: extract x-postal-tag before holding
...
closes #2684
2024-02-01 13:53:45 +00:00
Adam Cooke
71f51db3c2
fix: fixes error messages in web ui
2024-01-30 17:34:11 +00:00
Nitinkumar Balar
77bd77b629
fix: fixes typo in on track domains page
2024-01-30 08:41:01 +00:00
Adam Cooke
957b784658
chore: Upgrade to Ruby 3.2.1 & Rails 6.0
...
* chore: upgrade to rails 6.0
* chore: upgrade ruby to 3.2.1
* chore: upgrade bundler
* chore: upgrade execjs
* chore: upgrade to rails 6.1
* chore: switch to sentry-ruby from raven
* chore: add extra platforms to gemfile
2023-04-06 11:40:45 +01:00
Adam Cooke
b22f1bdb2e
fix: remove weird scrollbars ( #2391 )
2023-03-22 16:21:36 +00:00
Charlie Smurthwaite
c8d27b2963
Change retry and batching timing calculations ( #2371 )
...
This patch changes the requeue behaviour to requeue messages that are 30 seconds past their retry time.
Batching now includes messages that are any amount past their retry time.
This change avoids batching messages before theur graylisting time, but maintains efficient batching.
2023-03-22 14:02:28 +00:00
Charlie Smurthwaite
1e3622c49a
Consistently treat tinyint(1) fields in message database as booleans ( #2380 )
...
* Update mysql2 query call to cast booleans
* Treat messages:held field as boolean
* Treat messages:inspected field as boolean
* Treat messages:spam field as boolean
* Treat messages:threat field as boolean
* Treat messages:bounce field as boolean
* Treat messages:received_with_ssl field as boolean
* Treat deliveries:sent_with_ssl field as boolean
2023-03-22 13:49:48 +00:00
Charlie Smurthwaite
fd289c46fd
style(rubocop): fix all safe auto correctable offenses
2023-03-16 15:50:53 +00:00