Hello,

I copied pop3-to-mt and I am trying to modify the code. The original code says:

CODE
my($postid) = XMLRPC::Lite
 ->proxy($proxy)
 ->call "mt.newPost",$blogid,$authorname,$mt_password,$content,$publish)
 ->result;


where publish is either 0 or 1, for draft or publish.

My first attempt set publish to 1, which works. The entry-list shows an entry as published, only there is no category attached to the post.

This I do not want. So, I have set it to 0, hence my entry will be in draft mode. But I also added the following lines

CODE
my($newpostid) = XMLRPC::Lite
 ->proxy($proxy)
 ->call("mt.setPostCategories", $postid, $authorname, $mt_password, "Words")
 ->result;

my($newerpostid) = XMLRPC::Lite
 ->proxy($proxy)
 ->call("mt.publishPost", $newpostid, $authorname, $mt_password)
 ->result;


where "Words" is one of my categories.

The result is the same as with the first attempt: I end up with a new post in published mode with no category.

Does anybody know what I need to change? Thanks in advance, Erik-Jan