Commit Graph

10470 Commits

Author SHA1 Message Date
1c9f6159cd Update the Receiver and PollMailbox specs for the changes
Tests are both added, moved, and deleted.

Add test for topic not being created

Move html_only.eml to parse_body testing section
2014-08-28 14:38:19 -07:00
0a09593f3b FIX: Prefer HTML in incoming emails, heavily refactor email receiver
This commit heavily refactors Email::Receiver to both better handle
different emails and improve testability.

A primary focus of the refactor is reducing the usage of class
variables, in favor of actually passing parameters - making it possible
for multiple tests to use the same Receiver instance.

The EmailLog reported when a topic is created is reflected to put the
user's email in the to_address field, instead of the system address.

The discourse_email_parser function is renamed to
discourse_email_trimmer, and additional stopping conditions are added to
make up for EmailReplyParser's inability to deal with html at the start
of a line.

The force_encoding calls are refactored out to a 'fix_charset' method.

parse_body is renamed to select_body, and the scrub_html method is
dropped in favor of the new HtmlCleaner class.

A new parse_body method is added, which performs the job of the removed
lines of code in the 'process' method.

EmailUnparsableError is redefined again, to be encoding errors (when the
declared encoding is not what was delivered).
2014-08-28 14:36:10 -07:00
cb55ef4702 Add Email::HtmlCleaner for email processing
This class is in charge of stripping out most of the crap from the HTML
portion of emails that email clients generate, so that it can be sanely
post-processed for signatures and quoting boundaries.
2014-08-28 14:36:10 -07:00
0d0225133c FIX: Failed incoming emails could create empty topics
A failure condition is eliminated where a topic would be created, but post
creation would fail, leaving the forum with a topic without any posts.
By asking PostCreator to create the topic instead, inside of its
transaction, this failure condition is eliminated.

Additionally, attachments are restored to working status. Previously,
the attachment code would build up the post raw, but then drop it and
not do anything with the result (creating orphaned uploads). By actually
placing the raw value back in the options hash, it is included in the
created post.
2014-08-28 14:35:43 -07:00
30b102aa98 FIX: Show uncategorized with badge/description in the category chooser 2014-08-28 12:42:31 -04:00
c9262a8390 FIX: Resend activation email was busted 2014-08-28 12:07:13 -04:00
aed0285bc6 Update onebox gem 2014-08-28 11:28:46 -04:00
38f52f0f8e FIX: banner topic's max-width & max-height on both mobile & desktop 2014-08-28 16:15:48 +02:00
Sam
a1244043d3 FIX: when search finds a deep link in a topic it takes you to it 2014-08-28 17:16:39 +10:00
Sam
9897660a36 Merge pull request #2710 from techAPJ/patch-2
Update Translations
2014-08-28 16:30:45 +10:00
be8249f113 Update Translations 2014-08-28 08:52:11 +05:30
Sam
3a9f0445bb HACK: remove jarring scroll when hitting back from topic 2014-08-28 11:57:24 +10:00
fc71662a13 FIX: Don't show topics as unread when hitting back 2014-08-27 18:01:02 -04:00
0ae3c327de Add a message to the staff logs indicating why a user was purged 2014-08-27 16:05:07 -04:00
940c0d5dbb FIX: topicCountStats was depending on the wrong properties 2014-08-27 15:58:32 -04:00
99d26cef1a FIX: uncategorized counts were always 0. topics_year, topics_month, topics_week, topics_day 2014-08-27 15:58:32 -04:00
f05d2ed7cf PERF: Do far fewer checks and use a lot less memory when loading more 2014-08-27 15:31:06 -04:00
965ff51efe FIX: Better boundary checking for emoji 2014-08-27 14:40:29 -04:00
aab8eaac03 FIX: Double clicking quote expansion shouldn't break stuff. 2014-08-27 14:04:00 -04:00
09ea159afc UX: Add link to change username on admin page 2014-08-27 13:52:01 -04:00
b1c0a3d01c FIX: Retain back button scroll position even if we don't load more. 2014-08-27 13:33:52 -04:00
f10d6ed88a FIX: RSS feeds should use created_at not bumped_at 2014-08-27 12:42:54 -04:00
bf8528b6ec FIX: Use the bumped_at date for the RSS feed for a topic 2014-08-27 12:34:47 -04:00
443f3812ab Merge pull request #2709 from techAPJ/patch-2
FIX: allow localization in timestamp
2014-08-27 11:46:21 -04:00
3a76f9e79f FIX: allow localization in timestamp 2014-08-27 20:57:06 +05:30
009dc7ded3 missed a spot in CSS 2014-08-27 02:58:32 -07:00
f557f7eeb9 change fix for [quote] padding 2014-08-27 02:45:57 -07:00
dc6dd26b10 FIX: [quote][/quote] missing top padding 2014-08-27 02:22:58 -07:00
Sam
87d2be3ecf FIX: ensure triggered badges are never triggered if filter is missing 2014-08-27 18:02:13 +10:00
Sam
f48b78c0bb FEATURE: Allow localization sessions
use: I18n.verbose_localization_session()
2014-08-27 17:50:29 +10:00
587f7f56c8 FIX: share link pushing viewport on mobile 2014-08-27 00:46:26 -07:00
b3d896723b Merge pull request #2706 from techAPJ/patch-2
FIX: use short date format for timestamp
2014-08-27 00:42:56 -07:00
0453da6fa5 FIX: use short date format for timestamp 2014-08-27 12:56:52 +05:30
180430de93 LAYOUT: add more space around topic map links 2014-08-27 00:24:58 -07:00
fa10aa4945 COPY: add quotes around badge for clarity 2014-08-26 23:54:13 -07:00
d50b34b825 "earned" vs "you were granted" 2014-08-26 23:46:48 -07:00
Sam
898d86fd9b correct annotations 2014-08-27 15:30:17 +10:00
Sam
bba8d1978f don't load tasks for now, its not allowing me to disable 2014-08-27 15:28:38 +10:00
Sam
9fe28f20d0 attempt to skip on migrate 2014-08-27 15:26:53 +10:00
Sam
414c6d191f FIX: remove nullable dates post upgrade to Rails 4 2014-08-27 15:19:25 +10:00
Sam
53e60030bc FIX: broken tests 2014-08-27 14:47:23 +10:00
Sam
16c34c206d FEATURE: verbose localization option 2014-08-27 14:12:11 +10:00
Sam
66f9f5773d Merge pull request #2704 from cpradio/master
Add shortcuts for Profile Menu and Hamburger Menu
2014-08-27 13:40:04 +10:00
1678a91a60 Add shortcuts for Profile Menu and Hamburger Menu
Added shortcuts of p and = for the profile and hamburger menu
https://meta.discourse.org/t/keyboard-shortcuts-wish-list/15952
2014-08-26 20:30:20 -04:00
5db66aeafa Version bump to v1.0.0 v1.0.0 2014-08-26 15:24:07 -04:00
4fec41de23 Merge pull request #2700 from techAPJ/patch-2
Update Translations
2014-08-26 14:56:49 -04:00
02d05ca2ab Update Translations 2014-08-26 23:07:10 +05:30
79e37ad1a8 FIX: thor populate:posts tool needs to use find_by_username 2014-08-26 12:32:17 -04:00
55249750ff FIX: Some specs were leaking state, causing other tests to run in
different languages and randomly failing with some seeds.
2014-08-26 12:29:46 -04:00
ec0480233c Merge pull request #2685 from riking/lazyyt-fix
Add dash and plus signs to Twitter key allowed chars
2014-08-26 11:15:29 -04:00