Mailspring/spec-nylas/fixtures/emails/email_12_stripped.html
Evan Morikawa 4cad525cfd fix(quoted-text): new system to remove quoted text
Summary:
We need to remove quoted text completely from bodies in a composer.
Unfortunately, that makes it very difficult to determine how to put it
back in.

For now the scheme is to append the quoted text at the end. However, that
means that we need to only pull out quoted text at the end of a message.

Unfortunately there are lots of places that quoted text appears inline
with regular text.

Determining whether or not some content is at the "end" of a message
turned out to be non-trivial.

We now have a new `DOMUtils` that looks for empty areas at the end.

We also have a new quoted HTML parser that finds trailing quotes.

Fixes T2335

Test Plan: lots of new quoted text tests

Reviewers: bengotow

Reviewed By: bengotow

Maniphest Tasks: T2335

Differential Revision: https://phab.nylas.com/D1773
2015-07-21 11:34:47 -07:00

70 lines
1.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<head></head><body>
<div>
Hi,<br>
<blockquote class="foo">
On Tue, 2011-03-01 at 18:02 +0530, Abhishek Kona wrote:
<div>
&gt; Hi folks <br>
&gt; <br>
&gt; What is the best way to clear a Riak bucket of all key, values after
<br>
&gt; running a test? <br>
&gt; I am currently using the Java HTTP API. <br>
</div>
</blockquote>
<p>
You can list the keys for the bucket and call delete for each. Or if you
put the keys (and kept track of them in your test) you can delete them
one at a time (without incurring the cost of calling list first.)
</p>
<p>
Something like:
<br>
</p><pre>
String bucket = "my_bucket";
BucketResponse bucketResponse = riakClient.listBucket(bucket);
RiakBucketInfo bucketInfo = bucketResponse.getBucketInfo();
for(String key : bucketInfo.getKeys()) {
riakClient.delete(bucket, key);
}
</pre>
<p></p>
<p>
would do it.
<br>
See also
<br>
http://wiki.basho.com/REST-API.html#Bucket-operations
<br>
which says
<br>
"At the moment there is no straightforward way to delete an entire
Bucket. There is, however, an open ticket for the feature. To delete all
the keys in a bucket, youll need to delete them all individually."
</p>
<blockquote>
<div>
&gt; <br>
&gt; -Abhishek Kona <br>
&gt; <br>
&gt; <br>
&gt; _______________________________________________ <br>
&gt; riak-users mailing list <br>
&gt; riak-users@lists.basho.com <br>
&gt; http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com <br>
</div>
</blockquote>
<br>
<br>
<br>
<br>
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
</div></body>