Excerpts from Tero Tilus's message of 2011-10-06 14:17:30 +0200: > Philipp Überbacher, 2011-10-06 10:04: > > the time to dig deep enough into ruby and sup either. I see that > > http://sup.rubyforge.org/wiki/wiki.pl?Hooks lists such a hook but sadly > > no example. > > Oh my! Need to fix it. My ~/.sup/hooks/mentions-attachments looks like > > body.any? { |l| l =~ /^[^>]/ && l =~ > /\b(attach|liite|liittee|ohessa|oheise|oheist)[^ ]*\b/i } > > Not pretty but works.
Thanks, this works. I don't understand what this line is doing but it looks very similar in the source and this line is simply easier to hack for me, so I go with this solution. Thanks for sharing, Philipp _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk