[pLog-svn] RE: moblog plugin

Mark Wu markplace at gmail.com
Sun Jun 5 06:43:32 GMT 2005


Okay ... 

Good news: Seems I solved the encoding problem ... Need more test ...
Bad news: iconv_mine_decode only works under php5 ,... I need to use
imap_mine_decode() and iconv() to emulate this function. The problem is I
believe just only a few people has imap enabled in their php installation...


Mark

> -----Original Message-----
> From: Mark Wu [mailto:markplace at gmail.com] 
> Sent: Sunday, June 05, 2005 12:47 PM
> To: 'Mark Wu'; 'plog-svn at devel.plogworld.net'
> Subject: RE: moblog plugin
> 
> 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
> > > 
> > > 




More information about the pLog-svn mailing list