Hi, can somebody please help, this is very frustrating...

I set up a Mailhandler mailbox - this works fine. I configured a Feeds importer to import emails from the mailbox (create nodes).
Strangely, sometimes the mails get imported - and sometimes not.

I run cron from an external crontab every 1 minute. This works as well, cron is run every time - but more often than not, no new node is created.

What could be the issue?

Thank you very much.

CommentFileSizeAuthor
#6 Job_schedule_table.png226.59 KBNicolino77
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

twistor’s picture

Version: 8.x-2.x-dev » 7.x-2.x-dev
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

What time period do you have your Feeds Importer configured to run. It doesn't run every time cron does.
Are you sure that there are always new nodes to be created?

If these are both correct, can you check in your "job_schedule" table tell me what's in there?

Nicolino77’s picture

Twistor, thanks a lot for responding.

- Feeds importer period: "As often as possible"
- I send a new mail from my drupal account registered e-mail address to the mailhandler address and I know the new mail lands "unread" in this mailhandler mailbox - in this case a new node should be created...
- Job_schedule table: phpmyadmin reports no data. I have to say I never cared for Job_schedule... are there settings to be set?

Thanks again for your help.

MegaChriz’s picture

I moved a similar issue to the Mailhandler issue queue last week. In that issue was reported that mails do get imported when "Skip messages that fail authentication" is unchecked, but only sometimes when it is checked. Perhaps that issue is related: #2297527: Skip messages that fail authentication

twistor’s picture

Component: Feeds Import (feature) » Code
Status: Postponed (maintainer needs more info) » Active

@Nicolino77, Job scheduler doesn't have any settings, it's just an API dependency on Feeds.

Here's a quick hack you can try.

  1. Go to "Basic settings"
  2. change "Periodic import" to something else, say "Every 15 min"
  3. Click Save
  4. Change "Periodic import" back to "As often as possible"
  5. Clic Save
  6. Run cron

This *should* make Feeds re-schedule the job. Can you tell me what's in the job_schedule table after you run this?

Nicolino77’s picture

@MegaChriz: I only have this setting "skip messages that fail authentication" when i go to "http://www.mydomain.com/?q=import". When I "force" the import that way, the node gets created everytime. However I want cron to do this...

@Twistor: Interestingly, I did your hack in #4 once and then everything worked fine. I then shut down the PC and the next day, I have the same problem again - no nodes at cron run. I even de-installed mailhandler and feeds module and re-installed and re-configured everything. Strangely, I very persistently am not able get nodes created.

Any other suggestions? To me this seems like a major bug...

Nicolino77’s picture

FileSize
226.59 KB

Attached a file of my job_schedule table after I did #4.

Nicolino77’s picture

Status update:

I have further experimented and I have a stable solution (I hope this holds!) where nodes are importing, and it depends on the following two conditions:

- The content type of the to-be-created node must have a field called "Feeds", this field is automatically added by the system, under manage fields / field type it says: "Feeds module from elements". I think the Feeds importer example module added the "Mailhandler source" content type where this field is available.

- You have to manually import the node one time to get things going. Once I have done this, it will work automatically subsequently. I also have to do this each time I changed fields in my content type. By manual import I mean Feeds Importers / My Importer / Basic Settings / -> under "attached to content type" theres a link for the manual import.

sneakypooka’s picture

Nicolino77,

Any word on whether this worked or not? I am having similar issues with getting Date_Ical feeds to run with a cron setting. The initial import works fine but then cron never runs again.