• 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 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Try turning off the “Match short category” setting to see if that helps.

    Also what is category 165?

    I’m not sure that category 40 is valid. Postie does a get_term_by() and is not finding a valid category which is why it is trying a wildcard lookup.

    Thread Starter 0x2501

    (@0x2501-1)

    Category 165 doesn’t exist =\ It just went with it for no reason it would seem. I’ll turn off that setting and test later on tonight during an off-period.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    There may not be a category 165, but there is a taxonomy entry that matches. It might be easiest to view directly in the database.

    Thread Starter 0x2501

    (@0x2501-1)

    I looked up the term, and corresponds to “journal” but that only shows up in tags (and not categories). So, does Postie falls back to tags? I thought it only looked for categories.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    In wildcard mode it looks at everything which is required to support some other plugins.

    You might double check your “Journal” category to made sure there are any leading or trailing spaces.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Also I found a bug in the category code that may have been affecting you. Please upgrade to 1.4.40 to see if it helps.

    Thread Starter 0x2501

    (@0x2501-1)

    Hey Wayne,

    Thanks! It did detect the right category, but for some reason it changed the subject from “Chemotaxis Tug-of-war” to “war”, I am guessing this problem has to do with the subject containing dashes. If I change the subject from “[40] Chemotaxis Tug-of-war” to “[40]: Chemotaxis Tug-of-war” it should detect “Chemotaxis Tug-of-war” as the subject, right?

    [18-Mar-2013 22:54:46 UTC] Postie: lookup_category: 40
    [18-Mar-2013 22:54:46 UTC] Postie: category: found by id 40
    [18-Mar-2013 22:54:46 UTC] Postie: lookup_category: of
    [18-Mar-2013 22:54:47 UTC] Postie: img_placeholder_temp: #img1
    [18-Mar-2013 22:54:47 UTC] Postie: No #img1 or #eimg1 found
    [18-Mar-2013 22:54:47 UTC] Postie: excerpt:
    [18-Mar-2013 22:54:47 UTC] Postie: Post postie_post filter
    [18-Mar-2013 22:54:47 UTC] Postie: Post Author: 4
    [18-Mar-2013 22:54:47 UTC] Postie: Date: 2013-03-16 14:25:22
    [18-Mar-2013 22:54:47 UTC] Postie: Category: 40
    [18-Mar-2013 22:54:47 UTC] Postie: Ping Status: closed
    [18-Mar-2013 22:54:47 UTC] Postie: Comment Status: open
    [18-Mar-2013 22:54:47 UTC] Postie: Subject: war
    [18-Mar-2013 22:54:47 UTC] Postie: Postname: war
    [18-Mar-2013 22:54:47 UTC] Postie: Post Id: 21032
    [18-Mar-2013 22:54:47 UTC] Postie: Post Type: post
    [18-Mar-2013 22:54:48 UTC] PHP Notice:  Undefined variable: postAuthorDetails in /Library/WebServer/Documents/wp-content/plugins/postie/postie-functions.php on line 350
    [18-Mar-2013 22:54:48 UTC] Postie: send mail
    [18-Mar-2013 22:54:48 UTC] Postie: send mail: sending success mail
    [18-Mar-2013 22:54:48 UTC] Postie: Done
    [18-Mar-2013 22:54:48 UTC] Postie: memory at end of e-mail processing:75198792
    Plugin Author Wayne Allen

    (@wayneallen-1)

    I would still turn off “Match short category” as Postie will look for all the different ways to specify category.

    Thread Starter 0x2501

    (@0x2501-1)

    It is off, so we are good, right?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Yes, the log did not show wildcard lookup for “of” only an exact match so you are good.

    Note that if your subject/title happens to have a category in it Postie will attach the category. I.e. a-journal-subject will match the “Journal” category.

    Thread Starter 0x2501

    (@0x2501-1)

    Is there any way to stop category lookup? Say, stop after the first “:”?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Not at the moment. There were lots of requests for multiple category detection in the past. Plus how would Postie know which one is the right one if there are multiple?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    I could add an option for the type of category designation. I’ll add that to the list.

    Thread Starter 0x2501

    (@0x2501-1)

    Oh no, I meant something like:
    [Cat1][Category2][40]: Subject line goes here!

    or

    -Cat1-Category2-40-: Subject line goes here!

    The : stops detection of further categories.

    Thread Starter 0x2501

    (@0x2501-1)

    Anyhow, I’ll be marking this one as resolved! Many thanks for all your time!

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Posts sent to the wrong categories’ is closed to new replies.