Commit graph

13 commits

Author SHA1 Message Date
Jared Ready
204da00ea0 Move spec/mailers/shared/notify.rb to spec/support 2016-10-22 17:51:50 -05:00
Fu Xu
064eb2caa6 follow the styleguide: Don't use parentheses around a literal 2016-10-03 18:07:28 +08:00
Fu Xu
048f124a08 move spec back into shared example an email sent from GitLab 2016-10-03 18:07:28 +08:00
Fu Xu
785094e201 create new test in spec/mailers/notify_spec.rb 2016-10-03 18:07:28 +08:00
Fu Xu
74c8e091f4 add configurable email subject suffix 2016-10-03 18:07:28 +08:00
Sean McGivern
20de47235e Wrap List-Unsubscribe link in angle brackets 2016-09-26 16:01:17 +01:00
Maximiliano Perez Coto
b335730817 Fix "Unsubscribe" link in notification emails that is triggered by anti-virus
* Created a force=true param that will continue with the previous
  behaviour of the unsubscribe method
* Created a filter for not-logged users so they see a unsubsribe
  confirmation page
* Added the List-Unsubscribe header on emails so the email client can
  display it on top
2016-09-20 09:52:57 +02:00
Robert Speicher
75739e54be Enable RSpec/NotToNot cop and auto-correct offenses
Also removes the note from the development/testing.md guide
2016-05-24 15:40:29 -04:00
Robert Speicher
ee1de011d1 Premailer shouldn't remove script tags from our emails
Closes #14943.
2016-04-05 17:03:34 -04:00
Rémy Coutable
9f218fc184 Improve and finish the fallback to the In-Reply-To and References header for the reply-by-email feature
A few things to note:
- The IncomingEmail feature is now enabled even without a
  correctly-formatted sub-address
- Message-ID for new thread mail are kept the same so that subsequent
  notifications to this thread are grouped in the thread by the email
  service that receives the notification
  (i.e. In-Reply-To of the answer == Message-ID of the first thread message)
- To maximize our chance to be able to retrieve the reply key, we look
  for it in the In-Reply-To header and the References header
- The pattern for the fallback reply message id is "reply-[key]@[gitlab_host]"
- Improve docs thanks to Axil
2016-03-25 13:05:15 +01:00
David Padilla
31e76baf61 Fix #2364. Fall back to In-Reply-To header when reply key not available 2016-03-25 13:05:15 +01:00
Rémy Coutable
54ec7e9599 Improving the original label-subscribing implementation
1. Make the "subscribed" text in Issuable sidebar reflect the labels
   subscription status

2. Current user mut be logged-in to toggle issue/MR/label subscription
2016-03-15 18:22:02 +01:00
Grzegorz Bizon
055ec4dc0a Move build emails specs to separate file
This also extracts shared examples for notification emails to separate
file.
2016-02-12 14:01:28 +01:00