Strip incoming email subject?

I changed the mbox/importer.rb using the corrected RegEx and also tried a static replace string without any change of the incoming topics.

I’ll try to clarify:

  • I subscribed the email-adress of the related dicourse category (custom address for incoming e-mails; √ category mirrors mailing-list) to the existing mailing-list
  • discourse receives this mails and creates according topics
  • as the mailing-list adds a prefix to the email-subject, I want to remove it before discourse creates the topic

My questions now

  1. is ./script/import_scripts/mbox/importer.rb the correct importer?
  2. is the .gsub("remove this prefix ","") syntaxt right?

I tried
mapped[:title] = row['subject'].strip[0...255].gsub(/^\[(.*?)\]\s/,"")

So far it didn’t change anything…
Thanks again.