Changeset 443

Show
Ignore:
Timestamp:
2006-02-25 03:54:38 (7 months ago)
Author:
zerodeux
Message:

fixed email envelope (added To and Cc fields)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tracreminderscript/0.9/ChangeLog

    r441 r443  
     12006-02-24 17:53  Vincent Caron <vcaron@bearstech.com> 
     2 
     3        * now properly fill in To and Cc fields (Mailman rightly complained) 
     4 
    152006-02-23 16:06  Vincent Caron <vcaron@bearstech.com> 
    26 
  • tracreminderscript/0.9/trac-reminder

    r441 r443  
    4040IFS=$'\n' 
    4141for t in $tickets; do 
    42   row=`echo "$t" | sed -e 's:^\([0-9]\+\):<a href="'$url'/trac/ticket/\1">#\1</a>:' -e 's:|:</td>\n    <td>:g'` 
     42  row=`echo -n "$t" | sed -e 's:^\([0-9]\+\):<a href="'$url'/trac/ticket/\1">#\1</a>:' -e 's:|:</td>\n    <td>:g'` 
    4343        html="$html  <tr> 
    4444    <td>$row</td> 
     
    4747done 
    4848 
    49 # Send news 
     49# Send news. Properly fill in RFC 822 fields (especially To and Cc). 
    5050shift 
    51 sendmail $* <<EOD 
     51all="$@" 
     52to=`echo -n "$all" | sed -e 's: :\nCc\: :'` 
     53sendmail $all <<EOD 
     54To: $to 
     55Subject: Trac reminder: list of new ticket(s) 
    5256MIME-Version: 1.0 
    5357Content-Type: text/html 
    54 Subject: Trac reminder: list of new ticket(s) 
    5558 
    5659<table>