{"id":1643,"date":"2025-01-10T01:43:28","date_gmt":"2025-01-09T23:43:28","guid":{"rendered":"https:\/\/www.shukko.com\/x3\/?p=1643"},"modified":"2025-01-10T01:43:28","modified_gmt":"2025-01-09T23:43:28","slug":"i-was-just-wondering-if-it-is-possible-to-automatically-remove-emails-from-one-imap-email-account-after-a-certain-amount-of-days-weeks-months","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2025\/01\/10\/i-was-just-wondering-if-it-is-possible-to-automatically-remove-emails-from-one-imap-email-account-after-a-certain-amount-of-days-weeks-months\/","title":{"rendered":"I was just wondering if it is possible to automatically remove emails from one imap email account after a certain amount of days\/weeks\/months?"},"content":{"rendered":"\n<p>Code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find \/home\/*\/imap\/*\/*\/Maildir\/{cur,new} -mtime +30 -type f -exec ls -la {} +<\/code><\/pre>\n\n\n\n<p>for printing a list of files of emails older than 30 days in a console. If you see non-empty results then you should really check command you use.<\/p>\n\n\n\n<p><strong>For deleting files server-wide:<\/strong><\/p>\n\n\n\n<p>Code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>find \/home\/*\/imap\/*\/*\/Maildir\/{cur,new} -mtime +30 -type f -exec rm -f {} +<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Code: for printing a list of files of emails older than 30 days in a console. If you see non-empty results then you should really check command you use. For deleting files server-wide: Code:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1643","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=1643"}],"version-history":[{"count":1,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1643\/revisions"}],"predecessor-version":[{"id":1644,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1643\/revisions\/1644"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=1643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=1643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=1643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}