Commit graph

29 commits

Author SHA1 Message Date
Gregory Igelmund
efc61f1315 Add basic structures for UserMute and Message muting logic
Including models, migration, controllers, views & locales.
2023-12-19 12:57:47 -05:00
Tom Hughes
675b89ddb7 Strengthen the tokens used in email reply addresses 2023-11-07 17:52:31 +00:00
Tom Hughes
55a05d9e80 Use secure_compare to compare passwords and tokens
It's unlikely there is an explotable attack here given than network
latencies and variability will swamp any local timing differences but
it's best practice and there's no reason not to.
2023-11-07 17:22:40 +00:00
Tom Hughes
bfffe7ed96 Prefer string interpolation to concatenation 2020-11-13 11:32:28 +00:00
Andy Allan
8fb3aa48e2 Fix call to UserMailer in message delivery
Fixes #2895
2020-10-20 13:58:08 +02:00
Tom Hughes
f721f94d42 Ignore emails from inactive users
Fixes #2758
2020-08-07 17:19:49 +01:00
Tom Hughes
0e2a66e8de Fix new rubocop warnings 2020-08-06 18:42:16 +01:00
Tom Hughes
64146b4f36 Fix Style/SafeNavigation rubocop warnings 2018-09-22 17:21:06 +01:00
Tom Hughes
eeb8bbba49 Require people replying to diary notifications to be subscribed 2018-08-30 18:34:15 +01:00
Tom Hughes
c7762fed23 Normalise newlines in incoming emails
Fixes #1708
2018-01-30 00:27:01 +00:00
Tom Hughes
c8671c137a Update rubocop 2017-02-05 11:12:37 +00:00
Tom Hughes
de6c33814b Make sure email replies to diary comments come from the right user 2016-11-29 19:30:23 +00:00
Tom Hughes
dc2a2c8ebd Standardise on double quoted strings 2015-02-20 19:47:26 +00:00
Tom Hughes
ef7f3d800c Fix most auto-correctable rubocop issues 2015-02-20 08:56:16 +00:00
Tom Hughes
72ce4bc922 Expire special m- and c- reply addresses after a month 2013-02-04 09:10:59 +00:00
Tom Hughes
7be823bb11 Treat messages received by email as plain text
Move creation of a message from an email into the message model and
adjust the logic to treat messages received by email as plain text.
2012-03-17 16:37:00 +00:00
Tom Hughes
2ee961be9f Only mark a message as read after we have validated the email reply 2012-03-16 15:44:40 +00:00
Tom Hughes
300639dfa3 Mark a message as read when we receive an email reply to it 2012-03-16 15:17:50 +00:00
Tom Hughes
1340fca8f1 Turn on mass assignment protection
Require any attribute that is going to be mass assigned to be
whitelisted, and whitelist those attributes which need it
2012-03-06 08:54:45 +00:00
Tom Hughes
b91072bed4 Handle character encodings in single part emails correctly 2012-02-03 22:40:35 +00:00
Tom Hughes
2b86f8cab2 Handle non-multipart email 2011-12-02 08:36:08 +00:00
Tom Hughes
d88ada0d11 Use either the HTML or the text part of an email, not both 2011-12-01 19:54:02 +00:00
Tom Hughes
2f4d12f990 Update message delivery script to work with rails 3 2011-11-16 15:42:43 +00:00
Tom Hughes
122fab7066 Really get the subject extraction right this time 2010-07-07 21:24:21 +01:00
Tom Hughes
408461e5aa Extract the mail subject correctly 2010-06-30 13:34:20 +01:00
Tom Hughes
2038cd52c6 Include an [OpenStreetMap] prefix on the subject of message notifications
Put back the [OpenStreetMap] prefix to the subject line of email
notifications of messages, but strip it again from any incoming
email replies.
2010-06-29 09:43:30 +01:00
Tom Hughes
be1ea6dd43 Use TMail to parse messages so that character set conversions are
done correctly. Fixes #2461.
2009-11-16 10:48:30 +00:00
Tom Hughes
a7368d7f8a Strip trailing whitespace from lines before joining them. 2009-11-10 09:13:39 +00:00
Tom Hughes
23b8672bc9 Add support for processing incoming mail messages in reply to message
notifications and diary comment notifications, turning the maill messages
into reply messages through the site messaging system.
2009-11-05 23:16:20 +00:00