+ if (! thread->subject) {
+ const char *subject;
+
+ subject = notmuch_message_get_header (message, "subject");
+
+ if ((strncasecmp (subject, "Re: ", 4) == 0) ||
+ (strncasecmp (subject, "Aw: ", 4) == 0) ||
+ (strncasecmp (subject, "Vs: ", 4) == 0) ||
+ (strncasecmp (subject, "Sv: ", 4) == 0))
+ {
+ thread->subject = talloc_strdup (thread, subject + 4);
+ }
+ else
+ {
+ thread->subject = talloc_strdup (thread, subject);
+ }
+ }
+