Skip to content

Instantly share code, notes, and snippets.

View jogerj's full-sized avatar
🟢
Online

Jonathan Joewono jogerj

🟢
Online
View GitHub Profile
@jogerj
jogerj / fileinto_subfolder_by_date.sieve
Created September 23, 2025 19:52
Files incoming messages into subfolders of Inbox by YYYY-MM
require ["date", "fileinto", "variables"];
if date :matches "date" "year" "*" {
set "year" "${1}";
}
if date :matches "date" "month" "*" {
if string :matches "${1}" "?" {
set "month" "0${1}";
} else {