mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-25 17:33:08 +01:00
* Dashboard doesn't show "You have no tickets assigned to you." incorrectly * get_email is smarter about "RE:" and "FW:" to prevent double-ups.
This commit is contained in:
parent
25e978f68c
commit
5ff9025cc8
@ -122,7 +122,7 @@ def ticket_from_message(message, queue):
|
||||
message = email.message_from_string(msg)
|
||||
subject = message.get('subject', _('Created from e-mail'))
|
||||
subject = decodeUnknown(message.get_charset(), subject)
|
||||
subject = subject.replace("Re: ", "").replace("Fw: ", "").strip()
|
||||
subject = subject.replace("Re: ", "").replace("Fw: ", "").replace("RE: ", "").replace("FW: ", "").strip()
|
||||
|
||||
sender = message.get('from', _('Unknown Sender'))
|
||||
sender = decodeUnknown(message.get_charset(), sender)
|
||||
|
@ -34,7 +34,7 @@
|
||||
<td><span title='{{ ticket.modified|date:"r" }}'>{{ ticket.modified|timesince }}</span></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% if not unassigned_tickets %}
|
||||
{% if not user_tickets %}
|
||||
<tr class='row_odd'><td colspan='5'>{% trans "You have no tickets assigned to you." %}</td></tr>
|
||||
{% endif %}
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user