I have searched the site but been unable to find a solution to my particular problem. I appreciate any advice.
I have a feed coming from a mailbox via Mailhandler (IMAP). I have set the following in the IMAP stream processor:
Available commands:
tid
status
Default commands:
tid: [Mailing List]
status: 1
The node processor has the following mapping included:
Source: tid, Target: Taxonomy:Forums
Upon import, the node is created in the forum, but appears with a 'This topic has been moved to ""' notice. If I edit the forum topic and save (making no other changes), the message disappears and all is normal.
When the node is created on the site, there are two entries in the term_node table. One has the correct tid for the 'Mailing List' forum, and the other has a tid of 0. After the edit / save of the forum topic, the entry with the tid of 0 has disappeared.
Does anyone have an idea of what could be causing the extra term_node entry?
Comments
Comment #1
Swhit commentedFurther digging showed that the extra term_node entry wasn't causing my forum trouble. The node was getting created without an associated tid at the node level. After wading through the code and trying to figure out the least disruptive way to kluge it, I finally added a line to the feed taxonomy mapper:
at line 187:
I also stuck a watchdog statement in there so I can track it down if this addition ends up tripping me up later.
I am sure there must be a more elegant solution, such as getting the tid to show up in the feeds mapping screen on the 'map to' side. Surely someone is doing this, but I haven't been able to make it work yet. I am still very new to drupal, and stumbling around a bit.
If anyone can point me in the right direction for doing this through the UI, I'd appreciate it. Thanks!
Comment #2
tobedeleted commentedThanks for this. I've had success by inserting this line. http://drupal.org/node/1534764#comment-5874832 for more. I'm unclear as to why this has not been addressed by the module maintainer. Importing into forum posts is why I'm using this module, in conjunction with mail handler, and with this problem the module as released is essentially broken.
Comment #3
Cosades85 commentedAPologies on resserecting an old thread, but could someone explain this solution? I have added this line at line 108 to mappers/taxonomy.inc but this issue is recurring. Line 187 is at the end of the file. This is making feed importing of emails into specific topics essentially broken so I'd appreciate any comments here.
Comment #4
twistor commented