Changeset 8069 for lang/perl/App-MadEye

Show
Ignore:
Timestamp:
03/18/08 12:19:55 (9 months ago)
Author:
tokuhirom
Message:

subject を設定可能にした

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/App-MadEye/trunk/lib/App/MadEye/Plugin/Notify/Email.pm

    r8032 r8069  
    1111 
    1212    my $conf = $self->{config}->{config}; 
     13    my $subject   = $conf->{subject} || '%s alert !!!'; 
    1314    my $from_addr = $conf->{from_addr} or die "missing from_addr"; 
    1415    my $to_addr   = $conf->{to_addr} or die "missing to_addr"; 
     
    2021            'To'        => $from_addr, 
    2122            'From'      => $to_addr, 
    22             'Subject'   => "$plugin alert !!!", 
     23            'Subject'   => sprintf($subject, $plugin), 
    2324            'Data'      => $self->_format( $plugin, $results ), 
    2425        ); 
     
    5152    type: map 
    5253    mapping: 
     54        subject: 
     55            type: str 
     56            required: no 
    5357        from_addr: 
    5458            type: str