Posting via Email! (debugging Postie)
by Mark ~ March 27th, 2008. Filed under: Wordpress.UPDATE: I’ve also made the changes to fix category support in Postie… detailed in this post.
O.k. my first successful php debug!
The Postie plugin provides much more flexibility in posting from email, but gmail and my own ISP insist on POP3-SSL and that just wasn’t working.
cat /var/log/messages | grep PHP
showed an error message:
Mar 26 22:28:18 <servername> httpd: PHP Parse error: parse error, unexpected '{' i n /home/e-smith/files/ibays/tubenexus/html/wp-content/plugins/postie/postieIMAP. php on line 70
So I added an extra “)” after $server in line 70 as shown below:
// added extra bracket after $server -mdr if (eregi("google",$server)) { //Fix from Jim Hodgson http://www.jimhodgson.com/2006/07/19/postie/ $server_string = “{”.$server.”:”.$port.$option.”}INBOX”; }
Voila! I can now post from email!
July 3rd, 2008 at 4:02 pm
Worked like a charm.
Thanks so much for this. I was pullin’ my hair out for an hour trying to nail down the cause of this.