[pLog-svn] RE: moblog plugin
Oscar Renalias
oscar at renalias.net
Sun Jun 5 08:21:24 GMT 2005
This sounds terribly complicated... As long as you don't make any of
these fuctionalities mandatory in the plugin, it's fine by me. I
suppose users of western languages shouldn't need to be through the
pain of installing all these character conversion libraries :)) On
the other hand, the lack of proper support for different language
encodings is getting very annoying in php :(
Oscar
On 5 Jun 2005, at 07:46, Mark Wu wrote:
> Finally, after trace the mimeDecode, I got the whole picture ...
>
> I need to use iconv_mime_decode to convert the subject to the right
> encoding
> binary string . And, I only need to use iconv the convert the body
> to right
> encoding binary string, because the mineDecode class already decode
> the body
> back to binary string (I don't need to do it again).
>
> Now, I need to test the method to see it works or not ... :P
>
> Mark
>
>
>> -----Original Message-----
>> From: Mark Wu [mailto:markplace at gmail.com]
>> Sent: Sunday, June 05, 2005 12:39 PM
>> To: 'Mark Wu'; 'plog-svn at devel.plogworld.net'
>> Subject: RE: moblog plugin
>>
>> Ah..... I found the "I have no idea" encoding ... It is mine
>> encoding ...
>>
>> So, it seems I can use
>> http://php.nctu.edu.tw/manual/en/function.iconv-mime-decode.ph
>> p to decode it back ...
>>
>> Great ...
>>
>> Mark
>>
>>
>>> -----Original Message-----
>>> From: Mark Wu [mailto:markplace at gmail.com]
>>> Sent: Sunday, June 05, 2005 12:29 PM
>>> To: 'Mark Wu'; 'plog-svn at devel.plogworld.net'
>>> Subject: RE: moblog plugin
>>>
>>> Now, I am studing the encoding issues in moblog plugin...
>>> there are 2 place need to decode:
>>>
>>> 1. Subject : It encoded by "I have no idea" encoding method, but it
>>> will attached encoding information in front of subject like
>>> "=?big5?Bkkkjskdf" ... I think I can use it convert to
>>>
>> binary string
>>
>>> and convert it to blog charset (for example:
>>> UTF-8) through iconv()
>>>
>>> ** does any one know what is the "I have no idea" encoding method??
>>>
>>> 2. Body: It encode by "quoted-printable , 7bit or UUEncode, this
>>> value can be found after Content-Transfer-Encoding , and I need to
>>> user it to convert the body back to binary string (it the
>>>
>> encoding is
>>
>>> 7bit, seems I can ingnore it) Then, I still need to convert
>>>
>> the binary
>>
>>> string to blog charset according to mail charset,...
>>>
>>> Wow .. So complex ...
>>>
>>> This is what I found through outlook 2003 test.
>>>
>>> Mark
>>>
>>> From: Mark Wu [mailto:markplace at gmail.com]
>>> Sent: Sunday, June 05, 2005 12:01 PM
>>> To: 'plog-svn at devel.plogworld.net'
>>> Subject: RE: moblog plugin
>>>
>>>
>>>
>>> Hi Oscar:
>>>
>>> BTW, How do I enable the logger, I found the
>>>
>> "MOBLOG_DEBUG" is true,
>>
>>> but still not log any thing?
>>>
>>> Mark
>>>
>>>
>>> ________________________________
>>>
>>> From: Mark Wu [mailto:markplace at gmail.com]
>>> Sent: Sunday, June 05, 2005 11:06 AM
>>> To: 'plog-svn at devel.plogworld.net'
>>> Subject: moblog plugin
>>>
>>>
>>> Hi Oscar:
>>>
>>> I already write a moblogbatch.php, it will wrap
>>>
>> moblog.php and
>>
>>> change it from push model to pull model.
>>>
>>> I will add some new config parameter to moblog
>>>
>> configuration panel:
>>
>>>
>>> 0. push/pull method (this config only available
>>>
>> for Site owner)
>>
>>> 1. moblog e-mail server
>>> 2. moblog e-mail account
>>> 3. moblog e-mail password
>>> 4. enable pseudo cron
>>> 5. pseudo cron setting
>>>
>>> How do you think
>>>
>>> 1. If I need to add this patch to original
>>>
>> plugin? (it will support
>>
>>> both method)
>>> 2. Or I need to make a new plugin, for example
>>>
>> pullmoblog to
>>
>>> includes this features.
>>>
>>> Attachement is the code example.. It need more further
>>> modification.
>>>
>>> Mark
>>>
>>>
>>>
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-svn
>
>
More information about the pLog-svn
mailing list