Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sympa
sympa
Commits
c5320263
Unverified
Commit
c5320263
authored
Nov 13, 2019
by
IKEDA Soji
Committed by
GitHub
Nov 13, 2019
Browse files
Merge pull request #779 from ikedas/issue-604 by ikedas
Make storage into outgoing spool more efficient (#604)
parents
26b4a546
443d5a43
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/Spool/Outgoing.pm
View file @
c5320263
...
...
@@ -326,6 +326,15 @@ sub _get_recipient_tabs_by_domain {
return
unless
@rcpt
;
# Sort by domain.
@rcpt
=
map
{
join
'
@
',
grep
{
defined
$_
}
@$_
;
}
sort
{
((
$a
->
[
1
]
//
'')
cmp
(
$b
->
[
1
]
//
''))
||
(
$a
->
[
0
]
cmp
$b
->
[
0
])
}
map
{
[
split
/\@/
,
$_
,
2
]
}
@rcpt
;
my
(
$i
,
$j
,
$nrcpt
);
my
$size
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment