bp-reply-by-email icon indicating copy to clipboard operation
bp-reply-by-email copied to clipboard

Is there a way to strip the reply citation?

Open youthpolicy opened this issue 12 years ago • 4 comments

Hi Ray,

I am just trying out RBM on http://www.youthpolicy.org/community/ with the Gmail setup you described. Works like a charm! My latest reply-comment was “This is fucking fantastic!” and I mean it.

One tiny question: is is possible to strip the reply citation stuff from the response automagically? Apple Mail adds this, for example, by default when replying to an email.

» On Nov 26, 2012, at 10:54 PM, Youthpolicy Community [email protected] wrote:

I am certain most people won't delete this systematically, so a lot of replies by email will have this addendum otherwise.

I would be happy to do some research on the various default citation styles in use by Outlook, Thunderbird, Squirrelmail, Roundcube etc. I guess it might even be possible to use a snippet for recognition…

A couple of reply styles are:

On Mon, November 26, 2012 10:54 pm, Youthpolicy Community wrote: At 10.01 am Wednesday, Youthpolicy Community wrote: On Nov 26, 2012, at 10:54 PM, Youthpolicy Community wrote:

youthpolicy avatar Nov 26 '12 22:11 youthpolicy

Maybe » wrote: « would be enough as an identifier for the line? I'd imagine nobody uses wrote with a colon otherwise…

youthpolicy avatar Nov 26 '12 22:11 youthpolicy

Hi Andreas,

Glad you like it!

I've made some attempts at stripping email signatures and do use the colon as an identifier (see #6). I probably need to do more testing because the logic isn't quite working the way it is intended to.

I also plan to add a marker so users can denote where they want the parsing to end. See #23.

r-a-y avatar Nov 26 '12 22:11 r-a-y

Ah I see – curious that it doesn't strip the default “On Nov 26, 2012, at 10:54 PM, Youthpolicy Community [email protected] wrote:” line then. By all means it actually should as per #6.

youthpolicy avatar Nov 26 '12 22:11 youthpolicy

And yes, adding a marker in addition to the stripping would be most welcome!

youthpolicy avatar Nov 26 '12 22:11 youthpolicy