<<< Date Index >>>     <<< Thread Index >>>

[Mutt] #3449: mutt crashes when running a macron



#3449: mutt crashes when running a macron
-------------------------+--------------------------------------------------
 Reporter:  vadud3       |       Owner:  mutt-dev
     Type:  defect       |      Status:  new     
 Priority:  major        |   Milestone:          
Component:  mutt         |     Version:  1.5.20  
 Keywords:  ubuntu mutt  |  
-------------------------+--------------------------------------------------
 mutt crashes when I run this macro

 macro index S '<pipe-message>/home/axisys/.mutt/script/reportspam.sh<enter
 ><delete-message>'

 Here is the script
 #!/bin/bash
 # take the email and send it as attachment to abuse
 # save to tmp file
 spam=$(tempfile -s .eml)
 ABUSE=abuse@xxxxxxxxxxx

 cat > "$spam"

 # use formail to extract subject (could use grep in a pinch)
 subj=$(formail -x subject < $spam)

 if [ ! -z "$spam" ]; then
        mutt -e 'set from=user@xxxxxxxxxxx' -s "[spam]$subj" -a $spam
 -- "$ABUSE"
 fi
 rm "$spam"

 Here is the segfault from `dmesg'


 Here is the segfault in `dmesg'

 http://pastebin.com/29JuFUCv

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3449>
Mutt <http://www.mutt.org/>
The Mutt mail user agent