I just realized that we could guess whether the subject is a custom one or
not, by looking at whether it contains the [ ... - 1234 ] bit at the end.
If it's generated, just use parent comment's subject.

(We can't rely on it the caller always doing this -- but at this point, any
Re: in there will be because we added it, so no worries about the
localization)

If it's not generated, just go ahead and use what they gave us... if they
decide to prepend "Re:" etc to their comment subject well more power to
them ;-)

71b2c21<https://github.com/afuna/dw-free/commit/71b2c215871286fd86168ec1cb72e8b2dd2fb087>


On Fri, Apr 19, 2013 at 12:58 PM, Mark Smith <notifications@github.com>wrote:

> In cgi-bin/DW/CleanEmail.pm:
>
> > +        last if m/^\s*On.+wrote:\s*$/i;
> > +    }
> > +    @lines = splice @lines, 0, $count unless $count == 0;
> > +
> > +    return join "", @lines;
> > +}
> > +
> > +=head2 C<< $class->reply_subject( $text ) >>
> > +
> > +Clean out "Re:" from the subject
> > +
> > +=cut
> > +sub reply_subject {
> > +    my ( $class, $subject ) = @_;
> > +
> > +    $subject =~ s/^(Re:\s*)*//i;
>
> Also breaks for non-English. Someone was emailing me the other day and his
> email subjects were like "Mzr: Mzr:" or something strange.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dreamwidth/dw-free/pull/346/files#r3867836>
> .
>