|
9 | 9 | # Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
|
10 | 10 | # 2006, 2007, 2008, 2009, 2010, 2011 Comite Reseau des Universites
|
11 | 11 | # Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016, 2017 GIP RENATER
|
12 |
| -# Copyright 2017, 2018, 2019, 2020, 2021, 2022, 2023 The Sympa Community. |
| 12 | +# Copyright 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 The Sympa Community. |
13 | 13 | # See the AUTHORS.md file at the top-level directory of this distribution
|
14 | 14 | # and at <https://github.com/sympa-community/sympa.git>.
|
15 | 15 | #
|
@@ -7626,7 +7626,7 @@ sub do_distribute {
|
7626 | 7626 | # Don't need to do anything if all messages were filtered out
|
7627 | 7627 | # by the "already_moderated" clause above.
|
7628 | 7628 | return 'modindex' if (@mail_command == 0);
|
7629 |
| - |
| 7629 | + |
7630 | 7630 | # Commands are injected into incoming spool directly with "md5"
|
7631 | 7631 | # authentication level.
|
7632 | 7632 | my $cmd_message = Sympa::Message->new(
|
@@ -15523,7 +15523,8 @@ sub do_arc_download {
|
15523 | 15523 | my $string = $message->as_string =~ s/\r?\n/\r\n/gr;
|
15524 | 15524 | if ($Archive::Zip::SimpleZip::VERSION) {
|
15525 | 15525 | $rv = $zip->addString($string,
|
15526 |
| - Name => sprintf('%s/%s.eml', $arc_dirname, $handle->basename) |
| 15526 | + Name => |
| 15527 | + sprintf('%s/%s.eml', $arc_dirname, $handle->basename) |
15527 | 15528 | );
|
15528 | 15529 | $az = $Archive::Zip::SimpleZip::SimpleZipError;
|
15529 | 15530 | } else {
|
@@ -16680,21 +16681,21 @@ sub do_invite {
|
16680 | 16681 | if ($in{'email'}) {
|
16681 | 16682 | @emails =
|
16682 | 16683 | grep {$_} map { Sympa::Tools::Text::canonic_email($_) }
|
16683 |
| - split /\0/, $in{'email'}; |
16684 |
| - $log->syslog('info', 'single invite "%s"', join(' ',@emails)); |
| 16684 | + split /\0/, $in{'email'}; |
| 16685 | + $log->syslog('info', 'single invite "%s"', join(' ', @emails)); |
16685 | 16686 | unless (@emails) {
|
16686 | 16687 | add_stash('user', 'no_email');
|
16687 | 16688 | return 'review';
|
16688 | 16689 | }
|
16689 |
| - } else { # addresses for multiple users (from import.tt2) are $in{dump} |
| 16690 | + } else { # addresses for multiple users (from import.tt2) are $in{dump} |
16690 | 16691 | foreach (split /\r\n|\r|\n/, $in{'dump'}) {
|
16691 | 16692 | next unless /\S/;
|
16692 | 16693 | next if /\A\s*#/; #FIXME: email address can contain '#'
|
16693 | 16694 |
|
16694 | 16695 | my ($email) = m{\A\s*(\S+)(?:\s+(.*))?\s*\z};
|
16695 | 16696 | push @emails, $email;
|
16696 | 16697 | }
|
16697 |
| - $log->syslog('info', 'multiple invite "%s"', join(' ',@emails)); |
| 16698 | + $log->syslog('info', 'multiple invite "%s"', join(' ', @emails)); |
16698 | 16699 | unless (@emails) {
|
16699 | 16700 | add_stash('user', 'no_email');
|
16700 | 16701 | return 'import';
|
|
0 commit comments