Skip to content

Commit

Permalink
Lets exclude unread and tagged messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Larsson committed Jul 18, 2022
1 parent 93cb915 commit da4493c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ async function archiveOlderThan(folder, toDate) {
const page = await browser.messages.query({
folder: folder,
toDate: toDate,
unread: false,
flagged: false
});

for await (const messages of walkList(page)) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Archive 3 Month",
"description": "Archive messages that are older than 3 months in inbox and sent folder",
"version": "0.1",
"version": "0.2",
"author": "Niklas Larsson",
"applications": {
"gecko": {
Expand Down

0 comments on commit da4493c

Please sign in to comment.