{"id":2147,"date":"2010-09-07T21:29:00","date_gmt":"2010-09-07T21:29:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2010\/09\/07\/how-to-test-procmail-rules\/"},"modified":"2010-09-07T21:29:00","modified_gmt":"2010-09-07T21:29:00","slug":"how-to-test-procmail-rules","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2010\/09\/07\/how-to-test-procmail-rules\/","title":{"rendered":"how to test procmail rules?"},"content":{"rendered":"<p>\t\t\t\tThis may sound utterly silly, but within all these years, that I have been using <i>procmail<\/i>, I never came around to find a way of testing <i>procmail<\/i> rules other than by testing them <i>in production<\/i> for my incoming e-mail. The problem is, <i>procmail<\/i> gets called through sendmail and they deliver the messages. If I resend messages, sendmail changes the <i>Return-Path<\/i> header field, on which my rules are based. All other relevant looking header fields can get tweaked and faked, <i>Return-Path<\/i> seems alright (???).<\/p>\n<div>\n<\/div>\n<div>\nI&#8217;ll try to find out on the <i>procmail<\/i> list, ie. on\u00a0<a href=\"http:\/\/dir.gmane.org\/gmane.mail.procmail\">http:\/\/dir.gmane.org\/gmane.mail.procmail<\/a>\u00a0.<\/p>\n<p>Update \/ 2010-12-26:<\/p>\n<p>Setting &#8220;<span>VERBOSE=on<\/span>&#8221; within your <span>.procmailrc<\/span> shows a lot of helpful output.<\/p>\n<p>Yes, a message, that my .procmailrc does not deal with, as I think it should, must get copied to another IMAP folder; from there I copy it back to the IMAP folder, which I direct <span>fetchmail<\/span> to. I can repeat that endlessly, until I find out what&#8217;s going on. Maybe that also works somehow with <span>formail<\/span>, but I haven&#8217;t figured that out yet.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This may sound utterly silly, but within all these years, that I have been using procmail, I never came around to find a way of testing procmail rules other than by testing them in production for my incoming e-mail. The problem is, procmail gets called through sendmail and they deliver the messages. If I resend [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-2147","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-yD","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/2147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=2147"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/2147\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=2147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=2147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=2147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}