MiguelAngelLV
(Miguel Ángel López Vicente)
Julho 3, 2015, 9:36am
1
If you reply using email, gmail add
El 2/7/2015 3:11 p. m., “MiguelAngelLV” hacklabalmeria.discourse@gmail.com escribió:
The format is: datetime, nick of last user, email address that send the email, and “wrote” o “escribió” in spanish, and this message is show in the reply, example
I know that “this is not a bug of Discourse”, but gmail is a popular email.
Would be added a regular expression or something to remove the message?
3 curtidas
I think this has to do with localization. Not sure if GitHub, where we got the email library from, deals with localized string detection in email.
1 curtida
MiguelAngelLV
(Miguel Ángel López Vicente)
Setembro 15, 2015, 6:36am
3
Any idea? In the last version the problem persists.
1 curtida
MiguelAngelLV
(Miguel Ángel López Vicente)
Outubro 6, 2015, 6:21am
4
Any plugin to “remove” a line with a regular expression?
1 curtida
riking
(Kane York)
Outubro 6, 2015, 7:18am
5
Submit a PR to add another alternation here:
return unless Email::MessageIdService.discourse_generated_message_id?(@message_id)
incoming_email.update(
imap_uid_validity: @opts[:imap_uid_validity],
imap_uid: @opts[:imap_uid],
imap_group_id: @opts[:imap_group_id],
imap_sync: false,
)
incoming_email
end
def is_blocked?
return false if SiteSetting.ignore_by_title.blank?
Regexp.new(SiteSetting.ignore_by_title, Regexp::IGNORECASE) =~ @mail.subject
end
def create_incoming_email
cc_addresses = Array.wrap(@mail.cc)
cc_addresses.concat(embedded_email.cc) if has_been_forwarded? && embedded_email&.cc
IncomingEmail.create(
2 curtidas
zh99998
(zh99998)
Janeiro 9, 2016, 4:12am
6
神楽坂玲奈 zh99998@gmail.com于2016年1月9日周六 上午11:58写道:
/.+ .+@\w+.+于\d+.+\d+写道:/
1 curtida
zogstrip
Fechado
Março 23, 2016, 7:00pm
7
This has been fixed by our latest improvements regarding our email in support.