* Fix issues #30 and #31:

* 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:
Ross Poulton 2008-11-18 04:30:34 +00:00
parent 25e978f68c
commit 5ff9025cc8
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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>