mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-29 11:23:16 +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)
|
message = email.message_from_string(msg)
|
||||||
subject = message.get('subject', _('Created from e-mail'))
|
subject = message.get('subject', _('Created from e-mail'))
|
||||||
subject = decodeUnknown(message.get_charset(), subject)
|
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 = message.get('from', _('Unknown Sender'))
|
||||||
sender = decodeUnknown(message.get_charset(), sender)
|
sender = decodeUnknown(message.get_charset(), sender)
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
<td><span title='{{ ticket.modified|date:"r" }}'>{{ ticket.modified|timesince }}</span></td>
|
<td><span title='{{ ticket.modified|date:"r" }}'>{{ ticket.modified|timesince }}</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% 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>
|
<tr class='row_odd'><td colspan='5'>{% trans "You have no tickets assigned to you." %}</td></tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
Reference in New Issue
Block a user