Thanks Tarek!
Can you remove the reply all button change?
My second point is just that there is no reply to sender functionality. If I were to hit reply it would go to discourse, not directly to the sender by email, bypassing diacourse. Make sense?
Thanks Tarek!
Can you remove the reply all button change?
My second point is just that there is no reply to sender functionality. If I were to hit reply it would go to discourse, not directly to the sender by email, bypassing diacourse. Make sense?
try editing this file:
https://github.com/tareko/discourse-replyto-individual/blob/master/config/locales/client.en.yml
thanks, tarek! what about the second point? if Iâm right then thereâs no need for me even to have this plugin turned on. Mailing list mode seems to not be affected.
Iâll watch it for a few days and let you know what happens. 
Iâm not sure how that comes to pass for you. For me, obviously it works as advertised. Did you perhaps not enable the plugin? settings > plugins > replyto-individual enabled
yep - itâs enabled.
does the plugin work with mailing list mode turned on?
Yes. Not sure whatâs happening on your installation there.
ok - weâll let it play out for a few days. itâs a quiet, new forum and there havenât been any posts since I enabled your plugin.
I did update just now to change them as follows - but the topic button still says âreply allâ not âreplyâ.
Hello all,
For those using this plugin, it is currently known to be broken. Iâm working on fixing it at the moment.
Did it break a while ago, or did 2.1.2 break it? Wondering if I should hold off upgrading.
It broke in ~ August. Itâs now fixed, so go ahead.
The plugin is now working again. Hereâs the issue if for some reason one is bored and interested:
https://github.com/tareko/discourse-replyto-individual/issues/1
I spoke too soon about this bug being fixed. For some reason, I cannot get a âReply-Toâ header added into my email properly.
The current lines in question are these:
if allow_reply_by_email?
result[ALLOW_REPLY_BY_EMAIL_HEADER] = true
if @opts[:private_reply] == true
result['Reply-To'] = reply_by_email_address
else
p = Post.find_by_id @opts[:post_id]
result['Reply-To'] = "#{p.user.name} <#{p.user.email}>"
result['CC'] = reply_by_email_address
end
else
result['Reply-To'] = from_value
end
This section is taken from the Email::MessageBuilder class.
If I leave the Reply-To set to its default ( reply_by_email_address), then all is well. However, if it is set to anything else (even âtest@test.comâ, then it will simply disappear from the end email headers. Similarly, if I replace Reply-To with something else like CC, then for some reason it does not build, and instead displays: replies+%{reply_key}@emlondon.ca (note, the %{reply_key} is correctly fixed in the Reply-To.
I really have no idea a) why this behaviour is happening; and b) Why itâs happening now after working for so long - what am I missing here in the API?
I managed to fix the problem with the reply_key not being substituted using this commit, which modifies the set_reply_key method in the Email::Sender class. However, I still canât figure out why Reply-To becomes null when I change it to anything but âreply_by_email_addressâ. It is set correctly at the end of the header_args method, but I canât figure out where it is unset.
Any thoughts? I think @featheredtoast is the staff member I see with the most recent edits to Email::MessageBuilder
Edit: After some debugging, this appears to happen somewhere in lib/mail/sender.rb before line 86, though not sure exactly whereâŚ
Edit #2: After further debugging, I found the problem to be the following line in the Email::Sender::set_reply_key method:
@message.header['Reply-To'] =
header_value('Reply-To').gsub!("%{reply_key}", reply_key)
This method was causing a Reply-To without a reply_key to be wiped. I added a simple if statement to exclude the function if there was no âreply_keyâ in it. As of this moment, the plugin is back to fully working status.
I suppose a recent Discourse upgrade broke the plugin. replies-xyz@example.com is no longer being ccâed. I created an issue.
Mi scuso per il ritardo nel rispondere, per qualche motivo non ho ricevuto le notifiche. Seguirò questo problema su GitHub.
Questo ora è stato corretto su GitHub. Lâessenza è che ci sono stati alcuni cambiamenti nel modo in cui message_builder.rb e sender.rb facevano le loro cose che hanno annullato le modifiche dei plugin. Per esempio, è stato usato gsub! invece di gsub per la sostituzione di reply_key, il che ha annullato lâheader âtoâ. Inoltre, per qualche motivo CC veniva annullato da self.custom_headers perchĂŠ era di 2 caratteri. Forse una funzionalitĂ di sicurezza da qualche parte? Ma lâho disabilitata per far funzionare il modulo. La nuova versione è su github. Grazie per la segnalazione del bug!