Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
日本語対応Mailman POEM版
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yasuhito FUTATSUKI
日本語対応Mailman POEM版
Commits
a065a7e0
Commit
a065a7e0
authored
14 years ago
by
Tokio Kikuchi
Browse files
Options
Downloads
Patches
Plain Diff
email is decoded, right?
parent
aec1ade5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Mailman/Archiver/HyperArch.py
+8
-6
8 additions, 6 deletions
Mailman/Archiver/HyperArch.py
with
8 additions
and
6 deletions
Mailman/Archiver/HyperArch.py
+
8
−
6
View file @
a065a7e0
...
...
@@ -40,7 +40,7 @@ import pipermail
import
weakref
import
binascii
from
email.Header
import
decode_header
,
make_header
from
email.Header
import
decode_header
,
make_header
,
Header
from
email.Errors
import
HeaderParseError
from
email.Charset
import
Charset
...
...
@@ -276,6 +276,7 @@ class Article(pipermail.Article):
# Useful to keep around
self
.
_lang
=
lang
self
.
_mlist
=
mlist
self
.
_charset
=
Utils
.
GetCharSet
(
lang
)
if
mm_cfg
.
ARCHIVER_OBSCURES_EMAILADDRS
:
# Avoid i18n side-effects. Note that the language for this
...
...
@@ -286,8 +287,8 @@ class Article(pipermail.Article):
try
:
i18n
.
set_language
(
lang
)
if
self
.
author
==
self
.
email
:
self
.
author
=
self
.
email
=
re
.
sub
(
'
@
'
,
_
(
'
at
'
),
self
.
email
)
self
.
email
=
re
.
sub
(
'
@
'
,
_
(
'
at
'
),
self
.
email
)
self
.
author
=
str
(
Header
(
self
.
email
,
self
.
_charset
)
)
else
:
self
.
email
=
re
.
sub
(
'
@
'
,
_
(
'
at
'
),
self
.
email
)
finally
:
...
...
@@ -412,9 +413,10 @@ class Article(pipermail.Article):
subject
=
self
.
decode_charset
(
self
.
subject
)
if
author
:
self
.
decoded
[
'
author
'
]
=
author
email
=
self
.
decode_charset
(
self
.
email
)
if
email
:
self
.
decoded
[
'
email
'
]
=
email
self
.
decoded
[
'
email
'
]
=
self
.
email
#email = self.decode_charset(self.email)
#if email:
# self.decoded['email'] = email
if
subject
:
if
mm_cfg
.
ARCHIVER_OBSCURES_EMAILADDRS
:
otrans
=
i18n
.
get_translation
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment