WordPress.org

Ready to get started?Download WordPress

Forums

Postie
[resolved] Posts sent to the wrong categories (22 posts)

  1. 0x2501
    Member
    Posted 1 year ago #

    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/

  2. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. 0x2501
    Member
    Posted 1 year ago #

    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.

  4. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. 0x2501
    Member
    Posted 1 year ago #

    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.

  6. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  7. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  8. 0x2501
    Member
    Posted 1 year ago #

    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
  9. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

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

  10. 0x2501
    Member
    Posted 1 year ago #

    It is off, so we are good, right?

  11. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  12. 0x2501
    Member
    Posted 1 year ago #

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

  13. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  14. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

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

  15. 0x2501
    Member
    Posted 1 year ago #

    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.

  16. 0x2501
    Member
    Posted 1 year ago #

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

  17. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the ideas. FYI colon isn't required when using [] or --

  18. 0x2501
    Member
    Posted 1 year ago #

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

  19. carblanco
    Member
    Posted 1 year ago #

    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.

  20. 0x2501
    Member
    Posted 1 year ago #

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

  21. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  22. carblanco
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.