email_reply_trimmer-0.2.0/0000755000004100000410000000000014741225055015607 5ustar www-datawww-dataemail_reply_trimmer-0.2.0/devenv.yaml0000644000004100000410000000026314741225054017762 0ustar www-datawww-datainputs: nixpkgs-ruby: url: github:bobvanderlinden/nixpkgs-ruby inputs: nixpkgs: follows: nixpkgs nixpkgs: url: github:nixos/nixpkgs/nixpkgs-unstable email_reply_trimmer-0.2.0/Gemfile.lock0000644000004100000410000000435714741225054020041 0ustar www-datawww-dataPATH remote: . specs: email_reply_trimmer (0.2.0) GEM remote: https://rubygems.org/ specs: activesupport (8.0.0) base64 benchmark (>= 0.3) bigdecimal concurrent-ruby (~> 1.0, >= 1.3.1) connection_pool (>= 2.2.5) drb i18n (>= 1.6, < 2) logger (>= 1.4.2) minitest (>= 5.1) securerandom (>= 0.3) tzinfo (~> 2.0, >= 2.0.5) uri (>= 0.13.1) ast (2.4.2) base64 (0.2.0) benchmark (0.4.0) bigdecimal (3.1.8) concurrent-ruby (1.3.4) connection_pool (2.4.1) drb (2.2.1) i18n (1.14.6) concurrent-ruby (~> 1.0) json (2.8.2) language_server-protocol (3.17.0.3) logger (1.6.1) minitest (5.25.2) parallel (1.26.3) parser (3.3.6.0) ast (~> 2.4.1) racc racc (1.8.1) rack (3.1.8) rainbow (3.1.1) rake (12.3.3) regexp_parser (2.9.2) rubocop (1.69.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.4, < 3.0) rubocop-ast (>= 1.36.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) rubocop-ast (1.36.2) parser (>= 3.3.1.0) rubocop-capybara (2.21.0) rubocop (~> 1.41) rubocop-discourse (3.8.6) activesupport (>= 6.1) rubocop (>= 1.59.0) rubocop-capybara (>= 2.0.0) rubocop-factory_bot (>= 2.0.0) rubocop-rails (>= 2.25.0) rubocop-rspec (>= 3.0.1) rubocop-rspec_rails (>= 2.30.0) rubocop-factory_bot (2.26.1) rubocop (~> 1.61) rubocop-rails (2.27.0) activesupport (>= 4.2.0) rack (>= 1.1) rubocop (>= 1.52.0, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) rubocop-rspec (3.2.0) rubocop (~> 1.61) rubocop-rspec_rails (2.30.0) rubocop (~> 1.61) rubocop-rspec (~> 3, >= 3.0.1) ruby-progressbar (1.13.0) securerandom (0.3.2) tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (3.1.2) unicode-emoji (~> 4.0, >= 4.0.4) unicode-emoji (4.0.4) uri (1.0.2) PLATFORMS ruby DEPENDENCIES email_reply_trimmer! minitest (~> 5) rake (~> 12) rubocop rubocop-discourse BUNDLED WITH 2.5.22 email_reply_trimmer-0.2.0/lib/0000755000004100000410000000000014741225054016354 5ustar www-datawww-dataemail_reply_trimmer-0.2.0/lib/email_reply_trimmer/0000755000004100000410000000000014741225054022415 5ustar www-datawww-dataemail_reply_trimmer-0.2.0/lib/email_reply_trimmer/delimiter_matcher.rb0000644000004100000410000000037714741225054026432 0ustar www-datawww-data# frozen_string_literal: true class DelimiterMatcher DELIMITER_CHARACTERS = "-_,=+~#*ᐧ—" DELIMITER_REGEX = /^[[:blank:]]*[#{Regexp.escape(DELIMITER_CHARACTERS)}]+[[:blank:]]*$/ def self.match?(line) line =~ DELIMITER_REGEX end end email_reply_trimmer-0.2.0/lib/email_reply_trimmer/embedded_email_matcher.rb0000644000004100000410000001365014741225054027352 0ustar www-datawww-data# frozen_string_literal: true class EmbeddedEmailMatcher # On Wed, Sep 25, 2013, at 03:57 PM, jorge_castro wrote: # On Thursday, June 27, 2013, knwang via Discourse Meta wrote: # On Wed, 2015-12-02 at 13:58 +0000, Tom Newsom wrote: # On 10/12/15 12:30, Jeff Atwood wrote: # ---- On Tue, 22 Dec 2015 14:17:36 +0530 Sam Saffron<info@discourse.org> wrote ---- # Op 24 aug. 2013 om 16:48 heeft ven88 via Discourse Meta het volgende geschreven: # Le 4 janv. 2016 19:03, "Neil Lalonde" a écrit : # Dnia 14 lip 2015 o godz. 00:25 Michael Downey napisał(a): # Em seg, 27 de jul de 2015 17:13, Neil Lalonde escreveu: # El jueves, 21 de noviembre de 2013, codinghorror escribió: # At 6/16/2016 08:32 PM, you wrote: ON_DATE_SOMEONE_WROTE_REGEXES = [ # Chinese /^[[:blank:]<>-]*在 (?:(?!\b(?>在|写道)\b).)+?写道[[:blank:].:>-]*$/im, # Dutch /^[[:blank:]<>-]*Op (?:(?!\b(?>Op|het\svolgende\sgeschreven|schreef)\b).)+?(het\svolgende\sgeschreven|schreef[^:]+)[[:blank:].:>-]*$/im, # English /^[[:blank:]<>-]*In message (?:(?!\b(?>In message|writes)\b).)+?writes[[:blank:].:>-]*$/im, /^[[:blank:]<>-]*(On|At) (?:(?!\b(?>On|wrote|writes|says|said)\b).)+?(wrote|writes|says|said)[[:blank:].:>-]*$/im, # French /^[[:blank:]<>-]*Le (?:(?!\b(?>Le|nous\sa\sdit|a\s+écrit)\b).)+?(nous\sa\sdit|a\s+écrit)[[:blank:].:>-]*$/im, # German /^[[:blank:]<>-]*Am (?:(?!\b(?>Am|schrieben\sSie)\b).)+?schrieben\sSie[[:blank:].:>-]*$/im, /^[[:blank:]<>-]*Am (?:(?!\b(?>Am|geschrieben)\b).)+?(geschrieben|schrieb[^:]+)[[:blank:].:>-]*$/im, # Italian /^[[:blank:]<>-]*Il (?:(?!\b(?>Il|ha\sscritto)\b).)+?ha\sscritto[[:blank:].:>-]*$/im, # Polish /^[[:blank:]<>-]*(Dnia|Dňa) (?:(?!\b(?>Dnia|Dňa|napisał)\b).)+?napisał(\(a\))?[[:blank:].:>-]*$/im, # Portuguese /^[[:blank:]<>-]*Em (?:(?!\b(?>Em|escreveu)\b).)+?escreveu[[:blank:].:>-]*$/im, # Spanish /^[[:blank:]<>-]*El (?:(?!\b(?>El|escribió)\b).)+?escribió[[:blank:].:>-]*$/im, ] # Op 10 dec. 2015 18:35 schreef "Arpit Jalan" : # Am 18.09.2013 um 16:24 schrieb codinghorror : # Den 15. jun. 2016 kl. 20.42 skrev Jeff Atwood : # søn. 30. apr. 2017 kl. 00.26 skrev David Taylor : ON_DATE_WROTE_SOMEONE_MARKERS = [ # Dutch ["Op", "schreef"], # German ["Am", "schrieb"], # Norwegian ["Den", "skrev"], # Dutch ["søn\.", "skrev"], ] ON_DATE_WROTE_SOMEONE_REGEXES = ON_DATE_WROTE_SOMEONE_MARKERS.map do |on, wrote| /^[[:blank:]>]*#{on}\s.+\s#{wrote}\s[^:]+:/ end # суббота, 14 марта 2015 г. пользователь etewiah написал: # 23 mar 2017 21:25 "Neil Lalonde" napisał(a): # 30 серп. 2016 р. 20:45 "Arpit" no-reply@example.com пише: DATE_SOMEONE_WROTE_MARKERS = [ # Russian ["пользователь", "написал"], # Polish ["", "napisał\\(a\\)"], # Ukrainian ["", "пише"], ] DATE_SOMEONE_WROTE_REGEXES = DATE_SOMEONE_WROTE_MARKERS.map do |user, wrote| user.size == 0 ? /\d{4}.{1,80}\n?.{0,80}?#{wrote}:/ : /\d{4}.{1,80}#{user}.{0,80}\n?.{0,80}?#{wrote}:/ end # Max Mustermann schrieb am Fr., 28. Apr. 2017 um 11:53 Uhr: SOMEONE_WROTE_ON_DATE_REGEXES = [ # English /^.+\bwrote\b[[:space:]]+\bon\b.+[^:]+:/, # German /^.+\bschrieb\b[[:space:]]+\bam\b.+[^:]+:/, ] # 2016-03-03 17:21 GMT+01:00 Some One ISO_DATE_SOMEONE_REGEX = /^[[:blank:]>]*20\d\d-\d\d-\d\d \d\d:\d\d GMT\+\d\d:\d\d [\w[:blank:]]+$/ # 2015-10-18 0:17 GMT+03:00 Matt Palmer : # 2013/10/2 camilohollanda # вт, 5 янв. 2016 г. в 23:39, Erlend Sogge Heggen : # ср, 1 апр. 2015, 18:29, Denis Didkovsky : DATE_SOMEONE_EMAIL_REGEX = /\d{4}.{1,80}\s?<[^@<>]+@[^@<>.]+\.[^@<>]+>:?$/ # codinghorror via Discourse Meta wrote: # codinghorror via Discourse Meta schrieb: SOMEONE_VIA_SOMETHING_WROTE_MARKERS = [ # English "wrote", # German "schrieb", ] SOMEONE_VIA_SOMETHING_WROTE_REGEXES = SOMEONE_VIA_SOMETHING_WROTE_MARKERS.map do |wrote| /^.+ via .+ #{wrote}:?[[:blank:]]*$/ end # Some One wrote: # Gavin Sinclair (gsinclair@soyabean.com.au) wrote: SOMEONE_EMAIL_WROTE_REGEX = /^.+\b[\w.+-]+@[\w.-]+\.\w{2,}\b.+wrote:?$/ # Posted by mpalmer on 01/21/2016 POSTED_BY_SOMEONE_ON_DATE_REGEX = /^[[:blank:]>]*Posted by .+ on \d{2}\/\d{2}\/\d{4}$/i # Begin forwarded message: # Reply Message # ----- Forwarded Message ----- # ----- Original Message ----- # -----Original Message----- # *----- Original Message -----* # ----- Reply message ----- # ------------------ 原始邮件 ------------------ FORWARDED_EMAIL_REGEXES = [ # English /^[[:blank:]>]*Begin forwarded message:/i, /^[[:blank:]>*]*-{2,}[[:blank:]]*(Forwarded|Original|Reply) Message[[:blank:]]*-{2,}/i, # French /^[[:blank:]>]*Début du message transféré :/i, /^[[:blank:]>*]*-{2,}[[:blank:]]*Message transféré[[:blank:]]*-{2,}/i, # German /^[[:blank:]>*]*-{2,}[[:blank:]]*Ursprüngliche Nachricht[[:blank:]]*-{2,}/i, # Spanish /^[[:blank:]>*]*-{2,}[[:blank:]]*Mensaje original[[:blank:]]*-{2,}/i, # Chinese /^[[:blank:]>*]*-{2,}[[:blank:]]*原始邮件[[:blank:]]*-{2,}/i, ] EMBEDDED_REGEXES = [ ON_DATE_SOMEONE_WROTE_REGEXES, ON_DATE_WROTE_SOMEONE_REGEXES, DATE_SOMEONE_WROTE_REGEXES, DATE_SOMEONE_EMAIL_REGEX, SOMEONE_WROTE_ON_DATE_REGEXES, ISO_DATE_SOMEONE_REGEX, SOMEONE_VIA_SOMETHING_WROTE_REGEXES, SOMEONE_EMAIL_WROTE_REGEX, POSTED_BY_SOMEONE_ON_DATE_REGEX, FORWARDED_EMAIL_REGEXES, ].flatten def self.match?(line) EMBEDDED_REGEXES.any? { |r| line =~ r } end end email_reply_trimmer-0.2.0/lib/email_reply_trimmer/empty_line_matcher.rb0000644000004100000410000000016614741225054026615 0ustar www-datawww-data# frozen_string_literal: true class EmptyLineMatcher def self.match?(line) line =~ /^[[:blank:]]*$/ end end email_reply_trimmer-0.2.0/lib/email_reply_trimmer/email_header_matcher.rb0000644000004100000410000000304014741225054027041 0ustar www-datawww-data# frozen_string_literal: true class EmailHeaderMatcher EMAIL_HEADERS_WITH_DATE_MARKERS = [ # Norwegian ["Sendt"], # English ["Sent", "Date"], # French ["Date", "Le"], # German ["Gesendet"], # Portuguese ["Enviada em"], # Spanish ["Enviado"], # Spanish (Mexican) ["Fecha"], # Italian ["Data"], # Dutch ["Datum"], # Swedish ["Skickat"], # Chinese ["发送时间"], ] EMAIL_HEADERS_WITH_DATE_REGEXES = EMAIL_HEADERS_WITH_DATE_MARKERS.map do |header| /^[[:blank:]*]*(?:#{header.join("|")})[[:blank:]*]*:.*\d+/ end EMAIL_HEADERS_WITH_TEXT_MARKERS = [ # Norwegian ["Fra", "Til", "Emne"], # English ["From", "To", "Cc", "Reply-To", "Subject"], # French ["De", "Expéditeur", "À", "Destinataire", "Répondre à", "Objet"], # German ["Von", "An", "Betreff"], # Portuguese ["De", "Para", "Assunto"], # Spanish ["De", "Para", "Asunto"], # Italian ["Da", "Risposta", "A", "Oggetto"], # Dutch ["Van", "Beantwoorden - Aan", "Aan", "Onderwerp"], # Swedish ["Från", "Till", "Ämne"], # Chinese ["发件人", "收件人", "主题"], ] EMAIL_HEADERS_WITH_TEXT_REGEXES = EMAIL_HEADERS_WITH_TEXT_MARKERS.map do |header| /^[[:blank:]*]*(?:#{header.join("|")})[[:blank:]*]*:.*[[:word:]]+/i end EMAIL_HEADER_REGEXES = [ EMAIL_HEADERS_WITH_DATE_REGEXES, EMAIL_HEADERS_WITH_TEXT_REGEXES, ].flatten def self.match?(line) EMAIL_HEADER_REGEXES.any? { |r| line =~ r } end end email_reply_trimmer-0.2.0/lib/email_reply_trimmer/quote_matcher.rb0000644000004100000410000000016214741225054025601 0ustar www-datawww-data# frozen_string_literal: true class QuoteMatcher def self.match?(line) line =~ /^[[:blank:]]*>/ end end email_reply_trimmer-0.2.0/lib/email_reply_trimmer/signature_matcher.rb0000644000004100000410000000261414741225054026451 0ustar www-datawww-data# frozen_string_literal: true class SignatureMatcher # Envoyé depuis mon iPhone # Von meinem Mobilgerät gesendet # Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. # Nik from mobile # From My Iphone 6 # Sent via mobile # Sent with Airmail # Sent from Windows Mail # Sent from my TI-85 # <> # (sent from a phone) # (Sent from mobile device) # 從我的 iPhone 傳送 SIGNATURE_REGEXES = [ # Chinese /^[[:blank:]]*從我的 iPhone 傳送/i, # English /^[[:blank:]]*[[:word:]]+ from mobile/i, /^[[:blank:]]*[\(<]*Sent (from|via|with|by) .+[\)>]*/i, /^[[:blank:]]*From my .{1,20}/i, /^[[:blank:]]*Get Outlook for /i, # French /^[[:blank:]]*Envoyé depuis (mon|Yahoo Mail)/i, # German /^[[:blank:]]*Von meinem .+ gesendet/i, /^[[:blank:]]*Diese Nachricht wurde von .+ gesendet/i, # Italian /^[[:blank:]]*Inviato da /i, # Norwegian /^[[:blank:]]*Sendt fra min /i, # Portuguese /^[[:blank:]]*Enviado do meu /i, # Spanish /^[[:blank:]]*Enviado desde mi /i, # Dutch /^[[:blank:]]*Verzonden met /i, /^[[:blank:]]*Verstuurd vanaf mijn /i, # Swedish /^[[:blank:]]*från min /i, ] def self.match?(line) # remove any markdown links stripped = line.gsub(/\[([^\]]+)\]\([^\)]+\)/) { $1 } SIGNATURE_REGEXES.any? { |r| stripped =~ r } end end email_reply_trimmer-0.2.0/lib/email_reply_trimmer.rb0000644000004100000410000001521214741225054022743 0ustar www-datawww-data# frozen_string_literal: true require_relative "email_reply_trimmer/empty_line_matcher" require_relative "email_reply_trimmer/delimiter_matcher" require_relative "email_reply_trimmer/signature_matcher" require_relative "email_reply_trimmer/embedded_email_matcher" require_relative "email_reply_trimmer/email_header_matcher" require_relative "email_reply_trimmer/quote_matcher" require 'securerandom' class EmailReplyTrimmer VERSION = "0.2.0" DELIMITER = "d" EMBEDDED = "b" EMPTY = "e" EMAIL_HEADER = "h" QUOTE = "q" SIGNATURE = "s" TEXT = "t" def self.identify_line_content(line) return EMPTY if EmptyLineMatcher.match? line return DELIMITER if DelimiterMatcher.match? line return SIGNATURE if SignatureMatcher.match? line return EMBEDDED if EmbeddedEmailMatcher.match? line return EMAIL_HEADER if EmailHeaderMatcher.match? line return QUOTE if QuoteMatcher.match? line TEXT end def self.trim(text, split = false) return if text.nil? || text =~ /\A[[:space:]]*\z/m # do some cleanup preprocess!(text) # stash the code blocks - replace them with hashes text, blocks = hoist_code_blocks(text) # from now on, we'll work on a line-by-line basis lines = text.split("\n") lines_dup = lines.dup # create a string of characters, one per line, according to the line content pattern = lines.map { |l| identify_line_content(l) }.join # remove everything after the first delimiter if pattern =~ /d/ index = pattern =~ /d/ pattern = pattern[0...index] lines = lines[0...index] end # remove all mobile signatures while pattern =~ /s/ index = pattern =~ /s/ pattern.slice!(index) lines.slice!(index) end # when the reply is at the end of the email if is_reply_at_end?(pattern) index = pattern =~ /t[et]*$/ pattern = "" lines = lines[index..-1] end # if there is an embedded email marker, not followed by a quote # then take everything up to that marker if pattern =~ /te*b[^q]*$/ index = pattern =~ /te*b[^q]*$/ pattern = pattern[0..index] lines = lines[0..index] end # if there is an embedded email marker, followed by a huge quote # then take everything up to that marker if pattern =~ /te*b[eqbh]*([te]*)$/ && $1.count("t") < 7 index = pattern =~ /te*b[eqbh]*[te]*$/ pattern = pattern[0..index] lines = lines[0..index] end # if there is some text before a huge quote ending the email, # then remove the quote if pattern =~ /t?e*[qbe]+$/ index = pattern =~ /t?e*[qbe]+$/ pattern = pattern[0..index] lines = lines[0..index] end # if there still are some embedded email markers, just remove them while pattern =~ /b/ index = pattern =~ /b/ pattern.slice!(index) lines.slice!(index) end # fix email headers when they span over multiple lines if pattern =~ /h+[hte]+h+e/ index = pattern =~ /h+[hte]+h+e/ size = pattern[/h+[hte]+h+e/].size size.times.each { |s| pattern[index + s] = EMAIL_HEADER } end # if there are at least 3 consecutive email headers, # take everything up to these headers if pattern =~ /t[eq]*h{3,}/ index = pattern =~ /t[eq]*h{3,}/ pattern = pattern[0..index] lines = lines[0..index] end # if there still are some email headers, just remove them while pattern =~ /h/ index = pattern =~ /h/ pattern.slice!(index) lines.slice!(index) end # remove trailing quotes when there's at least one line of text if pattern =~ /t/ && pattern =~ /[eq]+$/ index = pattern =~ /[eq]+$/ pattern = pattern[0...index] lines = lines[0...index] end # results trimmed = lines.join("\n").strip # re-inject code blocks blocks.each { |token, block| trimmed.gsub!(token, block) } if split [trimmed, compute_elided(lines_dup, lines)] else trimmed end end def self.extract_embedded_email(text) return if text.nil? || text =~ /\A[[:space:]]*\z/m # do some cleanup preprocess!(text) # from now on, we'll work on a line-by-line basis lines = text.split("\n") # identify content of each lines pattern = lines.map { |l| identify_line_content(l) }.join if index = pattern =~ /(?:h[eqd]*?){3,}[tq]/ embedded = lines[index..-1].join("\n").strip elsif index = pattern =~ /b(?:[eqd]*){3,}[tq]/ # Exception for email clients (macOS / iOS) which embed fwd emails in quotes. embedded = lines[index + 1..-1].map { |l| l.gsub(/^>\s*/, '') }.join("\n").strip end if index before = lines[0...(pattern[0...index] =~ /e*(b[eqd]*|b*[ed]*)$/)].join("\n").strip [embedded, before] end end private def self.hoist_code_blocks(text) blocks = {} pattern = /^```\w*$\n.*?^```$/m text.gsub!(pattern) do |block| token = SecureRandom.hex blocks[token] = block token end [text, blocks] end def self.preprocess!(text) # normalize line endings text.gsub!("\r\n", "\n") # remove PGP markers text.gsub!(/\A-----BEGIN PGP SIGNED MESSAGE-----\n(?:Hash: \w+)?\s+/i, "") text.gsub!(/^-----BEGIN PGP SIGNATURE-----$[\s\S]+^-----END PGP SIGNATURE-----/, "") # remove unsubscribe links text.gsub!(/^Unsubscribe: .+@.+(\n.+http:.+)?\s*\z/i, "") # remove alias-style quotes marker text.gsub!(/^.*>{5} "[^"\n]+" == .+ writes:/, "") # change enclosed-style quotes format text.gsub!(/^>>> ?(.+) ?>>>$\n([\s\S]+?)\n^<<< ?\1 ?<<<$/) { $2.gsub(/^/, "> ") } text.gsub!(/^>{4,}[[:blank:]]*$\n([\s\S]+?)\n^<{4,}[[:blank:]]*$/) { $1.gsub(/^/, "> ") } # fix all quotes formats text.gsub!(/^((?:[[:blank:]]*[[:alpha:]]*[>|])+)/) { $1.gsub(/([[:alpha:]]+>|\|)/, ">") } # fix embedded email markers that might span over multiple lines ( EmbeddedEmailMatcher::ON_DATE_SOMEONE_WROTE_REGEXES + EmbeddedEmailMatcher::SOMEONE_WROTE_ON_DATE_REGEXES + EmbeddedEmailMatcher::DATE_SOMEONE_WROTE_REGEXES + [EmbeddedEmailMatcher::DATE_SOMEONE_EMAIL_REGEX] ).each do |r| text.gsub!(r) do |m| m.count("\n") > 4 ? m : m.gsub(/\n+[[:space:]]*/, " ") end end # remove leading/trailing whitespaces text.strip! end def self.compute_elided(text, lines) elided = [] t = 0 l = 0 while t < text.size while l < lines.size && text[t] == lines[l] t += 1 l += 1 end elided << text[t] t += 1 end elided.join("\n").strip end def self.is_reply_at_end?(pattern) pattern =~ /^b[^t]+t[et]*$/ end end email_reply_trimmer-0.2.0/test/0000755000004100000410000000000014741225055016566 5ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/embedded/0000755000004100000410000000000014741225055020317 5ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/embedded/forwarded_gmail.txt0000644000004100000410000000127014741225055024206 0ustar www-datawww-dataFrom: Foo Discourse Date: Tue, Jan 01, 2019 at 12:00 PM Subject: This email is going to be forwarded To: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi auctor lacus in metus vehicula, non dictum mi consequat. Nunc eget quam sit amet dolor scelerisque cursus. Etiam laoreet lectus a rutrum sollicitudin. Nullam sit amet lorem id ante lobortis fringilla. Duis dictum tempus sem et ultrices. Sed ac lectus ante. Vivamus interdum, risus non tincidunt accumsan, purus mi accumsan dolor, vitae euismod turpis orci ut est. Integer ut ante eu velit dignissim ullamcorper non id nibh. Nulla auctor magna erat, et posuere sapien gravida convallis. email_reply_trimmer-0.2.0/test/embedded/forwarded_message.txt0000644000004100000410000000026214741225055024541 0ustar www-datawww-dataFrom: Some One Date: Thu, Jan 28, 2016 at 4:00 PM Subject: Some subject that spans over 2 lines To: infod@discourse.org This is a forwarded email. And just that. email_reply_trimmer-0.2.0/test/embedded/email_headers_1.txt0000644000004100000410000000026114741225054024060 0ustar www-datawww-data*From:* Outlook user *Sent:* 2016-01-27 *To:* info@discourse.org *Subject:* Are you using Outlook? Just some random text wich is part of the embedded email... Outlook user email_reply_trimmer-0.2.0/test/embedded/embedded_email_german_3.txt0000644000004100000410000000023714741225055025535 0ustar www-datawww-dataVon: Discourse Team Gesendet: Don 11 Februar 2016 11:23 An: Some One Betreff: Some Subject Hallo! Wie geht es Ihnen heute? email_reply_trimmer-0.2.0/test/embedded/embedded_email_10.txt0000644000004100000410000000060214741225055024256 0ustar www-datawww-dataFrom: Arpit Jalan > Sent: Thursday, February 4, 2016 10:05 AM Subject: Meta Discourse update To: Some One >, Discourse Team > Hi Some One, Time to update meta to the latest Discourse version! Do you want me to take care of it? Regards, Arpit email_reply_trimmer-0.2.0/test/embedded/embedded_email_spanish_2.txt0000644000004100000410000000054714741225055025734 0ustar www-datawww-dataDe: "Miguel" Enviado: =E2=80=8E16/=E2=80=8E02/=E2=80=8E2016 14:53 Para: "discourse" Asunto: [MP]Parser del email Visita el tema o responde a este email para publicar. Para no recibir m=C3=A1s notificaciones de este tema en particular, haz cli= c aqu=C3=AD. Para darte de baja de estos emails, cambia tus preferencias = email_reply_trimmer-0.2.0/test/embedded/email_headers_3.txt0000644000004100000410000000116014741225055024062 0ustar www-datawww-dataFrom: Some One > Reply-To: "For.bar" > Date: Monday, February 8, 2016 11:44 AM To: Discourse > Subject: VIS Here's an email with some very important stuff. ________________________________ Reply here or hit reply from your inbox to help members by sharing your ideas. Mute this topic to stop getting updates, we'll send you the next one. DO NOT FORWARD THIS EMAIL! email_reply_trimmer-0.2.0/test/embedded/email_headers_4.txt0000644000004100000410000000201014741225055024056 0ustar www-datawww-dataDa: Sally54721 Risposta: Testy McTesterson / Test Data: giovedì 8 ottobre 2015 15:26 A: Testy McTesterson Oggetto: Test | Issue (#3) [@example](http://example.com/u/example) — Reply to this email directly or [view it on GitLab](http://git.example.com/example/Test/issues/3). {"@context":"[http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View](http://schema.org%22,%22@type%22:%22EmailMessage%22,%22action%22:%7B%22@type%22:%22ViewAction%22,%22name%22:%22View) Issue","url":"[http://git.example.com/example/Test/issues/3"}](http://git.example.com/example/Test/issues/3%22%7D)} You're receiving this notification because you are a member of the Testy McTesterson / Test project team. -- Questo messaggio e' stato analizzato con Libra ESVA ed e' risultato non infetto. [Clicca qui per segnalarlo come spam.](http://esva.example.com/cgi-bin/learn-msg.cgi?id=1234567890.ABCDEF) [Clicca qui per metterlo in blacklist](http://esva.example.com/cgi-bin/learn-msg.cgi?blacklist=1&id=1234567890.ABCDEF) email_reply_trimmer-0.2.0/test/embedded/forwarded_apple.txt0000644000004100000410000000126714741225055024224 0ustar www-datawww-dataFrom: Foo Discourse Subject: This email is going to be forwarded Date: 01 January 2019 at 12:00:00 EET To: bar@discourse.org Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi auctor lacus in metus vehicula, non dictum mi consequat. Nunc eget quam sit amet dolor scelerisque cursus. Etiam laoreet lectus a rutrum sollicitudin. Nullam sit amet lorem id ante lobortis fringilla. Duis dictum tempus sem et ultrices. Sed ac lectus ante. Vivamus interdum, risus non tincidunt accumsan, purus mi accumsan dolor, vitae euismod turpis orci ut est. Integer ut ante eu velit dignissim ullamcorper non id nibh. Nulla auctor magna erat, et posuere sapien gravida convallis. email_reply_trimmer-0.2.0/test/embedded/email_headers_2.txt0000644000004100000410000000022514741225055024062 0ustar www-datawww-dataFrom: Discourse On Sun, Feb 7, 2016 at 12:12 AM -0800, "Arpit Jalan" > wrote: Hi Some, https://meta.discourse.org is now running on latest Discourse version! Regards, Arpit On Fri, Feb 5, 2016 at 10:43 AM Arpit Jalan > wrote: Okay, sure! Arpit On Fri, 5 Feb 2016 at 10:42, Some One > wrote: Arpit, Yes that sounds good. Sent from Outlook Mobile email_reply_trimmer-0.2.0/test/before/embedded_email_spanish_2.txt0000644000004100000410000000006614741225054025440 0ustar www-datawww-dataIgual que siempre (inclusive ahora), sin nada raro :/ email_reply_trimmer-0.2.0/test/before/email_headers_3.txt0000644000004100000410000000003214741225054023567 0ustar www-datawww-dataThis is the actual reply. email_reply_trimmer-0.2.0/test/before/email_headers_4.txt0000644000004100000410000000000514741225054023570 0ustar www-datawww-datatest email_reply_trimmer-0.2.0/test/before/forwarded_apple.txt0000644000004100000410000000005714741225054023730 0ustar www-datawww-dataThis email has been forwarded from Apple Mail. email_reply_trimmer-0.2.0/test/before/email_headers_2.txt0000644000004100000410000000003614741225054023572 0ustar www-datawww-dataThis is a reply from Outlook! email_reply_trimmer-0.2.0/test/trimmed/0000755000004100000410000000000014741225055020227 5ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/trimmed/embedded_email_13.txt0000644000004100000410000000002714741225055024172 0ustar www-datawww-datayes we're fine thanks email_reply_trimmer-0.2.0/test/trimmed/block_code_spacers.txt0000644000004100000410000000022314741225055024571 0ustar www-datawww-dataThis is a long email with embedded code. ``` # This should not be deleted # # Or trimmed # It is code #### Code code code ``` End of the email. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_portuguese.txt0000644000004100000410000000004314741225055026147 0ustar www-datawww-dataOlá, Qualquer dúvida estamos ai. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_russian_2.txt0000644000004100000410000000000514741225055025650 0ustar www-datawww-dataYes. email_reply_trimmer-0.2.0/test/trimmed/forwarded_gmail.txt0000644000004100000410000000005214741225055024113 0ustar www-datawww-dataThis email has been forwarded from Gmail. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_polish_2.txt0000644000004100000410000000004514741225055025466 0ustar www-datawww-dataHi Neil, Thanks for prompt response! email_reply_trimmer-0.2.0/test/trimmed/normalize_line_endings.txt0000644000004100000410000000004014741225055025500 0ustar www-datawww-dataEmail with windows line endings email_reply_trimmer-0.2.0/test/trimmed/embedded_email_german_4.txt0000644000004100000410000000006514741225055025445 0ustar www-datawww-dataHi there! I am replying from my german Google Inbox. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_chinese.txt0000644000004100000410000000006214741225055025364 0ustar www-datawww-dataHi Erlend Sogge Heggen, Thank you for your reply. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_german_1.txt0000644000004100000410000000015414741225055025441 0ustar www-datawww-dataalright, no big deal - I assume in this case the code needs some refactoring to better support I18N anyway. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_18.txt0000644000004100000410000000007414741225055024201 0ustar www-datawww-data nil && 2.0 + 12.0 It should be: 2.0 && 2.0 + 12.0 email_reply_trimmer-0.2.0/test/trimmed/forwarded_message.txt0000644000004100000410000000005214741225055024446 0ustar www-datawww-dataThis is a forwarded email. And just that. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_2.txt0000644000004100000410000000024014741225055024105 0ustar www-datawww-dataI have checked the available documentation/links to find out the end points. If there are some other endpoints, can you please tell the endpoints Best Regards email_reply_trimmer-0.2.0/test/trimmed/text_only.txt0000644000004100000410000000002614741225055023013 0ustar www-datawww-dataEmail with only text. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_7.txt0000644000004100000410000000020114741225055024107 0ustar www-datawww-dataThis is a line before the embedded email. > Hello > > This is the embedded email. This is some text after the embedded email. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_polish_1.txt0000644000004100000410000000003414741225055025463 0ustar www-datawww-dataOh, I've forgot to add. MIT email_reply_trimmer-0.2.0/test/trimmed/embedded_email_german_2.txt0000644000004100000410000000000514741225055025435 0ustar www-datawww-dataHey:)email_reply_trimmer-0.2.0/test/trimmed/email_headers_1.txt0000644000004100000410000000003614741225055023771 0ustar www-datawww-dataThis is a reply from Outlook! email_reply_trimmer-0.2.0/test/trimmed/embedded_email_norwegian.txt0000644000004100000410000000001214741225055025732 0ustar www-datawww-dataThanx :-) email_reply_trimmer-0.2.0/test/trimmed/embedded_email_german_3.txt0000644000004100000410000000002014741225055025433 0ustar www-datawww-dataGruß Discourse email_reply_trimmer-0.2.0/test/trimmed/embedded_email_german_5.txt0000644000004100000410000000003414741225055025442 0ustar www-datawww-dataOkay. Will give it a whirl. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_17.txt0000644000004100000410000000117014741225055024176 0ustar www-datawww-dataThe intent was to return nil when the first value was nil. That was the op's issue. If one of the values was nil, she/he wanted nil. Nil && anything_else will always return nil, and I will not evaluate the second clause. > >>>>>>>> > It should be: > 2.0 && 2.0 + 12.0 > <<<<<<<<< > > Ah! Yes, that works. > > People are intent on not understanding, aren't they. def nil_add_12 f f && f + 12.0 end Generalised to two parameters: def nil_add a, b a && b && a + b end The only quirk is the way they handle `false`. This is not tested, but it may be possible to do this, too: f&.+ b Cheers email_reply_trimmer-0.2.0/test/trimmed/strip.txt0000644000004100000410000000005014741225055022124 0ustar www-datawww-dataStrip leading and trailing empty lines. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_3.txt0000644000004100000410000000045614741225055024117 0ustar www-datawww-dataSure, [Bitnami](http://bitnami.com/stack/discourse) supports EC2 and there are several topics here about it. Our [official install guide]( https://github.com/discourse/discourse/blob/master/docs/INSTALL-ubuntu.md) also works great on an Amazon EC2 provisioned virtual machine with very little change. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_swedish.txt0000644000004100000410000000021314741225055025412 0ustar www-datawww-dataHi everyone! Here you can find the pictures that I took https://foo.bar It was a pleasure to support this event. Best regards Some One email_reply_trimmer-0.2.0/test/trimmed/email_headers_5.txt0000644000004100000410000000044614741225055024002 0ustar www-datawww-dataHi Erlend, I don’t know what a “legally recognised educational institution” means for you. We’re based in Sweden and we provide education to our people across the globe. We want to try Discourse in small scale first to see it will add value to our communities. Best regards, //Jef email_reply_trimmer-0.2.0/test/trimmed/embedded_email_11.txt0000644000004100000410000000000714741225055024166 0ustar www-datawww-dataBefore email_reply_trimmer-0.2.0/test/trimmed/embedded_email_1.txt0000644000004100000410000000004314741225055024105 0ustar www-datawww-dataThis is before the embedded email. email_reply_trimmer-0.2.0/test/trimmed/spam_1.txt0000644000004100000410000000000014741225055022136 0ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/trimmed/embedded_email_15.txt0000644000004100000410000000003414741225055024172 0ustar www-datawww-data[message body] / Greetings email_reply_trimmer-0.2.0/test/trimmed/embedded_email_6.txt0000644000004100000410000000017014741225055024113 0ustar www-datawww-dataEnsuring that ON_DATE_SOMEONE_WROTE_REGEXES is not greedy. On this day I wrote something which was very interesting. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_14.txt0000644000004100000410000000010414741225055024167 0ustar www-datawww-dataI just saw the standard plan has the slack integration. Thank you! email_reply_trimmer-0.2.0/test/trimmed/signatures.txt0000644000004100000410000000007314741225055023154 0ustar www-datawww-dataThis email was sent from way too much different devices ;) email_reply_trimmer-0.2.0/test/trimmed/embedded_email_italian.txt0000644000004100000410000000007714741225055025375 0ustar www-datawww-dataOk, will do. As a test, this is a reply from a webmail client. email_reply_trimmer-0.2.0/test/trimmed/quote_only.txt0000644000004100000410000000003114741225055023160 0ustar www-datawww-data> Email with only quote. email_reply_trimmer-0.2.0/test/trimmed/delimiters.txt0000644000004100000410000000012614741225055023130 0ustar www-datawww-dataThis is not a ---------- delimiter. But there should be no delimiter after this line email_reply_trimmer-0.2.0/test/trimmed/embedded_email_9.txt0000644000004100000410000000000414741225055024112 0ustar www-datawww-dataBar email_reply_trimmer-0.2.0/test/trimmed/embedded_email_10.txt0000644000004100000410000000001314741225055024162 0ustar www-datawww-dataThank you. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_4.txt0000644000004100000410000000012614741225055024112 0ustar www-datawww-dataIf I do exactly that, then the test group won't be saved after a refresh of the page. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_french_1.txt0000644000004100000410000000001614741225055025432 0ustar www-datawww-dataC'est super ! email_reply_trimmer-0.2.0/test/trimmed/embedded_email_spanish_2.txt0000644000004100000410000000006614741225055025640 0ustar www-datawww-dataIgual que siempre (inclusive ahora), sin nada raro :/ email_reply_trimmer-0.2.0/test/trimmed/email_headers_3.txt0000644000004100000410000000003214741225055023767 0ustar www-datawww-dataThis is the actual reply. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_5.txt0000644000004100000410000000007714741225055024120 0ustar www-datawww-dataI am testing the SOMEONE_EMAIL_WROTE_REGEX regular expression. email_reply_trimmer-0.2.0/test/trimmed/dual_embedded.txt0000644000004100000410000000002714741225055023525 0ustar www-datawww-dataThis is the 3rd email. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_8.txt0000644000004100000410000000000414741225055024111 0ustar www-datawww-dataFoo email_reply_trimmer-0.2.0/test/trimmed/spam_2.txt0000644000004100000410000000270014741225055022150 0ustar www-datawww-dataLorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet dictum lectus, at efficitur neque. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aenean dictum pulvinar tortor non ultricies. Maecenas cursus lobortis dolor quis feugiat. Integer efficitur, mauris sit amet lobortis consectetur, urna augue feugiat mi, et tempor dui sapien vehicula dolor. Aenean sit amet ultrices tortor. Praesent vel porttitor risus, eu fringilla nibh. Phasellus sollicitudin elit id tortor dapibus, at euismod odio sodales. Ut est ex, pharetra malesuada dui maximus, ullamcorper fringilla turpis. Nullam gravida, elit blandit commodo blandit, velit sem ornare odio, eu ultricies arcu ex sit amet libero. Vestibulum eu fringilla ante, nec blandit nunc. Nullam nec viverra ipsum. Nullam semper eu urna id facilisis. Nam blandit dictum eros, sit amet auctor dui fermentum a. Quisque finibus magna nisi, ac hendrerit purus lacinia ut. Donec maximus, enim id tincidunt vulputate, libero ex tempor elit, vitae sagittis libero leo sed leo. Quisque non gravida ex, efficitur interdum neque. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus rhoncus nisi vitae turpis bibendum luctus. Duis placerat aliquam lectus, pellentesque commodo dolor hendrerit quis. Suspendisse ipsum sapien, interdum ac felis ac, mattis varius neque. Maecenas nec risus sit amet ex aliquam vestibulum. Maecenas a turpis et turpis volutpat congue.email_reply_trimmer-0.2.0/test/trimmed/email_headers_4.txt0000644000004100000410000000000514741225055023770 0ustar www-datawww-datatest email_reply_trimmer-0.2.0/test/trimmed/embedded_email_dutch_2.txt0000644000004100000410000000020014741225055025270 0ustar www-datawww-dataThe adblocker idea from @elberet might be it. Regretfully I only have time to test this in 2 weeks. I will let you know then... email_reply_trimmer-0.2.0/test/trimmed/embedded_ception.txt0000644000004100000410000000004514741225055024241 0ustar www-datawww-dataThis is the reply. Thanks, Some One email_reply_trimmer-0.2.0/test/trimmed/embedded_email_dutch_1.txt0000644000004100000410000000014214741225055025274 0ustar www-datawww-dataNice of you to pick it up! Could you make a PR? Then other people can use it too. Would be great. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_quote_text.txt0000644000004100000410000000013014741225055026143 0ustar www-datawww-datawhen I said looks possible, I pointed to rack because that's still the web server level email_reply_trimmer-0.2.0/test/trimmed/embedded_email_russian_1.txt0000644000004100000410000000006314741225055025653 0ustar www-datawww-dataWhy don't you override particular strings with JS? email_reply_trimmer-0.2.0/test/trimmed/embedded_email_19.txt0000644000004100000410000000041014741225055024174 0ustar www-datawww-dataI had a really hard time with the official guide, so when I finally figured it out, I wrote one of my own: http://ryanlue.com/posts/2017-02-18-how-to-publish-a-gem Let me know if you like it (or if you don't) – any feedback is highly appreciated! —Ryan email_reply_trimmer-0.2.0/test/trimmed/retains_spaces_and_formatting.txt0000644000004100000410000000012714741225055027047 0ustar www-datawww-dataFormatting and spaces - A - B - C should be retained - Item #1 - Item #2 email_reply_trimmer-0.2.0/test/trimmed/embedded_email_german_6.txt0000644000004100000410000000043314741225055025446 0ustar www-datawww-dataIch habe konzeptionell eine Präferenz für die zweite Option. Die 2 VLs stellen die Inhalte vor, und präsentieren diese in einen größeren Kontext. Dann beginnt das Training der technischen Finessen mit Trainingsblatt, Trainingsvideos usw. Bin gleichzeitig robust, sofern nötig. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_16.txt0000644000004100000410000000061614741225055024201 0ustar www-datawww-data> From: "Albert Wagner" > > > Some guy at ibraheem@localhost(?) needs to be unsubscribed. I > > keep getting bounces from his ISP everytime I post. Surely, > > everyone else is getting the same? > > Surely it doesn't need to be said anymore, but I *still* am. > What's happening with this? Yep, me too, although I bet due to RubyConf/OOPSLA, it may be a little longer yet... email_reply_trimmer-0.2.0/test/trimmed/usenet.txt0000644000004100000410000000005614741225055022274 0ustar www-datawww-dataMal sehen was hier mit der Signatur passiert! email_reply_trimmer-0.2.0/test/trimmed/forwarded_apple.txt0000644000004100000410000000005714741225055024130 0ustar www-datawww-dataThis email has been forwarded from Apple Mail. email_reply_trimmer-0.2.0/test/trimmed/quote_and_text.txt0000644000004100000410000000005314741225055024011 0ustar www-datawww-data> This is a quote. And this is some text. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_spanish_1.txt0000644000004100000410000000045714741225055025643 0ustar www-datawww-dataI've configured Twitter Authentication, so this error happends on the application, after twitter posts to my discourse install via the callback. In the front error I can get a correct message saying "Something waa wrong, check you usename and password" and in the backend I see that error in the logs. email_reply_trimmer-0.2.0/test/trimmed/email_headers_2.txt0000644000004100000410000000003614741225055023772 0ustar www-datawww-dataThis is a reply from Outlook! email_reply_trimmer-0.2.0/test/trimmed/embedded_email_ukrainian.txt0000644000004100000410000000003614741225055025730 0ustar www-datawww-dataСпасибо еще раз. email_reply_trimmer-0.2.0/test/trimmed/embedded_email_12.txt0000644000004100000410000000000614741225055024166 0ustar www-datawww-dataOne 1 email_reply_trimmer-0.2.0/test/trimmed/embedded_email_french_2.txt0000644000004100000410000000003014741225055025427 0ustar www-datawww-dataThanks for your answer. email_reply_trimmer-0.2.0/test/test_email_reply_trimmer.rb0000644000004100000410000000457314741225055024224 0ustar www-datawww-data# frozen_string_literal: true require "minitest/autorun" require "email_reply_trimmer" class TestEmailReplyTrimmer < Minitest::Test EMAILS = Dir["test/emails/*.txt"].map { |path| File.basename(path) } TRIMMED = Dir["test/trimmed/*.txt"].map { |path| File.basename(path) } ELIDED = Dir["test/elided/*.txt"].map { |path| File.basename(path) } def test_all_emails_have_a_matching_reply assert_equal(EMAILS, TRIMMED, "Files in /emails and /trimmed folders should match 1-to-1.") end def test_all_emails_have_a_matching_elided assert_equal(EMAILS, ELIDED, "Files in /emails and /elided folders should match 1-to-1.") end def test_normalize_line_endings_email_has_windows_line_endings assert_match(/\r\n/, File.read("test/emails/normalize_line_endings.txt")) end def test_is_reply_at_end? Timeout::timeout(1) { assert_nil(EmailReplyTrimmer.send(:is_reply_at_end?, "bq" * 100)) } end EMAILS.each do |filename| name = File.basename(filename, ".txt") define_method("test_#{name}") do assert_equal(trimmed(filename), trim(filename), "[TRIMMED] EMAIL: #{filename}") assert_equal(elided(filename), elide(filename), "[ELIDED] EMAIL: #{filename}") end end EMBEDDED_EMAILS = %w{ email_headers_1 email_headers_2 email_headers_3 email_headers_4 embedded_email_10 embedded_email_german_3 embedded_email_spanish_2 forwarded_message forwarded_gmail forwarded_apple } EMBEDDED_EMAILS.each do |name| filename = "#{name}.txt" define_method("test_embedded_extraction_for_#{name}") do e, b = extract_embedded_email(filename) assert_equal(e, embedded(filename), "[EMBEDDED] EMAIL: #{filename}") assert_equal(b, before(filename), "[BEFORE] EMAIL: #{filename}") end end def trim(filename) EmailReplyTrimmer.trim(email(filename)) end def elide(filename) EmailReplyTrimmer.trim(email(filename), true)[1] end def extract_embedded_email(filename) EmailReplyTrimmer.extract_embedded_email(email(filename)) end def email(filename) File.read("test/emails/#{filename}").strip end def trimmed(filename) File.read("test/trimmed/#{filename}").strip end def elided(filename) File.read("test/elided/#{filename}").strip end def embedded(filename) File.read("test/embedded/#{filename}").strip end def before(filename) File.read("test/before/#{filename}").strip end end email_reply_trimmer-0.2.0/test/matchers/0000755000004100000410000000000014741225055020374 5ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/matchers/does_not_contain_embedded_email.txt0000644000004100000410000000015514741225055027443 0ustar www-datawww-data> am 09.09.2017 um 21:42 sssssss ßßßßßßßß fffffff > in message from sssssss ßßßßßßßß fffffffemail_reply_trimmer-0.2.0/test/emails/0000755000004100000410000000000014741225054020037 5ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/emails/embedded_email_13.txt0000644000004100000410000000054714741225054024011 0ustar www-datawww-datayes we're fine thanks At 6/16/2016 08:32 PM, you wrote: >codinghorror >Jeff Atwood co-founder >June 17 > >Sorry I got a little mixed up with all the incoming replies. Are you >able to log in? > >Use your email address and "forgot password" if you need it reset. email_reply_trimmer-0.2.0/test/emails/block_code_spacers.txt0000644000004100000410000000022314741225054024401 0ustar www-datawww-dataThis is a long email with embedded code. ``` # This should not be deleted # # Or trimmed # It is code #### Code code code ``` End of the email. email_reply_trimmer-0.2.0/test/emails/embedded_email_portuguese.txt0000644000004100000410000000072014741225054025761 0ustar www-datawww-dataOlá, Qualquer dúvida estamos ai. Em 2 de fevereiro de 2015 10:58, discourse < info@discourse.org> escreveu: > discourse > February 2 > > Bom dia. Obrigado pela atenção > ------------------------------ > > To respond, reply to this email or visit > https://meta.discourse.org/ in your browser. > > To unsubscribe from these emails, visit your user preferences > . > email_reply_trimmer-0.2.0/test/emails/embedded_email_russian_2.txt0000644000004100000410000000131314741225054025463 0ustar www-datawww-dataYes. 20 окт. 2016 г. 19:37 пользователь "Rafael dos Santos Silva" < meta@discoursemail.com> написал: > Falco Rafael dos Santos Silva > team > October 20 > > Are you using our official docker install? > > If you are, try a rebuild: > > ssh root@server > cd /var/discourse > ./launcher rebuild app > > ------------------------------ > > Visit Topic or > reply to this email to respond. > > To unsubscribe from these emails, click here > > . > email_reply_trimmer-0.2.0/test/emails/forwarded_gmail.txt0000644000004100000410000000141214741225054023724 0ustar www-datawww-dataThis email has been forwarded from Gmail. ---------- Forwarded message --------- From: Foo Discourse Date: Tue, Jan 01, 2019 at 12:00 PM Subject: This email is going to be forwarded To: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi auctor lacus in metus vehicula, non dictum mi consequat. Nunc eget quam sit amet dolor scelerisque cursus. Etiam laoreet lectus a rutrum sollicitudin. Nullam sit amet lorem id ante lobortis fringilla. Duis dictum tempus sem et ultrices. Sed ac lectus ante. Vivamus interdum, risus non tincidunt accumsan, purus mi accumsan dolor, vitae euismod turpis orci ut est. Integer ut ante eu velit dignissim ullamcorper non id nibh. Nulla auctor magna erat, et posuere sapien gravida convallis. email_reply_trimmer-0.2.0/test/emails/embedded_email_polish_2.txt0000644000004100000410000000041614741225054025300 0ustar www-datawww-dataHi Neil, Thanks for prompt response! 23 mar 2017 21:25 "Neil Lalonde" napisał(a): > neil Neil Lalonde > Team > March 23 > > I have made required changes. Enjoy! email_reply_trimmer-0.2.0/test/emails/normalize_line_endings.txt0000644000004100000410000000004414741225054025314 0ustar www-datawww-dataEmail with windows line endings email_reply_trimmer-0.2.0/test/emails/embedded_email_german_4.txt0000644000004100000410000000076614741225054025265 0ustar www-datawww-data Hi there! I am replying from my german Google Inbox. Max Mustermann schrieb am Fr., 28. Apr. 2017 um 11:53 Uhr: > max_2 > April 28 > Hi there! you should be getting a mail. > ------------------------------ > Visit Topic > or reply to this email to respond. > To unsubscribe from these emails, click here > > . email_reply_trimmer-0.2.0/test/emails/embedded_email_chinese.txt0000644000004100000410000000026614741225054025202 0ustar www-datawww-dataHi Erlend Sogge Heggen, Thank you for your reply. > 在 2016年12月12日,下午8:45,Erlend Sogge Heggen 写道: > fu.zhang: > Some random question > email_reply_trimmer-0.2.0/test/emails/embedded_email_german_1.txt0000644000004100000410000000162314741225054025253 0ustar www-datawww-dataalright, no big deal - I assume in this case the code needs some refactoring to better support I18N anyway. codinghorror via Discourse Meta schrieb: >codinghorror posted in 'Visually separate "Like it too" / "Undo like"' >on Discourse Meta: > >--- >So turns out this is sort of a complex change for something so small. >Our code at that location assumes all phrases end in periods. Changing >that conditionally to sometimes an em-dash, sometimes not, is kind of.. >a pain in the butt. > >Will keep an eye on it, but low priority given the work required. > >--- >To respond, reply to this email or visit >http://meta.discourse.org/t/visually-separate-like-it-too-undo-like/8464/3 >in your browser. > >To unsubscribe from these emails, visit your [user >preferences](http://meta.discourse.org/user_preferences). -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. email_reply_trimmer-0.2.0/test/emails/embedded_email_18.txt0000644000004100000410000000020314741225054024003 0ustar www-datawww-dataOn 8 May 2017 17:34, "Andy Jones" wrote: nil && 2.0 + 12.0 It should be: 2.0 && 2.0 + 12.0 email_reply_trimmer-0.2.0/test/emails/forwarded_message.txt0000644000004100000410000000033214741225054024257 0ustar www-datawww-data---------- Forwarded message ---------- From: Some One Date: Thu, Jan 28, 2016 at 4:00 PM Subject: Some subject that spans over 2 lines To: infod@discourse.org This is a forwarded email. And just that. email_reply_trimmer-0.2.0/test/emails/embedded_email_2.txt0000644000004100000410000000103314741225054023716 0ustar www-datawww-dataI have checked the available documentation/links to find out the end points. If there are some other endpoints, can you please tell the endpoints Best Regards ---- On Tue, 22 Dec 2015 14:17:36 +0530 Sam Saffron<info@discourse.org> wrote ---- sam Sam Saffron co-founder December 22 You are not using the right endpoint, go to user profile / badges, have a look at dev tools to see what it calls There is a discrete endpoint to get all the badges a user has To respond, reply to this email or visit the topic. email_reply_trimmer-0.2.0/test/emails/text_only.txt0000644000004100000410000000002614741225054022623 0ustar www-datawww-dataEmail with only text. email_reply_trimmer-0.2.0/test/emails/embedded_email_7.txt0000644000004100000410000000044014741225054023724 0ustar www-datawww-dataThis is a line before the embedded email. On Tue, 2011-03-01 at 18:02 +0530, Some One wrote: > Hello > > This is the embedded email. This is some text after the embedded email. C> C> This is another part of the embedded email. C> C> _______________________ And here's my signature. email_reply_trimmer-0.2.0/test/emails/embedded_email_polish_1.txt0000644000004100000410000000173714741225054025306 0ustar www-datawww-dataOh, I've forgot to add. MIT -- Łukasz Jan Niemier Dnia 14 lip 2015 o godz. 00:25 Michael Downey napisał(a): > > downey Michael Downey Senior Tester > July 13 > Sounds interesting. What is the license? > > To respond, reply to this email or visit https://meta.discourse.org/t/static-pages-plugin/31027/2 in your browser. > > Previous Replies > > hauleth > July 13 > WIP > > Location: https://github.com/hauleth/low_voltage > > Authors: @hauleth > > Simple plugin to add "static" pages to Discourse instance. For now usage is kind of complicated at it needs to fetch static pages from app/views/pages. Ideas for future implements: > > Create DB model to hold pages > Adding admin page that will allow editing that pages > Custom styles for static pages > Any help appreciated. > > To respond, reply to this email or visit https://meta.discourse.org/t/static-pages-plugin/31027/2 in your browser. > > To unsubscribe from these emails, visit your user preferences. email_reply_trimmer-0.2.0/test/emails/embedded_email_german_2.txt0000644000004100000410000000102714741225054025252 0ustar www-datawww-dataHey:) Am 03.02.2016 3:35 nachm. schrieb Max Mustermann : > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.email_reply_trimmer-0.2.0/test/emails/email_headers_1.txt0000644000004100000410000000036214741225054023603 0ustar www-datawww-dataThis is a reply from Outlook! ------------------------------ *From:* Outlook user *Sent:* 2016-01-27 *To:* info@discourse.org *Subject:* Are you using Outlook? Just some random text wich is part of the embedded email... Outlook user email_reply_trimmer-0.2.0/test/emails/embedded_email_norwegian.txt0000644000004100000410000000047514741225054025557 0ustar www-datawww-dataThanx :-) Sendt fra min iPad Den 15. jun. 2016 kl. 20.42 skrev Jeff Atwood >: codinghorror Jeff Atwood co-founder June 15 Enable tags in your admin, site settings. email_reply_trimmer-0.2.0/test/emails/embedded_email_german_3.txt0000644000004100000410000000032414741225054025252 0ustar www-datawww-dataGruß Discourse -----Ursprüngliche Nachricht----- Von: Discourse Team Gesendet: Don 11 Februar 2016 11:23 An: Some One Betreff: Some Subject Hallo! Wie geht es Ihnen heute? email_reply_trimmer-0.2.0/test/emails/embedded_email_german_5.txt0000644000004100000410000000103714741225054025256 0ustar www-datawww-dataOkay. Will give it a whirl. Erlend Sogge Heggen schrieb am Di., 16. Aug. 2016 um 12:52 Uhr: > erlend_sh Erlend Sogge Heggen > team > August 16 > > Hi Bob, > > Sure, it sounds like your requirements would fit our Standard plan. I > suggest you sign up for a free trial, as that will be the best way to see > for yourself if we support the kind of custom styling > > Sincerely, > > Erlend > -- Viele Grüße / Best regards Bob email_reply_trimmer-0.2.0/test/emails/embedded_email_17.txt0000644000004100000410000000141414741225054024007 0ustar www-datawww-dataOn 15 May 2017 19:32, "Nomadic Sprite" wrote: The intent was to return nil when the first value was nil. That was the op's issue. If one of the values was nil, she/he wanted nil. Nil && anything_else will always return nil, and I will not evaluate the second clause. On 8 May 2017 6:51 pm, "Andy Jones" wrote: > >>>>>>>> > It should be: > 2.0 && 2.0 + 12.0 > <<<<<<<<< > > Ah! Yes, that works. > > People are intent on not understanding, aren't they. def nil_add_12 f f && f + 12.0 end Generalised to two parameters: def nil_add a, b a && b && a + b end The only quirk is the way they handle `false`. This is not tested, but it may be possible to do this, too: f&.+ b Cheers email_reply_trimmer-0.2.0/test/emails/strip.txt0000644000004100000410000000006114741225054021736 0ustar www-datawww-data Strip leading and trailing empty lines. email_reply_trimmer-0.2.0/test/emails/embedded_email_3.txt0000644000004100000410000000147214741225054023726 0ustar www-datawww-dataSure, [Bitnami](http://bitnami.com/stack/discourse) supports EC2 and there are several topics here about it. Our [official install guide]( https://github.com/discourse/discourse/blob/master/docs/INSTALL-ubuntu.md) also works great on an Amazon EC2 provisioned virtual machine with very little change. On Thu, Jun 20, 2013 at 4:18 PM, matt2 via Discourse Meta < info@discourse.org> wrote: > matt2 posted in 'Discourse on Ubuntu: Video Walkthrough' on Discourse Meta: > ------------------------------ > > Has anyone tried on AWS? a public AMI would be awesome. > ------------------------------ > > Please visit this link to respond: > http://meta.discourse.org/t/discourse-on-ubuntu-video-walkthrough/7478/4 > > To unsubscribe from these emails, visit your user preferences > . > email_reply_trimmer-0.2.0/test/emails/embedded_email_swedish.txt0000644000004100000410000000103014741225054025220 0ustar www-datawww-dataHi everyone! Here you can find the pictures that I took https://foo.bar It was a pleasure to support this event. Best regards Some One Från: Foo Bar [mailto:noreply@foo.bar] Skickat: den 5 juni 2017 12:22 Till: someone@domain.com Ämne: [WAT] Photos from the symposium If you have any pictures from any parts of the symposium that you are willing to share, please reply to this post to share them (you can simply copy and paste or drag'n'drop them into the text). Here are the group pictures we took on Wednesday after lunch. email_reply_trimmer-0.2.0/test/emails/email_headers_5.txt0000644000004100000410000000246514741225054023615 0ustar www-datawww-dataHi Erlend, I don’t know what a “legally recognised educational institution” means for you. We’re based in Sweden and we provide education to our people across the globe. We want to try Discourse in small scale first to see it will add value to our communities. Best regards, //Jef From: Erlend Sogge Heggen Reply-To: Erlend Sogge Heggen Date: Wednesday, 5 April 2017 at 17:01 To: Jef Subject: [Discourse Meta] [PM] Discourse for Communities of Practice, educational organisation erlend_sh Erlend Sogge Heggen Team April 5 Hi Jef, Is your University a legally recognised educational institution? Otherwise I'm afraid you're not eligible for this discount. Sincerely, Erlend This email message and any attachments may contain confidential information and may be privileged. If you are not the intended recipient or otherwise not authorized to receive this message, you are prohibited to use, copy, disclose or take any action based on this email or any information contained herein. If you are not the intended recipient, please advise the sender immediately by replying to this email and permanently delete this message and any attachments from your system. email_reply_trimmer-0.2.0/test/emails/embedded_email_11.txt0000644000004100000410000000006314741225054024000 0ustar www-datawww-dataBefore 2016-03-03 17:21 GMT+01:00 Some One After email_reply_trimmer-0.2.0/test/emails/embedded_email_1.txt0000644000004100000410000000035214741225054023720 0ustar www-datawww-dataThis is before the embedded email. On Wed, Sep 25, 2013, at 03:57 PM, richard_clark wrote: Richard> This is the embedded email This is after the embedded email and will not show up because 99% of the times this is the signature... email_reply_trimmer-0.2.0/test/emails/spam_1.txt0000644000004100000410000001030414741225054021756 0ustar www-datawww-data> On Thu, Apr 30, 2020 at 10:07 AM, "someone" wrote: > >> On Thu, Apr 30, 2020 at 10:07 AM, "someone" wrote: >> >>> On Thu, Apr 30, 2020 at 10:07 AM, "someone" wrote: >>> >>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>> >>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>> >>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>> >>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>> >>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>> >>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>> >>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>> >>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>> >>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>> >>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote:email_reply_trimmer-0.2.0/test/emails/embedded_email_15.txt0000644000004100000410000000025614741225054024010 0ustar www-datawww-data[message body] / Greetings 2017-02-05 13:29 GMT+02:00 Very long author name < notifications@forum.some-discourse-host.local>: > [Original Messages is quoted here] > [...] email_reply_trimmer-0.2.0/test/emails/embedded_email_6.txt0000644000004100000410000000031314741225054023722 0ustar www-datawww-dataEnsuring that ON_DATE_SOMEONE_WROTE_REGEXES is not greedy. On this day I wrote something which was very interesting. On 28 Jan 2016, at 19:04, Some One wrote: > Did you write something interesting? email_reply_trimmer-0.2.0/test/emails/embedded_email_14.txt0000644000004100000410000000071714741225054024011 0ustar www-datawww-dataI just saw the standard plan has the slack integration. Thank you! 2016-10-24 15:36 GMT+02:00 Foo bar < info@foo.bar>: > Thank you so much Erlend, very thanks! > > 2016-10-24 15:03 GMT+02:00 Erlend Sogge Heggen : > >> erlend_sh Erlend Sogge >> Heggen team >> October 24 >> >> I received your application and I've replied with setup instructions. email_reply_trimmer-0.2.0/test/emails/signatures.txt0000644000004100000410000000174014741225054022766 0ustar www-datawww-dataThis email was sent from way too much different devices ;) Envoyé depuis mon iPhone Von meinem Mobilgerät gesendet Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. Someone from mobile From My Iphone 6 Sent via mobile Sent with Airmail Sent from Windows Mail Sent from Mailbox Sent from Mailbox for iPad Sent from Yahoo Mail on Android Sent from my TI-85 Sent from my iPhone Sent from my iPod Sent from my Alcatel Flash2 Sent from my mobile device Sent from my cell, please excuse any typos. Sent from my Samsung Galaxy s5 Octacore device Sent from my HTC M8 Android phone. Please excuse typoze Sent from my Windows 8 PC <> (sent from a phone) (Sent from mobile device) 從我的 iPhone 傳送 Sent from [mail](https://go.microsoft.com/fwlink/?LinkId=550986) for windows 10 Verzonden met BlackBerry Work Get Outlook for iOShttps://aka.ms/o0ukef Get [Outlook for Android](https://aka.ms/ghei36) email_reply_trimmer-0.2.0/test/emails/embedded_email_italian.txt0000644000004100000410000000132114741225054025176 0ustar www-datawww-dataOk, will do. As a test, this is a reply from a webmail client. > Il 26 marzo 2016 alle 13.16 Sam Saffron ha scritto: > > > > > > We need specific examples of failures, PM full source of emails to > @zogstrip > > Posted by sam on 03/26/2016 > > > > > > > --- > [Visit Topic](https://meta.discourse.org/t/email-reply-parsing/41597/2) > or reply to this email to respond > > To stop receiving notifications for this particular topic, [click > here](https://meta.discourse.org/t/email-reply-parsing/41597/unsubscribe). > To unsubscribe from these emails, change your [user > preferences](https://meta.discourse.org/my/preferences) -- Stefano Costa @stekosteko Editor, Journal of Open Archaeology Data email_reply_trimmer-0.2.0/test/emails/quote_only.txt0000644000004100000410000000003114741225054022770 0ustar www-datawww-data> Email with only quote. email_reply_trimmer-0.2.0/test/emails/delimiters.txt0000644000004100000410000000022114741225054022734 0ustar www-datawww-dataThis is not a ---------- delimiter. But there should be no delimiter after this line ᐧ -- *** #### ~~~~~ ====== _______ ++++++++ ------- email_reply_trimmer-0.2.0/test/emails/embedded_email_9.txt0000644000004100000410000000006414741225054023730 0ustar www-datawww-dataBar *-------- Original Message --------* THE END. email_reply_trimmer-0.2.0/test/emails/embedded_email_10.txt0000644000004100000410000000172614741225054024006 0ustar www-datawww-dataThank you. Sent from Outlook Mobile On Sun, Feb 7, 2016 at 12:12 AM -0800, "Arpit Jalan" > wrote: Hi Some, https://meta.discourse.org is now running on latest Discourse version! Regards, Arpit On Fri, Feb 5, 2016 at 10:43 AM Arpit Jalan > wrote: Okay, sure! Arpit On Fri, 5 Feb 2016 at 10:42, Some One > wrote: Arpit, Yes that sounds good. Sent from Outlook Mobile _____________________________ From: Arpit Jalan > Sent: Thursday, February 4, 2016 10:05 AM Subject: Meta Discourse update To: Some One >, Discourse Team > Hi Some One, Time to update meta to the latest Discourse version! Do you want me to take care of it? Regards, Arpit email_reply_trimmer-0.2.0/test/emails/embedded_email_4.txt0000644000004100000410000000117514741225054023727 0ustar www-datawww-dataIf I do exactly that, then the test group won't be saved after a refresh of the page. 2013/7/20 sam via Discourse Meta | sam replied to your post in 'Unable to create group' on Discourse Meta: | ------------------------------ | | Is this an error handling thing, if you name the group "test" and only | place yourself in it, does it persist? | ------------------------------ | | To respond, reply to this email or visit | http://meta.discourse.org/t/unable-to-create-group/8198/6 in your browser. | | To unsubscribe from these emails, visit your user preferences | . | email_reply_trimmer-0.2.0/test/emails/embedded_email_french_1.txt0000644000004100000410000000026514741225054025250 0ustar www-datawww-dataC'est super ! Le 4 janv. 2016 19:03, "Neil Lalonde" a écrit : > team > January 4 > > Discourse c'est top ! > > Neil > email_reply_trimmer-0.2.0/test/emails/embedded_email_spanish_2.txt0000644000004100000410000000067114741225054025452 0ustar www-datawww-dataIgual que siempre (inclusive ahora), sin nada raro :/ -----Mensaje original----- De: "Miguel" Enviado: =E2=80=8E16/=E2=80=8E02/=E2=80=8E2016 14:53 Para: "discourse" Asunto: [MP]Parser del email Visita el tema o responde a este email para publicar. Para no recibir m=C3=A1s notificaciones de este tema en particular, haz cli= c aqu=C3=AD. Para darte de baja de estos emails, cambia tus preferencias = email_reply_trimmer-0.2.0/test/emails/email_headers_3.txt0000644000004100000410000000121314741225054023601 0ustar www-datawww-dataThis is the actual reply. From: Some One > Reply-To: "For.bar" > Date: Monday, February 8, 2016 11:44 AM To: Discourse > Subject: VIS Here's an email with some very important stuff. ________________________________ Reply here or hit reply from your inbox to help members by sharing your ideas. Mute this topic to stop getting updates, we'll send you the next one. DO NOT FORWARD THIS EMAIL! email_reply_trimmer-0.2.0/test/emails/embedded_email_5.txt0000644000004100000410000000023714741225054023726 0ustar www-datawww-dataI am testing the SOMEONE_EMAIL_WROTE_REGEX regular expression. Some One wrote: Something that will be considered as the embedded email. email_reply_trimmer-0.2.0/test/emails/dual_embedded.txt0000644000004100000410000000034414741225054023337 0ustar www-datawww-dataThis is the 3rd email. On Mon, Feb 1, 2016 at 4:58 AM -0800, "Some One" wrote: This is the 2nd email. On Sun, Jan 31, 2016 at 9:58 PM -0800, "Another One" wrote: This is the 1st email. email_reply_trimmer-0.2.0/test/emails/embedded_email_8.txt0000644000004100000410000000006214741225054023725 0ustar www-datawww-dataFoo -------- Original Message -------- THE END. email_reply_trimmer-0.2.0/test/emails/spam_2.txt0000644000004100000410000001737514741225054021776 0ustar www-datawww-dataLorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet dictum lectus, at efficitur neque. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aenean dictum pulvinar tortor non ultricies. Maecenas cursus lobortis dolor quis feugiat. Integer efficitur, mauris sit amet lobortis consectetur, urna augue feugiat mi, et tempor dui sapien vehicula dolor. Aenean sit amet ultrices tortor. Praesent vel porttitor risus, eu fringilla nibh. Phasellus sollicitudin elit id tortor dapibus, at euismod odio sodales. Ut est ex, pharetra malesuada dui maximus, ullamcorper fringilla turpis. Nullam gravida, elit blandit commodo blandit, velit sem ornare odio, eu ultricies arcu ex sit amet libero. Vestibulum eu fringilla ante, nec blandit nunc. Nullam nec viverra ipsum. Nullam semper eu urna id facilisis. Nam blandit dictum eros, sit amet auctor dui fermentum a. Quisque finibus magna nisi, ac hendrerit purus lacinia ut. Donec maximus, enim id tincidunt vulputate, libero ex tempor elit, vitae sagittis libero leo sed leo. Quisque non gravida ex, efficitur interdum neque. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus rhoncus nisi vitae turpis bibendum luctus. Duis placerat aliquam lectus, pellentesque commodo dolor hendrerit quis. Suspendisse ipsum sapien, interdum ac felis ac, mattis varius neque. Maecenas nec risus sit amet ex aliquam vestibulum. Maecenas a turpis et turpis volutpat congue. > On Thu, Apr 30, 2020 at 10:07 AM, "someone" wrote: > >> Hello world! >> >> On Thu, Apr 30, 2020 at 10:07 AM, "someone" wrote: >> >>> Hello world! >>> >>> On Thu, Apr 30, 2020 at 10:07 AM, "someone" wrote: >>> >>>> Hello world! >>>> >>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>> >>>>> Hello world! >>>>> >>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>> >>>>>> Hello world! >>>>>> >>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>> >>>>>>> Hello world! >>>>>>> >>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>> >>>>>>>> Hello world! >>>>>>>> >>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>> >>>>>>>>> Hello world! >>>>>>>>> >>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>> >>>>>>>>>> Hello world! >>>>>>>>>> >>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>> >>>>>>>>>>> Hello world! >>>>>>>>>>> >>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>> >>>>>>>>>>>> Hello world! >>>>>>>>>>>> >>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Hello world! >>>>>>>>>>>>> >>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>email_reply_trimmer-0.2.0/test/emails/email_headers_4.txt0000644000004100000410000000201614741225054023604 0ustar www-datawww-datatest Da: Sally54721 Risposta: Testy McTesterson / Test Data: giovedì 8 ottobre 2015 15:26 A: Testy McTesterson Oggetto: Test | Issue (#3) [@example](http://example.com/u/example) — Reply to this email directly or [view it on GitLab](http://git.example.com/example/Test/issues/3). {"@context":"[http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View](http://schema.org%22,%22@type%22:%22EmailMessage%22,%22action%22:%7B%22@type%22:%22ViewAction%22,%22name%22:%22View) Issue","url":"[http://git.example.com/example/Test/issues/3"}](http://git.example.com/example/Test/issues/3%22%7D)} You're receiving this notification because you are a member of the Testy McTesterson / Test project team. -- Questo messaggio e' stato analizzato con Libra ESVA ed e' risultato non infetto. [Clicca qui per segnalarlo come spam.](http://esva.example.com/cgi-bin/learn-msg.cgi?id=1234567890.ABCDEF) [Clicca qui per metterlo in blacklist](http://esva.example.com/cgi-bin/learn-msg.cgi?blacklist=1&id=1234567890.ABCDEF) email_reply_trimmer-0.2.0/test/emails/embedded_email_dutch_2.txt0000644000004100000410000000466014741225054025116 0ustar www-datawww-dataThe adblocker idea from @elberet might be it. Regretfully I only have time to test this in 2 weeks. I will let you know then... Op 16 aug. 2014 05:13 schreef "codinghorror" het volgende geschreven: > codinghorror > August 15 > > Hmm, if that is true we need to fix that somehow. > > To respond, reply to this email or visit > https://meta.discourse.org/t/configuring-google-oauth2-login-for-discourse/15858/38 > in your browser. > ------------------------------ > Previous Replies elberet > August 15 > > Are you using an ad blocker? Adblock Plus, for instance, removes the login > buttons. > bwvanmanen > August 15 > > The 'Sign in with Google' button does appear when I try to log in from > another pc. However the button does not appear on my pc using another > browser. > bwvanmanen > August 15 > > I followed the steps from the opening post, but I don't get a google login > option when users try to log in. There is just the normal user/password, > the word OR, and nothing next to that. Any clues? > > neil > August 1 > > Glad you got it fixed. It's good to have the resolution in this topic too. > I added a link to your topic in the first post. > jgehrcke > July 31 > > Sorry, that was kind of a cross-posting. Indeed, I got that fixed as you > say, as reported here: > jgehrcke said: > > I understand the solution you are proposing. The proper fix, without > customizing the disource.conf in the container, however, would be to inform > the web application about the protocol used via an HTTP header, as you are > also suggesting. The question is: does Discourse respect/support > X-Forwarded-Protocol? Then I can easily configure the nginx reverse proxy > with proxy_set_header X-Forwarded-Protocol $scheme; Edit: I can confirm > that properly setting the X-Forwarded-Proto header in the nginx … > > Thanks and sorry for not reporting back here! > ------------------------------ > > To respond, reply to this email or visit > https://meta.discourse.org/t/configuring-google-oauth2-login-for-discourse/15858/38 > in your browser. > > To unsubscribe from these emails, visit your user preferences > . > email_reply_trimmer-0.2.0/test/emails/embedded_ception.txt0000644000004100000410000000124214741225054024051 0ustar www-datawww-dataThis is the reply. Thanks, Some One On Mon, Feb 1, 2016 at 6:32 PM, Jeff Atwood wrote: > This is Jeff's reply. > > On Mon, Feb 1, 2016 at 7:50 AM, Some One > wrote: > >> Great! >> >> Many thanks. >> >> ~s >> >> On Mon, Feb 1, 2016 at 5:05 AM Discourse Team wrote: >> >>> WAT? >>> >>> On Wed, Jan 27, 2016 at 10:48 PM, Some One < >>> foo@bar.com> wrote: >>> >>>> Hi Team, >>>> >>>> How is it doing? >>>> >>>> Some One >>>> >>>> On Wed, Jan 27, 2016 at 10:10 AM Discourse Team >>>> wrote: >>>> >>>>> Hello :waves_hand: >>>>> >>>> >>> > -- Some One Community Manager foo@bar.com (123) 456-7890 email_reply_trimmer-0.2.0/test/emails/embedded_email_dutch_1.txt0000644000004100000410000000071614741225054025113 0ustar www-datawww-dataNice of you to pick it up! Could you make a PR? Then other people can use it too. Would be great. > Op 2 feb. 2015 om 05:28 heeft VannillaSky het volgende geschreven: > > > VannillaSky > February 2 > Solved. Going forward... > > To respond, reply to this email or visit https://meta.discourse.org/t/import-posts-from-facebook-group-into-discourse/6089/33 in your browser. > > To unsubscribe from these emails, visit your user preferences. email_reply_trimmer-0.2.0/test/emails/embedded_email_quote_text.txt0000644000004100000410000000063114741225054025761 0ustar www-datawww-dataOn Mon, Aug 19, 2013 at 2:36 AM, SomeOne via Discourse Meta < info@discourse.org> wrote: > This seems like a problem that would be better solved at the web server > level, rather than by the application. If nothing else, adding an instance > of Nginx as an SSL/TLS reverse-proxy would very quickly take care of this. > when I said looks possible, I pointed to rack because that's still the web server level email_reply_trimmer-0.2.0/test/emails/embedded_email_russian_1.txt0000644000004100000410000000173314741225054025470 0ustar www-datawww-dataWhy don't you override particular strings with JS? понедельник, 6 октября 2014 г. пользователь lidel написал: > lidel > October 6 > winterbox: > > Do you have any plan to make this plugin? > > discourse-locale-override > is just a hack, and > as @sam pointed out, it only works > if you update your instance via commandline. I created it to speed up my > work on pl_PL translation only. > > I see there is a need for a proper plugin (this and other threads), but > until such plugin appears this is a semi-working workaround. > ------------------------------ > > To respond, reply to this email or visit > https://meta.discourse.org/t/use-custom-translation-file/13786/41 in your > browser. > > To unsubscribe from these emails, visit your user preferences > . > email_reply_trimmer-0.2.0/test/emails/embedded_email_19.txt0000644000004100000410000000041014741225054024004 0ustar www-datawww-dataI had a really hard time with the official guide, so when I finally figured it out, I wrote one of my own: http://ryanlue.com/posts/2017-02-18-how-to-publish-a-gem Let me know if you like it (or if you don't) – any feedback is highly appreciated! —Ryan email_reply_trimmer-0.2.0/test/emails/retains_spaces_and_formatting.txt0000644000004100000410000000012714741225054026657 0ustar www-datawww-dataFormatting and spaces - A - B - C should be retained - Item #1 - Item #2 email_reply_trimmer-0.2.0/test/emails/embedded_email_german_6.txt0000644000004100000410000000112614741225054025256 0ustar www-datawww-dataIch habe konzeptionell eine Präferenz für die zweite Option. Die 2 VLs stellen die Inhalte vor, und präsentieren diese in einen größeren Kontext. Dann beginnt das Training der technischen Finessen mit Trainingsblatt, Trainingsvideos usw. Bin gleichzeitig robust, sofern nötig. Am 21.04.2016 17:48 schrieb "Einz Zwei" : > einz.zwei einz > zwei > 21. April > > Vielleicht noch eine wichtige Frage: > Wann sollten wir diese Trainingsvideos veröffentlichen, es gibt 2 email_reply_trimmer-0.2.0/test/emails/embedded_email_16.txt0000644000004100000410000000104314741225054024004 0ustar www-datawww-data> From: "Albert Wagner" > > > Some guy at ibraheem@localhost(?) needs to be unsubscribed. I > > keep getting bounces from his ISP everytime I post. Surely, > > everyone else is getting the same? > > Surely it doesn't need to be said anymore, but I *still* am. > What's happening with this? Yep, me too, although I bet due to RubyConf/OOPSLA, it may be a little longer yet... -- Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 email_reply_trimmer-0.2.0/test/emails/usenet.txt0000644000004100000410000000023014741225054022076 0ustar www-datawww-dataMal sehen was hier mit der Signatur passiert! -- Mit lieben Grüßen John Doe http://blog.john.doe www.facebook.com/johndoe Mobil: +12 345 6789 012 email_reply_trimmer-0.2.0/test/emails/forwarded_apple.txt0000644000004100000410000000143514741225054023741 0ustar www-datawww-dataThis email has been forwarded from Apple Mail. > Begin forwarded message: > > From: Foo Discourse > Subject: This email is going to be forwarded > Date: 01 January 2019 at 12:00:00 EET > To: bar@discourse.org > > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi auctor > lacus in metus vehicula, non dictum mi consequat. Nunc eget quam sit > amet dolor scelerisque cursus. Etiam laoreet lectus a rutrum > sollicitudin. Nullam sit amet lorem id ante lobortis fringilla. Duis > dictum tempus sem et ultrices. Sed ac lectus ante. Vivamus interdum, > risus non tincidunt accumsan, purus mi accumsan dolor, vitae euismod > turpis orci ut est. Integer ut ante eu velit dignissim ullamcorper non > id nibh. Nulla auctor magna erat, et posuere sapien gravida convallis. email_reply_trimmer-0.2.0/test/emails/quote_and_text.txt0000644000004100000410000000005314741225054023621 0ustar www-datawww-data> This is a quote. And this is some text. email_reply_trimmer-0.2.0/test/emails/embedded_email_spanish_1.txt0000644000004100000410000000305614741225054025451 0ustar www-datawww-dataI've configured Twitter Authentication, so this error happends on the application, after twitter posts to my discourse install via the callback. In the front error I can get a correct message saying "Something waa wrong, check you usename and password" and in the backend I see that error in the logs. El jueves, 21 de noviembre de 2013, codinghorror escribió: > codinghorror > November 21 > > How are you creating this user? Describe it step by step. > > To respond, reply to this email or visit > http://meta.discourse.org/t/error-creating-new-users-pg-numericvalueoutofrange/11046/2in your browser. > ------------------------------ > Previous Replies PabloC > November 21 > > Hi guys, > > While I create a new user, I'm finding this error in the logs : > > Processing by UsersController#create as */* > Parameters: {"name"=>"Ps4 Support Forum", "email"=>"pablocorral+ps4@gmail.com ", "username"=>"PS4SupportForum", "password_confirmation"=>"[FILTERED]", "challenge"=>"11a4ebe83d9b2a9e0d45bc50b457ee17"} > PG::NumericValueOutOfRange: ERROR: value "2201945804" is out of range for type integer > > Any idea? > > Tks! > ------------------------------ > > To respond, reply to this email or visit > http://meta.discourse.org/t/error-creating-new-users-pg-numericvalueoutofrange/11046/2in your browser. > > To unsubscribe from these emails, visit your user preferences > . > email_reply_trimmer-0.2.0/test/emails/email_headers_2.txt0000644000004100000410000000033414741225054023603 0ustar www-datawww-dataThis is a reply from Outlook! ________________________________________ From: Discourse пише: > meg Foo > > Август 30 > > Когда будет точное название, напишите в личку и мы поменяем название. > ------------------------------ > > Visit Message > > or reply to this email to respond. > > To unsubscribe from these emails, click here > > . > email_reply_trimmer-0.2.0/test/emails/embedded_email_12.txt0000644000004100000410000000031314741225054023777 0ustar www-datawww-dataOne 1 On Thu, 31 Mar 2016 at 11:16 Some One < mailto:Some One > wrote: Two 2 On Thu, 31 Mar 2016 at 10:05 Jeff Atwood < mailto:Jeff Atwood > wrote: Three 3 email_reply_trimmer-0.2.0/test/emails/embedded_email_french_2.txt0000644000004100000410000000052514741225054025250 0ustar www-datawww-dataLe 2016-11-16 02:22, Erlend Sogge Heggen a écrit : > erlend_sh [1] Erlend Sogge Heggen [1] team > November 16 > > Hello French guy, > >> is the back office also available in french like the front end ? > > Oui! > > Sincerely, > > Erlend > > * > > Links: > ------ > [1] https://meta.discourse.org/users/erlend_sh Thanks for your answer. email_reply_trimmer-0.2.0/test/elided/0000755000004100000410000000000014741225054020013 5ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/elided/embedded_email_13.txt0000644000004100000410000000051614741225054023761 0ustar www-datawww-dataAt 6/16/2016 08:32 PM, you wrote: >codinghorror >Jeff Atwood co-founder >June 17 > >Sorry I got a little mixed up with all the incoming replies. Are you >able to log in? > >Use your email address and "forgot password" if you need it reset. email_reply_trimmer-0.2.0/test/elided/block_code_spacers.txt0000644000004100000410000000000014741225054024346 0ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/elided/embedded_email_portuguese.txt0000644000004100000410000000065414741225054025743 0ustar www-datawww-dataEm 2 de fevereiro de 2015 10:58, discourse < info@discourse.org> escreveu: > discourse > February 2 > > Bom dia. Obrigado pela atenção > ------------------------------ > > To respond, reply to this email or visit > https://meta.discourse.org/ in your browser. > > To unsubscribe from these emails, visit your user preferences > . > email_reply_trimmer-0.2.0/test/elided/embedded_email_russian_2.txt0000644000004100000410000000130514741225054025440 0ustar www-datawww-data20 окт. 2016 г. 19:37 пользователь "Rafael dos Santos Silva" < meta@discoursemail.com> написал: > Falco Rafael dos Santos Silva > team > October 20 > > Are you using our official docker install? > > If you are, try a rebuild: > > ssh root@server > cd /var/discourse > ./launcher rebuild app > > ------------------------------ > > Visit Topic or > reply to this email to respond. > > To unsubscribe from these emails, click here > > . > email_reply_trimmer-0.2.0/test/elided/forwarded_gmail.txt0000644000004100000410000000133714741225054023706 0ustar www-datawww-data---------- Forwarded message --------- From: Foo Discourse Date: Tue, Jan 01, 2019 at 12:00 PM Subject: This email is going to be forwarded To: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi auctor lacus in metus vehicula, non dictum mi consequat. Nunc eget quam sit amet dolor scelerisque cursus. Etiam laoreet lectus a rutrum sollicitudin. Nullam sit amet lorem id ante lobortis fringilla. Duis dictum tempus sem et ultrices. Sed ac lectus ante. Vivamus interdum, risus non tincidunt accumsan, purus mi accumsan dolor, vitae euismod turpis orci ut est. Integer ut ante eu velit dignissim ullamcorper non id nibh. Nulla auctor magna erat, et posuere sapien gravida convallis. email_reply_trimmer-0.2.0/test/elided/embedded_email_polish_2.txt0000644000004100000410000000034714741225054025257 0ustar www-datawww-data23 mar 2017 21:25 "Neil Lalonde" napisał(a): > neil Neil Lalonde > Team > March 23 > > I have made required changes. Enjoy! email_reply_trimmer-0.2.0/test/elided/normalize_line_endings.txt0000644000004100000410000000000014741225054025260 0ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/elided/embedded_email_german_4.txt0000644000004100000410000000070014741225054025225 0ustar www-datawww-dataMax Mustermann schrieb am Fr., 28. Apr. 2017 um 11:53 Uhr: > max_2 > April 28 > Hi there! you should be getting a mail. > ------------------------------ > Visit Topic > or reply to this email to respond. > To unsubscribe from these emails, click here > > . email_reply_trimmer-0.2.0/test/elided/embedded_email_chinese.txt0000644000004100000410000000020314741225054025145 0ustar www-datawww-data> 在 2016年12月12日,下午8:45,Erlend Sogge Heggen 写道: > fu.zhang: > Some random question > email_reply_trimmer-0.2.0/test/elided/embedded_email_german_1.txt0000644000004100000410000000144414741225054025230 0ustar www-datawww-datacodinghorror via Discourse Meta schrieb: >codinghorror posted in 'Visually separate "Like it too" / "Undo like"' >on Discourse Meta: > >--- >So turns out this is sort of a complex change for something so small. >Our code at that location assumes all phrases end in periods. Changing >that conditionally to sometimes an em-dash, sometimes not, is kind of.. >a pain in the butt. > >Will keep an eye on it, but low priority given the work required. > >--- >To respond, reply to this email or visit >http://meta.discourse.org/t/visually-separate-like-it-too-undo-like/8464/3 >in your browser. > >To unsubscribe from these emails, visit your [user >preferences](http://meta.discourse.org/user_preferences). -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. email_reply_trimmer-0.2.0/test/elided/embedded_email_18.txt0000644000004100000410000000010614741225054023761 0ustar www-datawww-dataOn 8 May 2017 17:34, "Andy Jones" wrote: email_reply_trimmer-0.2.0/test/elided/forwarded_message.txt0000644000004100000410000000025614741225054024240 0ustar www-datawww-data---------- Forwarded message ---------- From: Some One Date: Thu, Jan 28, 2016 at 4:00 PM Subject: Some subject that spans over 2 lines To: infod@discourse.org email_reply_trimmer-0.2.0/test/elided/embedded_email_2.txt0000644000004100000410000000056714741225054023705 0ustar www-datawww-data---- On Tue, 22 Dec 2015 14:17:36 +0530 Sam Saffron<info@discourse.org> wrote ---- sam Sam Saffron co-founder December 22 You are not using the right endpoint, go to user profile / badges, have a look at dev tools to see what it calls There is a discrete endpoint to get all the badges a user has To respond, reply to this email or visit the topic. email_reply_trimmer-0.2.0/test/elided/text_only.txt0000644000004100000410000000000014741225054022567 0ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/elided/embedded_email_7.txt0000644000004100000410000000023314741225054023700 0ustar www-datawww-dataOn Tue, 2011-03-01 at 18:02 +0530, Some One wrote: > > This is another part of the embedded email. > > _______________________ And here's my signature. email_reply_trimmer-0.2.0/test/elided/embedded_email_polish_1.txt0000644000004100000410000000170214741225054025252 0ustar www-datawww-data-- Łukasz Jan Niemier Dnia 14 lip 2015 o godz. 00:25 Michael Downey napisał(a): > > downey Michael Downey Senior Tester > July 13 > Sounds interesting. What is the license? > > To respond, reply to this email or visit https://meta.discourse.org/t/static-pages-plugin/31027/2 in your browser. > > Previous Replies > > hauleth > July 13 > WIP > > Location: https://github.com/hauleth/low_voltage > > Authors: @hauleth > > Simple plugin to add "static" pages to Discourse instance. For now usage is kind of complicated at it needs to fetch static pages from app/views/pages. Ideas for future implements: > > Create DB model to hold pages > Adding admin page that will allow editing that pages > Custom styles for static pages > Any help appreciated. > > To respond, reply to this email or visit https://meta.discourse.org/t/static-pages-plugin/31027/2 in your browser. > > To unsubscribe from these emails, visit your user preferences. email_reply_trimmer-0.2.0/test/elided/embedded_email_german_2.txt0000644000004100000410000000102014741225054025217 0ustar www-datawww-dataAm 03.02.2016 3:35 nachm. schrieb Max Mustermann : > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. email_reply_trimmer-0.2.0/test/elided/email_headers_1.txt0000644000004100000410000000032214741225054023553 0ustar www-datawww-data ------------------------------ *From:* Outlook user *Sent:* 2016-01-27 *To:* info@discourse.org *Subject:* Are you using Outlook? Just some random text wich is part of the embedded email... Outlook user email_reply_trimmer-0.2.0/test/elided/embedded_email_norwegian.txt0000644000004100000410000000046214741225054025527 0ustar www-datawww-dataSendt fra min iPad Den 15. jun. 2016 kl. 20.42 skrev Jeff Atwood >: codinghorror Jeff Atwood co-founder June 15 Enable tags in your admin, site settings. email_reply_trimmer-0.2.0/test/elided/embedded_email_german_3.txt0000644000004100000410000000030214741225054025222 0ustar www-datawww-data-----Ursprüngliche Nachricht----- Von: Discourse Team Gesendet: Don 11 Februar 2016 11:23 An: Some One Betreff: Some Subject Hallo! Wie geht es Ihnen heute? email_reply_trimmer-0.2.0/test/elided/embedded_email_german_5.txt0000644000004100000410000000100214741225054025222 0ustar www-datawww-dataErlend Sogge Heggen schrieb am Di., 16. Aug. 2016 um 12:52 Uhr: > erlend_sh Erlend Sogge Heggen > team > August 16 > > Hi Bob, > > Sure, it sounds like your requirements would fit our Standard plan. I > suggest you sign up for a free trial, as that will be the best way to see > for yourself if we support the kind of custom styling > > Sincerely, > > Erlend > -- Viele Grüße / Best regards Bob email_reply_trimmer-0.2.0/test/elided/embedded_email_17.txt0000644000004100000410000000022314741225054023760 0ustar www-datawww-dataOn 15 May 2017 19:32, "Nomadic Sprite" wrote: On 8 May 2017 6:51 pm, "Andy Jones" wrote: email_reply_trimmer-0.2.0/test/elided/strip.txt0000644000004100000410000000000014741225054021703 0ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/elided/embedded_email_3.txt0000644000004100000410000000101214741225054023670 0ustar www-datawww-dataOn Thu, Jun 20, 2013 at 4:18 PM, matt2 via Discourse Meta < info@discourse.org> wrote: > matt2 posted in 'Discourse on Ubuntu: Video Walkthrough' on Discourse Meta: > ------------------------------ > > Has anyone tried on AWS? a public AMI would be awesome. > ------------------------------ > > Please visit this link to respond: > http://meta.discourse.org/t/discourse-on-ubuntu-video-walkthrough/7478/4 > > To unsubscribe from these emails, visit your user preferences > . > email_reply_trimmer-0.2.0/test/elided/embedded_email_swedish.txt0000644000004100000410000000061214741225054025201 0ustar www-datawww-dataFrån: Foo Bar [mailto:noreply@foo.bar] Skickat: den 5 juni 2017 12:22 Till: someone@domain.com Ämne: [WAT] Photos from the symposium If you have any pictures from any parts of the symposium that you are willing to share, please reply to this post to share them (you can simply copy and paste or drag'n'drop them into the text). Here are the group pictures we took on Wednesday after lunch. email_reply_trimmer-0.2.0/test/elided/email_headers_5.txt0000644000004100000410000000201414741225054023557 0ustar www-datawww-dataFrom: Erlend Sogge Heggen Reply-To: Erlend Sogge Heggen Date: Wednesday, 5 April 2017 at 17:01 To: Jef Subject: [Discourse Meta] [PM] Discourse for Communities of Practice, educational organisation erlend_sh Erlend Sogge Heggen Team April 5 Hi Jef, Is your University a legally recognised educational institution? Otherwise I'm afraid you're not eligible for this discount. Sincerely, Erlend This email message and any attachments may contain confidential information and may be privileged. If you are not the intended recipient or otherwise not authorized to receive this message, you are prohibited to use, copy, disclose or take any action based on this email or any information contained herein. If you are not the intended recipient, please advise the sender immediately by replying to this email and permanently delete this message and any attachments from your system. email_reply_trimmer-0.2.0/test/elided/embedded_email_11.txt0000644000004100000410000000005314741225054023753 0ustar www-datawww-data2016-03-03 17:21 GMT+01:00 Some One After email_reply_trimmer-0.2.0/test/elided/embedded_email_1.txt0000644000004100000410000000027714741225054023702 0ustar www-datawww-dataOn Wed, Sep 25, 2013, at 03:57 PM, richard_clark wrote: > This is the embedded email This is after the embedded email and will not show up because 99% of the times this is the signature... email_reply_trimmer-0.2.0/test/elided/spam_1.txt0000644000004100000410000001030414741225054021732 0ustar www-datawww-data> On Thu, Apr 30, 2020 at 10:07 AM, "someone" wrote: > >> On Thu, Apr 30, 2020 at 10:07 AM, "someone" wrote: >> >>> On Thu, Apr 30, 2020 at 10:07 AM, "someone" wrote: >>> >>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>> >>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>> >>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>> >>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>> >>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>> >>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>> >>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>> >>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>> >>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>> >>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote:email_reply_trimmer-0.2.0/test/elided/embedded_email_15.txt0000644000004100000410000000022114741225054023754 0ustar www-datawww-data2017-02-05 13:29 GMT+02:00 Very long author name < notifications@forum.some-discourse-host.local>: > [Original Messages is quoted here] > [...] email_reply_trimmer-0.2.0/test/elided/embedded_email_6.txt0000644000004100000410000000012214741225054023674 0ustar www-datawww-dataOn 28 Jan 2016, at 19:04, Some One wrote: > Did you write something interesting? email_reply_trimmer-0.2.0/test/elided/embedded_email_14.txt0000644000004100000410000000061214741225054023757 0ustar www-datawww-data2016-10-24 15:36 GMT+02:00 Foo bar < info@foo.bar>: > Thank you so much Erlend, very thanks! > > 2016-10-24 15:03 GMT+02:00 Erlend Sogge Heggen : > >> erlend_sh Erlend Sogge >> Heggen team >> October 24 >> >> I received your application and I've replied with setup instructions. email_reply_trimmer-0.2.0/test/elided/signatures.txt0000644000004100000410000000164414741225054022745 0ustar www-datawww-dataEnvoyé depuis mon iPhone Von meinem Mobilgerät gesendet Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. Someone from mobile From My Iphone 6 Sent via mobile Sent with Airmail Sent from Windows Mail Sent from Mailbox Sent from Mailbox for iPad Sent from Yahoo Mail on Android Sent from my TI-85 Sent from my iPhone Sent from my iPod Sent from my Alcatel Flash2 Sent from my mobile device Sent from my cell, please excuse any typos. Sent from my Samsung Galaxy s5 Octacore device Sent from my HTC M8 Android phone. Please excuse typoze Sent from my Windows 8 PC <> (sent from a phone) (Sent from mobile device) 從我的 iPhone 傳送 Sent from [mail](https://go.microsoft.com/fwlink/?LinkId=550986) for windows 10 Verzonden met BlackBerry Work Get Outlook for iOShttps://aka.ms/o0ukef Get [Outlook for Android](https://aka.ms/ghei36) email_reply_trimmer-0.2.0/test/elided/embedded_email_italian.txt0000644000004100000410000000122014741225054025150 0ustar www-datawww-data> Il 26 marzo 2016 alle 13.16 Sam Saffron ha scritto: > > > > > > We need specific examples of failures, PM full source of emails to > @zogstrip > > Posted by sam on 03/26/2016 > > > > > > > --- > [Visit Topic](https://meta.discourse.org/t/email-reply-parsing/41597/2) > or reply to this email to respond > > To stop receiving notifications for this particular topic, [click > here](https://meta.discourse.org/t/email-reply-parsing/41597/unsubscribe). > To unsubscribe from these emails, change your [user > preferences](https://meta.discourse.org/my/preferences) -- Stefano Costa @stekosteko Editor, Journal of Open Archaeology Data email_reply_trimmer-0.2.0/test/elided/quote_only.txt0000644000004100000410000000000014741225054022740 0ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/elided/delimiters.txt0000644000004100000410000000007214741225054022714 0ustar www-datawww-dataᐧ -- *** #### ~~~~~ ====== _______ ++++++++ ------- email_reply_trimmer-0.2.0/test/elided/embedded_email_9.txt0000644000004100000410000000005714741225054023706 0ustar www-datawww-data*-------- Original Message --------* THE END. email_reply_trimmer-0.2.0/test/elided/embedded_email_10.txt0000644000004100000410000000171214741225054023755 0ustar www-datawww-dataSent from Outlook Mobile On Sun, Feb 7, 2016 at 12:12 AM -0800, "Arpit Jalan" > wrote: Hi Some, https://meta.discourse.org is now running on latest Discourse version! Regards, Arpit On Fri, Feb 5, 2016 at 10:43 AM Arpit Jalan > wrote: Okay, sure! Arpit On Fri, 5 Feb 2016 at 10:42, Some One > wrote: Arpit, Yes that sounds good. Sent from Outlook Mobile _____________________________ From: Arpit Jalan > Sent: Thursday, February 4, 2016 10:05 AM Subject: Meta Discourse update To: Some One >, Discourse Team > Hi Some One, Time to update meta to the latest Discourse version! Do you want me to take care of it? Regards, Arpit email_reply_trimmer-0.2.0/test/elided/embedded_email_4.txt0000644000004100000410000000104514741225054023677 0ustar www-datawww-data2013/7/20 sam via Discourse Meta > sam replied to your post in 'Unable to create group' on Discourse Meta: > ------------------------------ > > Is this an error handling thing, if you name the group "test" and only > place yourself in it, does it persist? > ------------------------------ > > To respond, reply to this email or visit > http://meta.discourse.org/t/unable-to-create-group/8198/6 in your browser. > > To unsubscribe from these emails, visit your user preferences > . > email_reply_trimmer-0.2.0/test/elided/embedded_email_french_1.txt0000644000004100000410000000024714741225054025224 0ustar www-datawww-dataLe 4 janv. 2016 19:03, "Neil Lalonde" a écrit : > team > January 4 > > Discourse c'est top ! > > Neil > email_reply_trimmer-0.2.0/test/elided/embedded_email_spanish_2.txt0000644000004100000410000000060214741225054025420 0ustar www-datawww-data-----Mensaje original----- De: "Miguel" Enviado: =E2=80=8E16/=E2=80=8E02/=E2=80=8E2016 14:53 Para: "discourse" Asunto: [MP]Parser del email Visita el tema o responde a este email para publicar. Para no recibir m=C3=A1s notificaciones de este tema en particular, haz cli= c aqu=C3=AD. Para darte de baja de estos emails, cambia tus preferencias = email_reply_trimmer-0.2.0/test/elided/email_headers_3.txt0000644000004100000410000000116014741225054023556 0ustar www-datawww-dataFrom: Some One > Reply-To: "For.bar" > Date: Monday, February 8, 2016 11:44 AM To: Discourse > Subject: VIS Here's an email with some very important stuff. ________________________________ Reply here or hit reply from your inbox to help members by sharing your ideas. Mute this topic to stop getting updates, we'll send you the next one. DO NOT FORWARD THIS EMAIL! email_reply_trimmer-0.2.0/test/elided/embedded_email_5.txt0000644000004100000410000000013714741225054023701 0ustar www-datawww-dataSome One wrote: Something that will be considered as the embedded email. email_reply_trimmer-0.2.0/test/elided/dual_embedded.txt0000644000004100000410000000031314741225054023307 0ustar www-datawww-dataOn Mon, Feb 1, 2016 at 4:58 AM -0800, "Some One" wrote: This is the 2nd email. On Sun, Jan 31, 2016 at 9:58 PM -0800, "Another One" wrote: This is the 1st email. email_reply_trimmer-0.2.0/test/elided/embedded_email_8.txt0000644000004100000410000000005514741225054023703 0ustar www-datawww-data-------- Original Message -------- THE END. email_reply_trimmer-0.2.0/test/elided/spam_2.txt0000644000004100000410000001447314741225054021746 0ustar www-datawww-data> On Thu, Apr 30, 2020 at 10:07 AM, "someone" wrote: > >> Hello world! >> >> On Thu, Apr 30, 2020 at 10:07 AM, "someone" wrote: >> >>> Hello world! >>> >>> On Thu, Apr 30, 2020 at 10:07 AM, "someone" wrote: >>> >>>> Hello world! >>>> >>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>> >>>>> Hello world! >>>>> >>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>> >>>>>> Hello world! >>>>>> >>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>> >>>>>>> Hello world! >>>>>>> >>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>> >>>>>>>> Hello world! >>>>>>>> >>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>> >>>>>>>>> Hello world! >>>>>>>>> >>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>> >>>>>>>>>> Hello world! >>>>>>>>>> >>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>> >>>>>>>>>>> Hello world! >>>>>>>>>>> >>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>> >>>>>>>>>>>> Hello world! >>>>>>>>>>>> >>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>> >>>>>>>>>>>>> Hello world! >>>>>>>>>>>>> >>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> On Thu, Apr 30, 2020 at 10:06 AM, "someone" wrote: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Hello world! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>email_reply_trimmer-0.2.0/test/elided/email_headers_4.txt0000644000004100000410000000201014741225054023552 0ustar www-datawww-dataDa: Sally54721 Risposta: Testy McTesterson / Test Data: giovedì 8 ottobre 2015 15:26 A: Testy McTesterson Oggetto: Test | Issue (#3) [@example](http://example.com/u/example) — Reply to this email directly or [view it on GitLab](http://git.example.com/example/Test/issues/3). {"@context":"[http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View](http://schema.org%22,%22@type%22:%22EmailMessage%22,%22action%22:%7B%22@type%22:%22ViewAction%22,%22name%22:%22View) Issue","url":"[http://git.example.com/example/Test/issues/3"}](http://git.example.com/example/Test/issues/3%22%7D)} You're receiving this notification because you are a member of the Testy McTesterson / Test project team. -- Questo messaggio e' stato analizzato con Libra ESVA ed e' risultato non infetto. [Clicca qui per segnalarlo come spam.](http://esva.example.com/cgi-bin/learn-msg.cgi?id=1234567890.ABCDEF) [Clicca qui per metterlo in blacklist](http://esva.example.com/cgi-bin/learn-msg.cgi?blacklist=1&id=1234567890.ABCDEF) email_reply_trimmer-0.2.0/test/elided/embedded_email_dutch_2.txt0000644000004100000410000000446014741225054025070 0ustar www-datawww-dataOp 16 aug. 2014 05:13 schreef "codinghorror" het volgende geschreven: > codinghorror > August 15 > > Hmm, if that is true we need to fix that somehow. > > To respond, reply to this email or visit > https://meta.discourse.org/t/configuring-google-oauth2-login-for-discourse/15858/38 > in your browser. > ------------------------------ > Previous Replies elberet > August 15 > > Are you using an ad blocker? Adblock Plus, for instance, removes the login > buttons. > bwvanmanen > August 15 > > The 'Sign in with Google' button does appear when I try to log in from > another pc. However the button does not appear on my pc using another > browser. > bwvanmanen > August 15 > > I followed the steps from the opening post, but I don't get a google login > option when users try to log in. There is just the normal user/password, > the word OR, and nothing next to that. Any clues? > > neil > August 1 > > Glad you got it fixed. It's good to have the resolution in this topic too. > I added a link to your topic in the first post. > jgehrcke > July 31 > > Sorry, that was kind of a cross-posting. Indeed, I got that fixed as you > say, as reported here: > jgehrcke said: > > I understand the solution you are proposing. The proper fix, without > customizing the disource.conf in the container, however, would be to inform > the web application about the protocol used via an HTTP header, as you are > also suggesting. The question is: does Discourse respect/support > X-Forwarded-Protocol? Then I can easily configure the nginx reverse proxy > with proxy_set_header X-Forwarded-Protocol $scheme; Edit: I can confirm > that properly setting the X-Forwarded-Proto header in the nginx … > > Thanks and sorry for not reporting back here! > ------------------------------ > > To respond, reply to this email or visit > https://meta.discourse.org/t/configuring-google-oauth2-login-for-discourse/15858/38 > in your browser. > > To unsubscribe from these emails, visit your user preferences > . > email_reply_trimmer-0.2.0/test/elided/embedded_ception.txt0000644000004100000410000000117414741225054024031 0ustar www-datawww-dataOn Mon, Feb 1, 2016 at 6:32 PM, Jeff Atwood wrote: > This is Jeff's reply. > > On Mon, Feb 1, 2016 at 7:50 AM, Some One > wrote: > >> Great! >> >> Many thanks. >> >> ~s >> >> On Mon, Feb 1, 2016 at 5:05 AM Discourse Team wrote: >> >>> WAT? >>> >>> On Wed, Jan 27, 2016 at 10:48 PM, Some One < >>> foo@bar.com> wrote: >>> >>>> Hi Team, >>>> >>>> How is it doing? >>>> >>>> Some One >>>> >>>> On Wed, Jan 27, 2016 at 10:10 AM Discourse Team >>>> wrote: >>>> >>>>> Hello :waves_hand: >>>>> >>>> >>> > -- Some One Community Manager foo@bar.com (123) 456-7890 email_reply_trimmer-0.2.0/test/elided/embedded_email_dutch_1.txt0000644000004100000410000000055214741225054025065 0ustar www-datawww-data> Op 2 feb. 2015 om 05:28 heeft VannillaSky het volgende geschreven: > > > VannillaSky > February 2 > Solved. Going forward... > > To respond, reply to this email or visit https://meta.discourse.org/t/import-posts-from-facebook-group-into-discourse/6089/33 in your browser. > > To unsubscribe from these emails, visit your user preferences. email_reply_trimmer-0.2.0/test/elided/embedded_email_quote_text.txt0000644000004100000410000000050014741225054025730 0ustar www-datawww-dataOn Mon, Aug 19, 2013 at 2:36 AM, SomeOne via Discourse Meta < info@discourse.org> wrote: > This seems like a problem that would be better solved at the web server > level, rather than by the application. If nothing else, adding an instance > of Nginx as an SSL/TLS reverse-proxy would very quickly take care of this. > email_reply_trimmer-0.2.0/test/elided/embedded_email_russian_1.txt0000644000004100000410000000164714741225054025450 0ustar www-datawww-dataпонедельник, 6 октября 2014 г. пользователь lidel написал: > lidel > October 6 > winterbox: > > Do you have any plan to make this plugin? > > discourse-locale-override > is just a hack, and > as @sam pointed out, it only works > if you update your instance via commandline. I created it to speed up my > work on pl_PL translation only. > > I see there is a need for a proper plugin (this and other threads), but > until such plugin appears this is a semi-working workaround. > ------------------------------ > > To respond, reply to this email or visit > https://meta.discourse.org/t/use-custom-translation-file/13786/41 in your > browser. > > To unsubscribe from these emails, visit your user preferences > . > email_reply_trimmer-0.2.0/test/elided/embedded_email_19.txt0000644000004100000410000000000014741225054023753 0ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/elided/retains_spaces_and_formatting.txt0000644000004100000410000000000014741225054026621 0ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/elided/embedded_email_german_6.txt0000644000004100000410000000047214741225054025235 0ustar www-datawww-dataAm 21.04.2016 17:48 schrieb "Einz Zwei" : > einz.zwei einz > zwei > 21. April > > Vielleicht noch eine wichtige Frage: > Wann sollten wir diese Trainingsvideos veröffentlichen, es gibt 2 email_reply_trimmer-0.2.0/test/elided/embedded_email_16.txt0000644000004100000410000000022414741225054023760 0ustar www-datawww-data-- Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 email_reply_trimmer-0.2.0/test/elided/usenet.txt0000644000004100000410000000015114741225054022054 0ustar www-datawww-data-- Mit lieben Grüßen John Doe http://blog.john.doe www.facebook.com/johndoe Mobil: +12 345 6789 012 email_reply_trimmer-0.2.0/test/elided/forwarded_apple.txt0000644000004100000410000000135514741225054023716 0ustar www-datawww-data> Begin forwarded message: > > From: Foo Discourse > Subject: This email is going to be forwarded > Date: 01 January 2019 at 12:00:00 EET > To: bar@discourse.org > > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi auctor > lacus in metus vehicula, non dictum mi consequat. Nunc eget quam sit > amet dolor scelerisque cursus. Etiam laoreet lectus a rutrum > sollicitudin. Nullam sit amet lorem id ante lobortis fringilla. Duis > dictum tempus sem et ultrices. Sed ac lectus ante. Vivamus interdum, > risus non tincidunt accumsan, purus mi accumsan dolor, vitae euismod > turpis orci ut est. Integer ut ante eu velit dignissim ullamcorper non > id nibh. Nulla auctor magna erat, et posuere sapien gravida convallis. email_reply_trimmer-0.2.0/test/elided/quote_and_text.txt0000644000004100000410000000000014741225054023565 0ustar www-datawww-dataemail_reply_trimmer-0.2.0/test/elided/embedded_email_spanish_1.txt0000644000004100000410000000237414741225054025427 0ustar www-datawww-dataEl jueves, 21 de noviembre de 2013, codinghorror escribió: > codinghorror > November 21 > > How are you creating this user? Describe it step by step. > > To respond, reply to this email or visit > http://meta.discourse.org/t/error-creating-new-users-pg-numericvalueoutofrange/11046/2in your browser. > ------------------------------ > Previous Replies PabloC > November 21 > > Hi guys, > > While I create a new user, I'm finding this error in the logs : > > Processing by UsersController#create as */* > Parameters: {"name"=>"Ps4 Support Forum", "email"=>"pablocorral+ps4@gmail.com ", "username"=>"PS4SupportForum", "password_confirmation"=>"[FILTERED]", "challenge"=>"11a4ebe83d9b2a9e0d45bc50b457ee17"} > PG::NumericValueOutOfRange: ERROR: value "2201945804" is out of range for type integer > > Any idea? > > Tks! > ------------------------------ > > To respond, reply to this email or visit > http://meta.discourse.org/t/error-creating-new-users-pg-numericvalueoutofrange/11046/2in your browser. > > To unsubscribe from these emails, visit your user preferences > . > email_reply_trimmer-0.2.0/test/elided/email_headers_2.txt0000644000004100000410000000027614741225054023564 0ustar www-datawww-data________________________________________ From: Discourse пише: > meg Foo > > Август 30 > > Когда будет точное название, напишите в личку и мы поменяем название. > ------------------------------ > > Visit Message > > or reply to this email to respond. > > To unsubscribe from these emails, click here > > . > email_reply_trimmer-0.2.0/test/elided/embedded_email_12.txt0000644000004100000410000000030214741225054023751 0ustar www-datawww-dataOn Thu, 31 Mar 2016 at 11:16 Some One < mailto:Some One > wrote: Two 2 On Thu, 31 Mar 2016 at 10:05 Jeff Atwood < mailto:Jeff Atwood > wrote: Three 3 email_reply_trimmer-0.2.0/test/elided/embedded_email_french_2.txt0000644000004100000410000000047414741225054025227 0ustar www-datawww-dataLe 2016-11-16 02:22, Erlend Sogge Heggen a écrit : > erlend_sh [1] Erlend Sogge Heggen [1] team > November 16 > > Hello French guy, > >> is the back office also available in french like the front end ? > > Oui! > > Sincerely, > > Erlend > > * > > Links: > ------ > [1] https://meta.discourse.org/users/erlend_sh email_reply_trimmer-0.2.0/test/test_email_matcher.rb0000644000004100000410000000063614741225055022751 0ustar www-datawww-data# frozen_string_literal: true require "minitest/autorun" require "email_reply_trimmer" require "timeout" class TestEmailReplyTrimmer < Minitest::Test def test_does_not_hang_when_no_embedded_email_is_found Timeout.timeout(5) do EmbeddedEmailMatcher.match?(example("does_not_contain_embedded_email.txt")) end end def example(filename) File.read("test/matchers/#{filename}").strip end end email_reply_trimmer-0.2.0/Rakefile0000644000004100000410000000037614741225054017261 0ustar www-datawww-data# frozen_string_literal: true name = Dir["*.gemspec"].first.split(".").first version = File.read("lib/#{name}.rb")[/^\s*VERSION\s*=\s*['"](?'version'\d+\.\d+\.\d+)['"]/, "version"] task default: :test require "rake/testtask" Rake::TestTask.new(:test) email_reply_trimmer-0.2.0/devenv.lock0000644000004100000410000001047114741225054017752 0ustar www-datawww-data{ "nodes": { "devenv": { "locked": { "dir": "src/modules", "lastModified": 1732830318, "owner": "cachix", "repo": "devenv", "rev": "51abcb75d471a215c800937d4e30dc765d305c6d", "type": "github" }, "original": { "dir": "src/modules", "owner": "cachix", "repo": "devenv", "type": "github" } }, "flake-compat": { "flake": false, "locked": { "lastModified": 1732722421, "owner": "edolstra", "repo": "flake-compat", "rev": "9ed2ac151eada2306ca8c418ebd97807bb08f6ac", "type": "github" }, "original": { "owner": "edolstra", "repo": "flake-compat", "type": "github" } }, "flake-compat_2": { "flake": false, "locked": { "lastModified": 1732722421, "owner": "edolstra", "repo": "flake-compat", "rev": "9ed2ac151eada2306ca8c418ebd97807bb08f6ac", "type": "github" }, "original": { "owner": "edolstra", "repo": "flake-compat", "type": "github" } }, "flake-utils": { "inputs": { "systems": "systems" }, "locked": { "lastModified": 1731533236, "owner": "numtide", "repo": "flake-utils", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { "owner": "numtide", "repo": "flake-utils", "type": "github" } }, "gitignore": { "inputs": { "nixpkgs": [ "pre-commit-hooks", "nixpkgs" ] }, "locked": { "lastModified": 1709087332, "owner": "hercules-ci", "repo": "gitignore.nix", "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", "type": "github" }, "original": { "owner": "hercules-ci", "repo": "gitignore.nix", "type": "github" } }, "nixpkgs": { "locked": { "lastModified": 1732617236, "owner": "nixos", "repo": "nixpkgs", "rev": "af51545ec9a44eadf3fe3547610a5cdd882bc34e", "type": "github" }, "original": { "owner": "nixos", "ref": "nixpkgs-unstable", "repo": "nixpkgs", "type": "github" } }, "nixpkgs-ruby": { "inputs": { "flake-compat": "flake-compat", "flake-utils": "flake-utils", "nixpkgs": [ "nixpkgs" ] }, "locked": { "lastModified": 1730958464, "owner": "bobvanderlinden", "repo": "nixpkgs-ruby", "rev": "93bd040be2856ba0e44a33db6360e8c9c0c09aa1", "type": "github" }, "original": { "owner": "bobvanderlinden", "repo": "nixpkgs-ruby", "type": "github" } }, "nixpkgs-stable": { "locked": { "lastModified": 1732749044, "owner": "NixOS", "repo": "nixpkgs", "rev": "0c5b4ecbed5b155b705336aa96d878e55acd8685", "type": "github" }, "original": { "owner": "NixOS", "ref": "nixos-24.05", "repo": "nixpkgs", "type": "github" } }, "pre-commit-hooks": { "inputs": { "flake-compat": "flake-compat_2", "gitignore": "gitignore", "nixpkgs": [ "nixpkgs" ], "nixpkgs-stable": "nixpkgs-stable" }, "locked": { "lastModified": 1732021966, "owner": "cachix", "repo": "pre-commit-hooks.nix", "rev": "3308484d1a443fc5bc92012435d79e80458fe43c", "type": "github" }, "original": { "owner": "cachix", "repo": "pre-commit-hooks.nix", "type": "github" } }, "root": { "inputs": { "devenv": "devenv", "nixpkgs": "nixpkgs", "nixpkgs-ruby": "nixpkgs-ruby", "pre-commit-hooks": "pre-commit-hooks" } }, "systems": { "locked": { "lastModified": 1681028828, "owner": "nix-systems", "repo": "default", "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "type": "github" }, "original": { "owner": "nix-systems", "repo": "default", "type": "github" } } }, "root": "root", "version": 7 } email_reply_trimmer-0.2.0/devenv.nix0000644000004100000410000000010614741225054017612 0ustar www-datawww-data{ languages.ruby.enable = true; languages.ruby.version = "3.2"; } email_reply_trimmer-0.2.0/Gemfile0000644000004100000410000000020614741225054017077 0ustar www-datawww-data# frozen_string_literal: true source 'https://rubygems.org' # Specify your gem's dependencies in email_reply_trimmer.gemspec gemspec email_reply_trimmer-0.2.0/LICENSE0000644000004100000410000000205714741225054016617 0ustar www-datawww-dataThe MIT License (MIT) Copyright (c) Discourse Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. email_reply_trimmer-0.2.0/email_reply_trimmer.gemspec0000644000004100000410000000162214741225054023215 0ustar www-datawww-data# frozen_string_literal: true require_relative "lib/email_reply_trimmer" Gem::Specification.new do |s| s.name = "email_reply_trimmer" s.version = EmailReplyTrimmer::VERSION s.date = Time.now.strftime('%Y-%m-%d') s.summary = "Library to trim replies from plain text email." s.description = "EmailReplyTrimmer is a small library to trim replies from plain text email." s.authors = ["Régis Hanol"] s.email = ["rubygems@hanol.fr"] s.homepage = "https://github.com/discourse/email_reply_trimmer" s.license = "MIT" s.require_paths = ["lib"] s.files = Dir["**/*"].reject { |path| File.directory?(path) || path =~ /.*\.gem$/ } s.test_files = s.files.select { |path| path =~ /^test\/.+_test\.rb$/ } s.add_development_dependency 'rake', '~> 12' s.add_development_dependency 'minitest', '~> 5' s.add_development_dependency 'rubocop' s.add_development_dependency 'rubocop-discourse' end email_reply_trimmer-0.2.0/README.md0000644000004100000410000000114014741225054017061 0ustar www-datawww-data# Discourse Email Reply Trimmer EmailReplyTrimmer is a small library to trim replies from plain text email. ## Usage To trim replies: `trimmed_body = EmailReplyTrimmer.trim(email_body)` ## Installation Get it from [GitHub](https://github.com/discourse/email_reply_trimmer). Run `rake` to run the tests. ## Inspirations - [GitHub's Email Reply Parser](https://github.com/github/email_reply_parser) - [MailGun's Talon](https://github.com/mailgun/talon) - [Vitor R. Carvalho's Learning to Extract Signature and Reply Lines from Email](http://www.cs.cmu.edu/~vitor/papers/sigFilePaper_finalversion.pdf)