[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sup-talk] Adding string to 'missing attachment detection'
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.
--
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk