Thread (9 messages) flat view 9 messages, 4 authors, 2016-06-15

Re: [PATCH] send-email: allow use of basic email list in --cc --to and --bcc

From: Ramkumar Ramachandra <hidden>
Date: 2016-06-15 22:57:48

Jorge-Juan.Garcia-Garcia@ensimag.imag.fr wrote:
+sub split_email_list {
+    my(@list) = @_;
+    my @tmp;
+    my @emails;
+       for (my $i = 0; $i <= $#list; $i++) {
+           if ($list[$i] =~ /,/) {
+               @emails = split(/,/, $list[$i]);
+           } else {
+               @emails = $list[$i];
+           }
Perhaps use map like in sanitize_address_list and
validate_address_list to prettify this?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help