Unprocessable Emails - How to delete?

Infos:

  • Used Zammad version: zammad-6.4.1-1738327797.0aca8c0f.centos8.x86_64
  • Used Zammad installation type: package
  • Operating system: AlmaLinux 8.10
  • Browser + version: does not apply

Expected behavior:

  • Health Status reports all okay.

Actual behavior:

  • emails that could not be processed

I have several emails in the unprocessed folder. I checked them and I dont need them anymore. How can I reset / delete this warning?

I have been googling, but most commands refer to way older versions that does no longer seem to work.

Any help is appreciated!

Hi @creiss.

Other Useful Commands — Zammad System Documentation documentation - last point should be useful for you.

Oh, I tried.

╰─➤ rake zammad:email_parser:failed_email:export_all
Your Ruby version is 2.7.8, but your Gemfile specified 3.2.4

╰─➤ ./bin/ruby rake zammad:email_parser:failed_email:export_all
[no output]

╰─➤ rake zammad:email_parser:failed_email:delete var/spool/
Your Ruby version is 2.7.8, but your Gemfile specified 3.2.4

╰─➤ bin/rake zammad:email_parser:failed_email:delete var/spool/
Your Ruby version is 2.7.8, but your Gemfile specified 3.2.4

I just want the emails gone :slight_smile:

All answers we provide expect you’re on a current Zammad version.
And you are, so I have no idea why you are not using the commands that are outlined in the documentation.

You’re using a package installation. Maybe also read the intro of the console section if you don’t know how to handle this.

Thank you for your reply.

Trust me I tried. But Console doc (Console — Zammad System Documentation documentation) states

package installation

$ zammad run rails r ‘{COMMAND}’

So I took the command from the doc (Other Useful Commands — Zammad System Documentation documentation) which said

rake zammad:email_parser:failed_email:delete path/to/your/email.eml

I am not a coder, so I assume it’s

zammad run rails r 'zammad:email_parser:failed_email:delete path/to/your/email.eml`

which all fail:

╰─➤ zammad run rails r ‘email_parser:failed_email:delete var/spool’
Please specify a valid ruby command or the path of a script to run.
Run ‘bin/rails runner -h’ for help.

/opt/zammad/vendor/bundle/ruby/3.2.0/gems/railties-7.1.5.1/lib/rails/commands/runner/runner_command.rb:46: syntax error, unexpected ‘:’, expecting end-of-input
email_parser:failed_email:delete var/spool

(Yes, I changed the placeholder path/to/your/email.eml).

Just for funsies: What would the correct command be to delete/ wipe all unprocessable emails (and/or wipe them from the db) for a packaged installation?

Thank you! :heart:

zammad run rake ... is what you’re looking for.