Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to strip the reply citation? #25

Open
youthpolicy opened this issue Nov 26, 2012 · 4 comments
Open

Is there a way to strip the reply citation? #25

youthpolicy opened this issue Nov 26, 2012 · 4 comments

Comments

@youthpolicy
Copy link

Hi Ray,

I am just trying out RBM on http:https://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
Copy link
Author

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

@r-a-y
Copy link
Owner

r-a-y commented Nov 26, 2012

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.

@youthpolicy
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants