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
            $server_string = “{”.$server.”:”.$port.$option.”}INBOX”;

Voila!  I can now post from email!

7 Responses to Posting via Email! (debugging Postie)

  1. Ben

    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.

Musician's Friend Stupid Deal of the Day