Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Tickets

[The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name

 

 

Trac tickets RSS feed   Index | Next | Previous | View Threaded


noreply at edgewall

Jun 30, 2005, 11:00 PM

Post #1 of 14 (1349 views)
Permalink
[The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name

#1744: MIME encoding of notify mail with non-ascii project name
---------------------+------------------------------------------------------
Id: 1744 | Status: new
Component: general | Modified: Thu Jun 30 22:59:56 2005
Severity: normal | Milestone:
Priority: normal | Version: devel
Owner: jonas | Reporter: Shun-ichi Goto <gotoh [at] taiyo>
---------------------+------------------------------------------------------
On creating notify mail, X-Trac-Project: header and From: header use
project name.
When I use non-ascii project name, mail message will be sent with raw
utf-8 bytes value
without MIME encoding. This is not good.

First, I've modified like this (but not good):

{{{
Index: Notify.py
===================================================================
--- Notify.py (revision 1875)
+++ Notify.py (working copy)
@@ -136,10 +136,10 @@
msg['X-Mailer'] = 'Trac %s, by Edgewall Software' % __version__
msg['X-Trac-Version'] = __version__
projname = self.config.get('project','name')
- msg['X-Trac-Project'] = projname
+ msg['X-Trac-Project'] = Header(projname, 'utf-8')
msg['X-URL'] = self.config.get('project','url')
msg['Subject'] = Header(self.subject, 'utf-8')
- msg['From'] = '%s <%s>' % (projname, self.from_email)
+ msg['From'] = Header('%s <%s>' % (projname, self.from_email),
'utf-8')
msg['Sender'] = self.from_email
msg['Reply-To'] = self.replyto_email
msg['To'] = rcpt
}}}

X-Trac-Project: header seems be good.
But From: header, which is structured header (in rfc2822 context), is so
bad because
entire value would be encoded.

I don't know right way of using email package to handle structured field
like
From: field.
One easy fix to allow non-ascii project name is changing From: value not
to use project name.
{{{
Index: Notify.py
===================================================================
--- Notify.py (revision 1875)
+++ Notify.py (working copy)
@@ -136,10 +136,10 @@
msg['X-Mailer'] = 'Trac %s, by Edgewall Software' % __version__
msg['X-Trac-Version'] = __version__
projname = self.config.get('project','name')
- msg['X-Trac-Project'] = projname
+ msg['X-Trac-Project'] = Header(projname, 'utf-8')
msg['X-URL'] = self.config.get('project','url')
msg['Subject'] = Header(self.subject, 'utf-8')
- msg['From'] = '%s <%s>' % (projname, self.from_email)
+ msg['From'] = 'Trac <%s>' % self.from_email
msg['Sender'] = self.from_email
msg['Reply-To'] = self.replyto_email
msg['To'] = rcpt
}}}

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/1744>
The Trac Project <>


noreply at edgewall

Oct 25, 2005, 11:18 AM

Post #2 of 14 (1321 views)
Permalink
Re: [The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name [In reply to]

#1744: MIME encoding of notify mail with non-ascii project name
------------------------------------------------+---------------------------
Reporter: Shun-ichi Goto <gotoh [at] taiyo> | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone:
Component: general | Version: devel
Severity: normal | Resolution:
Keywords: |
------------------------------------------------+---------------------------
Changes (by dserodio [at] gmail):

* cc: => dserodio [at] gmail

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/1744>
The Trac Project <http://trac.edgewall.com/>


noreply at edgewall

Mar 27, 2006, 4:58 AM

Post #3 of 14 (1313 views)
Permalink
Re: [The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name [In reply to]

#1744: MIME encoding of notify mail with non-ascii project name
------------------------------------------------+---------------------------
Reporter: Shun-ichi Goto <gotoh [at] taiyo> | Owner: eblot
Type: defect | Status: assigned
Priority: normal | Milestone:
Component: general | Version: devel
Severity: normal | Resolution:
Keywords: notification email |
------------------------------------------------+---------------------------
Changes (by eblot):

* status: new => assigned
* owner: jonas => eblot
* keywords: => notification email

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/1744>
The Trac Project <http://trac.edgewall.com/>


noreply at edgewall

Apr 16, 2006, 5:11 PM

Post #4 of 14 (1315 views)
Permalink
Re: [The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name [In reply to]

#1744: MIME encoding of notify mail with non-ascii project name
------------------------------------------------+---------------------------
Reporter: Shun-ichi Goto <gotoh [at] taiyo> | Owner: eblot
Type: task | Status: assigned
Priority: high | Milestone: 0.7.1
Component: project | Version: 0.9.1
Severity: normal | Resolution:
Keywords: notification email |
------------------------------------------------+---------------------------
Changes (by pagerank main):

* version: devel => 0.9.1
* type: enhancement => task
* priority: normal => high
* milestone: => 0.7.1
* component: general => project

Comment:

<a href='http://www.yahoo.com'></a>Welcome!
http://www.areaseo.com/improvepr/ <a href='http://www.areaseo.com'>improve
pagerank default</a>. <a href="http://www.areaseo.com ">PageRank 11</a>:
high your rank, Search Engine Optimization, Professional SEO. Also
[url]http://www.areaseo.com/linksale/[/url] and
[link=http://www.areaseo.com]google rank 20[/link] from pagerank .

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/1744>
The Trac Project <http://trac.edgewall.com/>


noreply at edgewall

May 22, 2006, 12:58 PM

Post #5 of 14 (1309 views)
Permalink
Re: [The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name [In reply to]

#1744: MIME encoding of notify mail with non-ascii project name
------------------------------------------------+---------------------------
Reporter: Shun-ichi Goto <gotoh [at] taiyo> | Owner: eblot
Type: enhancement | Status: closed
Priority: normal | Milestone: 0.10
Component: general | Version: devel
Severity: normal | Resolution: fixed
Keywords: notification email |
------------------------------------------------+---------------------------
Changes (by eblot):

* milestone: => 0.10
* resolution: => fixed
* status: assigned => closed

Comment:

Fixed in the new notification implementation available in [source:/trunk].

--
Ticket URL: <http://projects.edgewall.com/trac/ticket/1744>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
Trac-Tickets [at] lists
http://lists.edgewall.com/mailman/listinfo/trac-tickets


noreply at edgewall

Sep 6, 2006, 7:30 PM

Post #6 of 14 (1284 views)
Permalink
Re: [The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name [In reply to]

#1744: MIME encoding of notify mail with non-ascii project name
------------------------------------------------+---------------------------
Reporter: Shun-ichi Goto <gotoh [at] taiyo> | Owner: eblot
Type: 0 | Status: reopened
Priority: high | Milestone: 0.5
Component: changeset view | Version: none
Severity: critical | Resolution:
Keywords: notification email |
------------------------------------------------+---------------------------
Changes (by NiseGirl):

* status: closed => reopened
* severity: normal => critical
* type: enhancement => 0
* component: general => changeset view
* priority: normal => high
* version: devel => none
* milestone: 0.10 => 0.5
* resolution: fixed =>

--
Ticket URL: <http://trac.edgewall.org/ticket/1744#comment:4>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---


noreply at edgewall

Sep 7, 2006, 9:31 AM

Post #7 of 14 (1270 views)
Permalink
Re: [The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name [In reply to]

#1744: MIME encoding of notify mail with non-ascii project name
------------------------------------------------+---------------------------
Reporter: Shun-ichi Goto <gotoh [at] taiyo> | Owner: eblot
Type: 0 | Status: reopened
Priority: high | Milestone: 0.5
Component: changeset view | Version: none
Severity: critical | Resolution:
Keywords: notification email |
------------------------------------------------+---------------------------
Changes (by Sonar):

* status: closed => reopened
* severity: normal => critical
* type: enhancement => 0
* component: general => changeset view
* priority: normal => high
* version: devel => none
* milestone: 0.10 => 0.5
* resolution: fixed =>

Comment:

%

--
Ticket URL: <http://trac.edgewall.org/ticket/1744#comment:4>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---


noreply at edgewall

Sep 7, 2006, 1:11 PM

Post #8 of 14 (1288 views)
Permalink
Re: [The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name [In reply to]

#1744: MIME encoding of notify mail with non-ascii project name
------------------------------------------------+---------------------------
Reporter: Shun-ichi Goto <gotoh [at] taiyo> | Owner: eblot
Type: defect | Status: closed
Priority: normal | Milestone: 0.10
Component: general | Version: devel
Severity: normal | Resolution: fixed
Keywords: notification email |
------------------------------------------------+---------------------------
Changes (by anonymous):

* status: reopened => closed
* severity: critical => normal
* type: 0 => defect
* component: changeset view => general
* priority: high => normal
* version: none => devel
* milestone: 0.5 => 0.10
* resolution: => fixed

Comment:

Restore status

--
Ticket URL: <http://trac.edgewall.org/ticket/1744#comment:5>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---


noreply at edgewall

Sep 8, 2006, 2:33 AM

Post #9 of 14 (1266 views)
Permalink
Re: [The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name [In reply to]

#1744: MIME encoding of notify mail with non-ascii project name
------------------------------------------------+---------------------------
Reporter: Shun-ichi Goto <gotoh [at] taiyo> | Owner: eblot
Type: 0 | Status: reopened
Priority: high | Milestone: 0.5
Component: changeset view | Version: none
Severity: critical | Resolution:
Keywords: notification email |
------------------------------------------------+---------------------------
Changes (by Gory):

* status: closed => reopened
* severity: normal => critical
* type: defect => 0
* component: general => changeset view
* priority: normal => high
* version: devel => none
* milestone: 0.10 => 0.5
* resolution: fixed =>

Comment:

t

--
Ticket URL: <http://trac.edgewall.org/ticket/1744#comment:6>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---


noreply at edgewall

Sep 10, 2006, 9:46 AM

Post #10 of 14 (1259 views)
Permalink
Re: [The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name [In reply to]

#1744: MIME encoding of notify mail with non-ascii project name
------------------------------------------------+---------------------------
Reporter: Shun-ichi Goto <gotoh [at] taiyo> | Owner: eblot
Type: 0 | Status: reopened
Priority: high | Milestone: 0.5
Component: changeset view | Version: none
Severity: critical | Resolution:
Keywords: notification email |
------------------------------------------------+---------------------------
Changes (by Rocky):

* status: closed => reopened
* severity: normal => critical
* type: defect => 0
* component: general => changeset view
* priority: normal => high
* version: devel => none
* milestone: 0.10 => 0.5
* resolution: fixed =>

Comment:

t

--
Ticket URL: <http://trac.edgewall.org/ticket/1744#comment:4>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---


noreply at edgewall

Sep 10, 2006, 10:11 AM

Post #11 of 14 (1266 views)
Permalink
Re: [The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name [In reply to]

#1744: MIME encoding of notify mail with non-ascii project name
------------------------------------------------+---------------------------
Reporter: Shun-ichi Goto <gotoh [at] taiyo> | Owner: eblot
Type: enhancement | Status: closed
Priority: normal | Milestone: 0.10
Component: general | Version: devel
Severity: normal | Resolution: fixed
Keywords: notification email |
------------------------------------------------+---------------------------
Changes (by anonymous):

* status: reopened => closed
* severity: critical => normal
* type: 0 => enhancement
* component: changeset view => general
* priority: high => normal
* version: none => devel
* milestone: 0.5 => 0.10
* resolution: => fixed

Comment:

Restore status.

--
Ticket URL: <http://trac.edgewall.org/ticket/1744#comment:5>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---


noreply at edgewall

Sep 15, 2006, 12:47 AM

Post #12 of 14 (1225 views)
Permalink
Re: [The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name [In reply to]

#1744: MIME encoding of notify mail with non-ascii project name
------------------------------------------------+---------------------------
Reporter: Shun-ichi Goto <gotoh [at] taiyo> | Owner: eblot
Type: 0 | Status: reopened
Priority: high | Milestone: 0.5
Component: changeset view | Version: none
Severity: critical | Resolution:
Keywords: notification email |
------------------------------------------------+---------------------------
Changes (by Margareta):

* status: closed => reopened
* severity: normal => critical
* type: enhancement => 0
* component: general => changeset view
* priority: normal => high
* version: devel => none
* milestone: 0.10 => 0.5
* resolution: fixed =>

--
Ticket URL: <http://trac.edgewall.org/ticket/1744#comment:6>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---


noreply at edgewall

Sep 15, 2006, 7:41 PM

Post #13 of 14 (1231 views)
Permalink
Re: [The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name [In reply to]

#1744: MIME encoding of notify mail with non-ascii project name
------------------------------------------------+---------------------------
Reporter: Shun-ichi Goto <gotoh [at] taiyo> | Owner: anonymous
Type: 0 | Status: new
Priority: high | Milestone: 0.5
Component: changeset view | Version: none
Severity: critical | Resolution:
Keywords: notification email |
------------------------------------------------+---------------------------
Changes (by Barbala):

* owner: eblot => anonymous
* status: reopened => new

Comment:

p

--
Ticket URL: <http://trac.edgewall.org/ticket/1744#comment:7>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---


noreply at edgewall

Sep 20, 2006, 11:36 AM

Post #14 of 14 (1198 views)
Permalink
Re: [The Trac Project] #1744: MIME encoding of notify mail with non-ascii project name [In reply to]

#1744: MIME encoding of notify mail with non-ascii project name
------------------------------------------------+---------------------------
Reporter: Shun-ichi Goto <gotoh [at] taiyo> | Owner: eblot
Type: 0 | Status: reopened
Priority: high | Milestone: 0.5
Component: changeset view | Version: none
Severity: critical | Resolution:
Keywords: notification email |
------------------------------------------------+---------------------------
Changes (by Agota):

* status: closed => reopened
* severity: normal => critical
* type: enhancement => 0
* component: general => changeset view
* priority: normal => high
* version: devel => none
* milestone: 0.10 => 0.5
* resolution: fixed =>

--
Ticket URL: <http://trac.edgewall.org/ticket/1744#comment:4>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---

Trac tickets RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.