مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
feat: add priorities to IP address assignment
هذا الالتزام موجود في:
@@ -10,6 +10,19 @@
|
||||
.fieldSet__field
|
||||
= f.label :hostname, :class => 'fieldSet__label'
|
||||
.fieldSet__input= f.text_field :hostname, :class => 'input input--text'
|
||||
.fieldSet__field
|
||||
= f.label :priority, :class => 'fieldSet__label'
|
||||
.fieldSet__input
|
||||
= f.text_field :priority, :class => 'input input--text', placeholder: '100'
|
||||
%p.fieldSet__text
|
||||
This priority will determine the likelihood of this IP address being selected
|
||||
for use when sending a message. The higher the number the more likely the IP
|
||||
is to be chosen. By defalt, the priority is set to the maximum value of 100.
|
||||
This can be used to warm up new IP addresses by adding them with a low priority.
|
||||
To give an indication of how this works, if you have three IPs with 1, 50 and 100
|
||||
as their priorities, and you send 100,000 emails, the priority 1 address will receive
|
||||
a tiny percentage, the priority 50 will receive roughly 25% and the priority 100 will
|
||||
receive roughly 75%.
|
||||
|
||||
.fieldSetSubmit.buttonSet
|
||||
= f.submit :class => 'button button--positive js-form-submit'
|
||||
|
||||
@@ -12,16 +12,19 @@
|
||||
%td IPv4
|
||||
%td IPv6
|
||||
%td Hostname
|
||||
%td Priority
|
||||
%tbody
|
||||
- if @ip_pool.ip_addresses.empty?
|
||||
- ips = @ip_pool.ip_addresses.order_by_priority
|
||||
- if ips.empty?
|
||||
%tr
|
||||
%td.dataTable__empty{:colspan => 3} There are no IP addresses assigned to this pool yet.
|
||||
- else
|
||||
- for ip in @ip_pool.ip_addresses
|
||||
- for ip in ips
|
||||
%tr
|
||||
%td{:width => "20%"}= link_to ip.ipv4, [:edit, @ip_pool, ip], :class => "u-link"
|
||||
%td{:width => "40%"}= ip.ipv6
|
||||
%td{:width => "40%"}= ip.hostname
|
||||
%td{:width => "35%"}= ip.ipv6
|
||||
%td{:width => "35%"}= ip.hostname
|
||||
%td{:width => "10%"}= ip.priority
|
||||
%p= link_to "Add an IP address to pool", [:new, @ip_pool, :ip_address], :class => "u-link"
|
||||
|
||||
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم