.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Debbugs::Recipients 3pm" .TH Debbugs::Recipients 3pm "2018-02-26" "perl v5.26.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Debbugs::Recipients \-\- Determine recipients of messages from the bts .SH "SYNOPSIS" .IX Header "SYNOPSIS" .SH "DESCRIPTION" .IX Header "DESCRIPTION" .SH "BUGS" .IX Header "BUGS" None known. .SS "add_recipients" .IX Subsection "add_recipients" .Vb 3 \& add_recipients(data => $data, \& recipients => \e%recipients; \& ); .Ve .PP Given data (from read_bug or similar) (or an arrayref of data), calculates the addresses which need to receive mail involving this bug. .IP "data \*(-- Data from read_bug or similar; can be an arrayref of data" 4 .IX Item "data Data from read_bug or similar; can be an arrayref of data" .PD 0 .IP "recipients \*(-- hashref of recipient data structure; pass to subsequent calls of add_recipients or" 4 .IX Item "recipients hashref of recipient data structure; pass to subsequent calls of add_recipients or" .IP "debug \*(-- optional" 4 .IX Item "debug optional" .PD .SS "determine_recipients" .IX Subsection "determine_recipients" .Vb 4 \& my @recipients = determine_recipients(recipients => \e%recipients, \& bcc => 1, \& ); \& my %recipients => determine_recipients(recipients => \e%recipients,); \& \& # or a crazy example: \& send_mail_message(message => $message, \& recipients => \& [make_list( \& values %{{determine_recipients( \& recipients => \e%recipients) \& }}) \& ], \& ); .Ve .PP Using the recipient hashref, determines the set of recipients. .PP If you specify one of \f(CW\*(C`bcc\*(C'\fR, \f(CW\*(C`cc\*(C'\fR, or \f(CW\*(C`to\*(C'\fR, you will receive only a \&\s-1LIST\s0 of recipients which the main should be Bcc'ed, Cc'ed, or To'ed respectively. By default, a \s-1LIST\s0 with keys bcc, cc, and to is returned with \s-1ARRAYREF\s0 values corresponding to the users to whom a message should be sent. .IP "address_only \*(-- whether to only return mail addresses without reasons or realnamesq" 4 .IX Item "address_only whether to only return mail addresses without reasons or realnamesq" .PP Passing more than one of bcc, cc or to is a fatal error. .SH "PRIVATE FUNCTIONS" .IX Header "PRIVATE FUNCTIONS" .SS "_add_address" .IX Subsection "_add_address" .Vb 6 \& _add_address(recipients => $param{recipients}, \& address => $addmaint, \& reason => $param{data}{package}, \& bug_num => $param{data}{bug_num}, \& type => \*(Aqcc\*(Aq, \& ); .Ve