⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newchangedmail.txt.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1178795652',        'name' => 'email/newchangedmail.txt.tmpl',    },    BLOCK => sub {        my $context = shift || die "template sub called without context\n";        my $stash   = $context->stash;        my $output  = '';        my $_tt_error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n";    #line 22 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\nFrom: ";    #line 23 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['Param', [ 'mailfrom' ]]);    $output .=  "\nTo: ";    #line 24 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('to');    $output .=  "\nSubject: [";    #line 25 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['terms', 0, 'Bug', 0]);    $output .=  " ";    #line 25 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('bugid');    $output .=  "] ";    #line 25 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('neworchanged');    #line 25 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('summary');    $output .=  "\nX-Bugzilla-Reason: ";    #line 26 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('reasonsheader');    $output .=  "\nX-Bugzilla-Type: newchanged\nX-Bugzilla-Watch-Reason: ";    #line 28 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('reasonswatchheader');    $output .=  "\nX-Bugzilla-Product: ";    #line 29 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('product');    $output .=  "\nX-Bugzilla-Component: ";    #line 30 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('comp');    $output .=  "\nX-Bugzilla-Keywords: ";    #line 31 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('keywords');    $output .=  "\nX-Bugzilla-Severity: ";    #line 32 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('severity');    $output .=  "\nX-Bugzilla-Who: ";    #line 33 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('changer');    $output .=  "\nX-Bugzilla-Status: ";    #line 34 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('status');    $output .=  "\nX-Bugzilla-Priority: ";    #line 35 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('priority');    $output .=  "\nX-Bugzilla-Assigned-To: ";    #line 36 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('assignedto');    $output .=  "\nX-Bugzilla-Target-Milestone: ";    #line 37 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('targetmilestone');    $output .=  "\nX-Bugzilla-Changed-Fields: ";    #line 38 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('changedfields');    $output .=  "\n";    #line 39 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('threadingmarker');    $output .=  "\n\n";    #line 41 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['Param', [ 'urlbase' ]]);    $output .=  "show_bug.cgi?id=";    #line 41 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('bugid');    $output .=  "\n\n";    #line 43 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get('diffs');    $output .=  "\n\n-- \nConfigure ";    #line 46 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  "mail: ";    #line 46 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['Param', [ 'urlbase' ]]);    $output .=  "userprefs.cgi?tab=email\n------- You are receiving this mail because: -------";    #line 63 "template\en\default\email\newchangedmail.txt.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('reasons');                unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {            $_tt_list = Template::Config->iterator($_tt_list)                || die $Template::Config::ERROR, "\n";         }            ($_tt_value, $_tt_error) = $_tt_list->get_first();        eval { $_tt_oldloop = $stash->get('loop') };        $stash->set('loop', $_tt_list);        eval {    LOOP:   while (! $_tt_error) {                $stash->{'relationship'} = $_tt_value;    #line 62 "template\en\default\email\newchangedmail.txt.tmpl"        # SWITCH    do {        my $_tt_result = $stash->get('relationship');        my $_tt_match;        SWITCH: {    $_tt_match = '0';    $_tt_match = [ $_tt_match ] unless ref $_tt_match eq 'ARRAY';    if (grep(/^\Q$_tt_result\E$/, @$_tt_match)) {    $output .=  "\nYou are the assignee for the ";    #line 51 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".";        last SWITCH;    }    $_tt_match = '2';    $_tt_match = [ $_tt_match ] unless ref $_tt_match eq 'ARRAY';    if (grep(/^\Q$_tt_result\E$/, @$_tt_match)) {    $output .=  "\nYou reported the ";    #line 53 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".";        last SWITCH;    }    $_tt_match = '1';    $_tt_match = [ $_tt_match ] unless ref $_tt_match eq 'ARRAY';    if (grep(/^\Q$_tt_result\E$/, @$_tt_match)) {    $output .=  "\nYou are the QA contact for the ";    #line 55 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".";        last SWITCH;    }    $_tt_match = '3';    $_tt_match = [ $_tt_match ] unless ref $_tt_match eq 'ARRAY';    if (grep(/^\Q$_tt_result\E$/, @$_tt_match)) {    $output .=  "\nYou are on the CC list for the ";    #line 57 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".";        last SWITCH;    }    $_tt_match = '4';    $_tt_match = [ $_tt_match ] unless ref $_tt_match eq 'ARRAY';    if (grep(/^\Q$_tt_result\E$/, @$_tt_match)) {    $output .=  "\nYou are a voter for the ";    #line 59 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".";        last SWITCH;    }    $_tt_match = '5';    $_tt_match = [ $_tt_match ] unless ref $_tt_match eq 'ARRAY';    if (grep(/^\Q$_tt_result\E$/, @$_tt_match)) {    $output .=  "\nYou are watching all ";    #line 61 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  " changes.";        last SWITCH;    }            }    };    ;                ($_tt_value, $_tt_error) = $_tt_list->get_next();            }        };        $stash->set('loop', $_tt_oldloop);        die $@ if $@;        $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;        die $_tt_error if $_tt_error;    };        #line 77 "template\en\default\email\newchangedmail.txt.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('reasons_watch');                unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {            $_tt_list = Template::Config->iterator($_tt_list)                || die $Template::Config::ERROR, "\n";         }            ($_tt_value, $_tt_error) = $_tt_list->get_first();        eval { $_tt_oldloop = $stash->get('loop') };        $stash->set('loop', $_tt_list);        eval {    LOOP:   while (! $_tt_error) {                $stash->{'relationship'} = $_tt_value;    #line 76 "template\en\default\email\newchangedmail.txt.tmpl"        # SWITCH    do {        my $_tt_result = $stash->get('relationship');        my $_tt_match;        SWITCH: {    $_tt_match = '0';    $_tt_match = [ $_tt_match ] unless ref $_tt_match eq 'ARRAY';    if (grep(/^\Q$_tt_result\E$/, @$_tt_match)) {    $output .=  "\nYou are watching the assignee of the ";    #line 67 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".";        last SWITCH;    }    $_tt_match = '2';    $_tt_match = [ $_tt_match ] unless ref $_tt_match eq 'ARRAY';    if (grep(/^\Q$_tt_result\E$/, @$_tt_match)) {    $output .=  "\nYou are watching the reporter.";        last SWITCH;    }    $_tt_match = '1';    $_tt_match = [ $_tt_match ] unless ref $_tt_match eq 'ARRAY';    if (grep(/^\Q$_tt_result\E$/, @$_tt_match)) {    $output .=  "\nYou are watching the QA contact of the ";    #line 71 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".";        last SWITCH;    }    $_tt_match = '3';    $_tt_match = [ $_tt_match ] unless ref $_tt_match eq 'ARRAY';    if (grep(/^\Q$_tt_result\E$/, @$_tt_match)) {    $output .=  "\nYou are watching someone on the CC list of the ";    #line 73 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".";        last SWITCH;    }    $_tt_match = '4';    $_tt_match = [ $_tt_match ] unless ref $_tt_match eq 'ARRAY';    if (grep(/^\Q$_tt_result\E$/, @$_tt_match)) {    $output .=  "\nYou are watching a voter for the ";    #line 75 "template\en\default\email\newchangedmail.txt.tmpl"    $output .=  $stash->get(['terms', 0, 'bug', 0]);    $output .=  ".";        last SWITCH;    }            }    };    ;                ($_tt_value, $_tt_error) = $_tt_list->get_next();            }        };        $stash->set('loop', $_tt_oldloop);        die $@ if $@;        $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;        die $_tt_error if $_tt_error;    };        $output .=  "\n";        } };        if ($@) {            $_tt_error = $context->catch($@, \$output);            die $_tt_error unless $_tt_error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {    },});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -