• Resolved 0x2501

    (@0x2501-1)


    Hi there!

    For some reason, Postie has started sending posts to wrong categories. Here are some debug logs:

    [16-Mar-2013 15:26:53 UTC] Postie: Checking for mail manually
    [16-Mar-2013 15:26:53 UTC] Postie: Starting mail fetch
    [16-Mar-2013 15:26:53 UTC] Postie: Time: 2013-03-16 15:26:53 GMT
    [16-Mar-2013 15:26:53 UTC] Postie: wp_content_path: /Library/WebServer/Documents/wp-content
    [16-Mar-2013 15:26:53 UTC] postie_decron: clearing cron
    [16-Mar-2013 15:26:53 UTC] Postie: Connecting to localhost:110 (pop3)
    [16-Mar-2013 15:26:53 UTC] Postie: message count: 1
    [16-Mar-2013 15:26:53 UTC] Postie: There are 1 messages to process
    [16-Mar-2013 15:26:53 UTC] Postie: memory at start of e-mail processing:60881152
    [16-Mar-2013 15:26:53 UTC] Postie: Error log: /Library/WebServer/Documents/wp-content/debug.log
    [16-Mar-2013 15:26:53 UTC] Postie: ------------------------------------
    [16-Mar-2013 15:26:53 UTC] Postie: The directory /Library/WebServer/Documents/wp-content/plugins/postie/test_emails/ does not exist, creating this optional directory will allow saving copies of emails for debugging purposes.
    [16-Mar-2013 15:26:53 UTC] Postie: Confirming Access For d.gonzalez@rochester.edu
    [16-Mar-2013 15:26:53 UTC] Postie: posting as user 1
    [16-Mar-2013 15:26:53 UTC] Postie: new post id is 20960
    [16-Mar-2013 15:26:53 UTC] Postie: Message Id is :<CAHixhzi9wYtV1Fv5=VLRagaLLSOP1NPVLRmuR=9eLcRrELXJZQ@mail.gmail.com>
    [16-Mar-2013 15:26:53 UTC] Postie: FilterTextParts: begin 2
    [16-Mar-2013 15:26:53 UTC] Postie: part: 0 text/plain
    [16-Mar-2013 15:26:53 UTC] Postie: checking prefered type
    [16-Mar-2013 15:26:53 UTC] Postie: removing: plain
    [16-Mar-2013 15:26:53 UTC] Postie: part: 1 text/html
    [16-Mar-2013 15:26:53 UTC] Postie: checking prefered type
    [16-Mar-2013 15:26:53 UTC] Postie: keeping: html
    [16-Mar-2013 15:26:53 UTC] Postie: <html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div dir="ltr">Haven't changed a thing btw!<br clear="all"><div><div dir="ltr"><div><span style="color:rgb(0,0,0)">--</span></div><div><b style="color:rgb(68,68,68)">David G</b><br></div></div></div>
    </div>
    <div dir="ltr">Haven't changed a thing btw!<br clear="all"><div><div dir="ltr"><div><span style="color:rgb(0,0,0)">--</span></div><div><b style="color:rgb(68,68,68)">Dav
    [16-Mar-2013 15:26:53 UTC] Postie: 1 parts
    [16-Mar-2013 15:26:53 UTC] Postie: FilterTextParts: end
    [16-Mar-2013 15:26:53 UTC] Postie: ----
    [16-Mar-2013 15:26:53 UTC] Postie: primary= multipart, secondary = alternative
    [16-Mar-2013 15:26:53 UTC] Postie: Filename:
    [16-Mar-2013 15:26:53 UTC] Postie: multipart: 1
    [16-Mar-2013 15:26:53 UTC] Postie: FilterTextParts: begin 1
    [16-Mar-2013 15:26:53 UTC] Postie: part: 0 text/html
    [16-Mar-2013 15:26:53 UTC] Postie: checking prefered type
    [16-Mar-2013 15:26:53 UTC] Postie: keeping: html
    [16-Mar-2013 15:26:53 UTC] Postie: <html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div dir="ltr">Haven't changed a thing btw!<br clear="all"><div><div dir="ltr"><div><span style="color:rgb(0,0,0)">--</span></div><div><b style="color:rgb(68,68,68)">David G</b><br></div></div></div>
    </div>
    <div dir="ltr">Haven't changed a thing btw!<br clear="all"><div><div dir="ltr"><div><span style="color:rgb(0,0,0)">--</span></div><div><b style="color:rgb(68,68,68)">Dav
    [16-Mar-2013 15:26:53 UTC] Postie: 1 parts
    [16-Mar-2013 15:26:53 UTC] Postie: FilterTextParts: end
    [16-Mar-2013 15:26:53 UTC] Postie: ----
    [16-Mar-2013 15:26:53 UTC] Postie: primary= text, secondary = html
    [16-Mar-2013 15:26:53 UTC] Postie: Filename:
    [16-Mar-2013 15:26:53 UTC] Postie: ctype_primary: text
    [16-Mar-2013 15:26:53 UTC] Postie: charset: us-ascii
    [16-Mar-2013 15:26:53 UTC] Postie: encoding: 7bit
    [16-Mar-2013 15:26:53 UTC] Postie: before HandleMessageEncoding
    [16-Mar-2013 15:26:53 UTC] Postie: charset: us-ascii
    [16-Mar-2013 15:26:53 UTC] Postie: encoding: 7bit
    [16-Mar-2013 15:26:53 UTC] Postie: after HandleMessageEncoding
    [16-Mar-2013 15:26:53 UTC] Postie: converting from us-ascii to UTF-8
    [16-Mar-2013 15:26:53 UTC] Postie: html
    [16-Mar-2013 15:26:53 UTC] Postie: Looking for invalid tags
    [16-Mar-2013 15:26:53 UTC] Postie: Removing: <head></head>
    [16-Mar-2013 15:26:53 UTC] Postie: meta_return: <div><div dir="ltr">Haven't changed a thing btw!<br clear="all"><div><div dir="ltr"><div><span style="color:rgb(0,0,0)">--</span></div><div><b style="color:rgb(68,68,68)">David G</b><br></div></div></div>  </div>  <div dir="ltr">Haven't changed a thing btw!<br clear="all"><div><div dir="ltr"><div><span style="color:rgb(0,0,0)">--</span></div><div><b style="color:rgb(68,68,68)">David G</b><br></div></div></div>  </div>  <div dir="ltr">Haven't changed a thing btw!<br clear="all"><div><div dir="ltr
    [16-Mar-2013 15:26:53 UTC] Postie: ====
    [16-Mar-2013 15:26:53 UTC] Postie: meta_return: <div><div dir="ltr">Haven't changed a thing btw!<br clear="all"><div><div dir="ltr"><div><span style="color:rgb(0,0,0)">--</span></div><div><b style="color:rgb(68,68,68)">David G</b><br></div></div></div>  </div>  <div dir="ltr">Haven't changed a thing btw!<br clear="all"><div><div dir="ltr"><div><span style="color:rgb(0,0,0)">--</span></div><div><b style="color:rgb(68,68,68)">David G</b><br></div></div></div>  </div>  <div dir="ltr">Haven't changed a thing btw!<br clear="all"><div><div dir="ltr
    [16-Mar-2013 15:26:53 UTC] Postie: ====
    [16-Mar-2013 15:26:53 UTC] Postie: Predecoded subject: [Journal] Testing! let's see if this works
    [16-Mar-2013 15:26:53 UTC] Postie: Subject: [Journal] Testing! let's see if this works
    [16-Mar-2013 15:26:53 UTC] Postie: sig pattern: /^(--|---)\s?$/m
    [16-Mar-2013 15:26:53 UTC] Postie: signature found: removing
    [16-Mar-2013 15:26:53 UTC] Postie: before HandleMessageEncoding
    [16-Mar-2013 15:26:53 UTC] Postie: charset:
    [16-Mar-2013 15:26:53 UTC] Postie: encoding:
    [16-Mar-2013 15:26:53 UTC] Postie: after HandleMessageEncoding
    [16-Mar-2013 15:26:53 UTC] Postie: tag_Date
    ---
    <div><div dir="ltr">Haven't changed a thing btw!<br clear="all"><div><div dir="ltr"></div></div>  </div>        </div>
    
    ---
    [16-Mar-2013 15:26:53 UTC] Postie: No date found
    [16-Mar-2013 15:26:53 UTC] Postie: post date: 2013-03-16 15:24:50 / 2013-03-16 15:24:50
    [16-Mar-2013 15:26:53 UTC] Postie: lookup_category: Journal
    [16-Mar-2013 15:26:53 UTC] Postie: category wildcard lookup: Journal
    [16-Mar-2013 15:26:53 UTC] Postie: category wildcard found: 165
    [16-Mar-2013 15:26:53 UTC] Postie: excerpt:
    [16-Mar-2013 15:26:53 UTC] Postie: Post postie_post filter
    [16-Mar-2013 15:26:53 UTC] Postie: Post Author: 1
    [16-Mar-2013 15:26:53 UTC] Postie: Date: 2013-03-16 15:24:50
    [16-Mar-2013 15:26:53 UTC] Postie: Category: 165
    [16-Mar-2013 15:26:53 UTC] Postie: Ping Status: closed
    [16-Mar-2013 15:26:53 UTC] Postie: Comment Status: open
    [16-Mar-2013 15:26:53 UTC] Postie: Subject: Testing! let's see if this works
    [16-Mar-2013 15:26:53 UTC] Postie: Postname: testing-lets-see-if-this-works
    [16-Mar-2013 15:26:53 UTC] Postie: Post Id: 20960
    [16-Mar-2013 15:26:53 UTC] Postie: Post Type: post

    The journal category has ID 40. I have also tested this changing the subject to [40], but it is then sent to the default category:

    [16-Mar-2013 15:25:26 UTC] Postie: No date found
    [16-Mar-2013 15:25:26 UTC] Postie: post date: 2013-03-16 15:24:50 / 2013-03-16 15:24:50
    [16-Mar-2013 15:25:26 UTC] Postie: lookup_category: 40
    [16-Mar-2013 15:25:26 UTC] Postie: category wildcard lookup: 40
    [16-Mar-2013 15:25:26 UTC] Postie: category wildcard found:
    [16-Mar-2013 15:25:26 UTC] Postie: excerpt:
    [16-Mar-2013 15:25:26 UTC] Postie: Post postie_post filter
    [16-Mar-2013 15:25:26 UTC] Postie: Post Author: 1
    [16-Mar-2013 15:25:26 UTC] Postie: Date: 2013-03-16 15:24:50
    [16-Mar-2013 15:25:26 UTC] Postie: Category: 155
    [16-Mar-2013 15:25:26 UTC] Postie: Ping Status: closed
    [16-Mar-2013 15:25:26 UTC] Postie: Comment Status: open
    [16-Mar-2013 15:25:26 UTC] Postie: Subject: [40] Testing! let's see if this works
    [16-Mar-2013 15:25:26 UTC] Postie: Postname: 40-testing-lets-see-if-this-works
    [16-Mar-2013 15:25:26 UTC] Postie: Post Id: 20959
    [16-Mar-2013 15:25:26 UTC] Postie: Post Type: post

    I have decided to roll-back to 1.4.36 which seems to be working (only for category ID, it still doesn’t work with short aliases.

    http://wordpress.org/extend/plugins/postie/

Viewing 6 replies - 16 through 21 (of 21 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Thanks for the ideas. FYI colon isn’t required when using [] or —

    Thread Starter 0x2501

    (@0x2501-1)

    I know, but it would be a nice way to stop further category lookups.

    Hi there,

    Same problem here.

    Everyday we receive an email with a subject like “Resumen de Prensa 12-04-2013” where 12-04-2013 is the date. For some reason the subject is truncated to “2013” which then it’s the name of the new post (wrong), and the category is also wrong because instead of going to “Resúmenes de Prensa” with ID=9 it’s going to “Comunicados de Prensa” with ID=4.
    Can I fix the issue? How?

    Thanks.

    Thread Starter 0x2501

    (@0x2501-1)

    My guess is to change the subjects date from 12-04-2013 to 12/04/2013.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    A number between dashes (-) is used to detect categories. See the section “Categories” at http://wordpress.org/extend/plugins/postie/other_notes/

    I will be adding some new preferences to let you turn this off.

    Ok, thanks a lot. Changing to 12/04/2013 till the new preferences.

Viewing 6 replies - 16 through 21 (of 21 total)

The topic ‘Posts sent to the wrong categories’ is closed to new replies.