Closed (fixed)
Project:
Simplenews
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2008 at 23:37 UTC
Updated:
9 Apr 2008 at 14:04 UTC
Site name is used to set "From:" field in mail header (when mimemail module exists) but it is not correctly encoded if name contains i18n letters. I suggest to encode "From:" field by mime_header_encode function first.
| Comment | File | Size | Author |
|---|---|---|---|
| from_mime_header_encode.patch | 646 bytes | kndr |
Comments
Comment #1
sutharsan commentedThank you for the patch. But this change will cause an error if simplenews is used without mimemail module.
Comment #2
kndrI don't understand how is it possible? Look at function simplenews_mail_send(). Variable $form (which I have modified by patch) is used only in case if mimemail module exists (it is parameter in calling mimemail function). Well, if mimemail module doesn't exists, variable $from isn't used and therefore it's value can't have negative impact to simplenews. Where is the source of error and what kind of error have you noticed?
Comment #3
sutharsan commentedSorry, I looked too quickly. simplenews_mail_send() is called both for plain and html newsletters. But mime_header_encode() is a core function and not (as I thought first) a mimemail function.
Patch committed. Thanks.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.