mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
feat(mail): folders
This commit is contained in:
parent
f3c7706503
commit
8c32db93f3
3 changed files with 6 additions and 1 deletions
2
Mail.org
2
Mail.org
|
|
@ -207,6 +207,7 @@ So, here are the rules which match tags & folders:
|
|||
| job.digital.docs | Job_Digital.Docs |
|
||||
| job.digital.support | Job_Digital.Support |
|
||||
| job.digital.superservice | Job_Digital.Superservice |
|
||||
| job.digital.applicants | Job_Digital.Applicants |
|
||||
|
||||
And below is a noweb function, which generates the following commands for notmuch to execute:
|
||||
- /before/ sync:
|
||||
|
|
@ -418,6 +419,7 @@ Finally the proper notmuch settings:
|
|||
(setq mml-secure-openpgp-sign-with-sender t)
|
||||
(setq notmuch-mua-user-agent-function 'notmuch-mua-user-agent-full)
|
||||
;; Use org-contacts for completion
|
||||
(require 'org-contacts)
|
||||
(setq notmuch-address-command 'as-is)
|
||||
(add-hook 'notmuch-hello-mode-hook
|
||||
(lambda () (display-line-numbers-mode 0))))
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ notmuch tag +job.digital.support "path:pvkorytov_etu/Job_Digital.Support/cur/**
|
|||
notmuch tag -job.digital.support "NOT path:pvkorytov_etu/Job_Digital.Support/cur/** AND tag:job.digital.support AND tag:pvkorytov"
|
||||
notmuch tag +job.digital.superservice "path:pvkorytov_etu/Job_Digital.Superservice/cur/** AND NOT tag:job.digital.superservice"
|
||||
notmuch tag -job.digital.superservice "NOT path:pvkorytov_etu/Job_Digital.Superservice/cur/** AND tag:job.digital.superservice AND tag:pvkorytov"
|
||||
notmuch tag +job.digital.applicants "path:pvkorytov_etu/Job_Digital.Applicants/cur/** AND NOT tag:job.digital.applicants"
|
||||
notmuch tag -job.digital.applicants "NOT path:pvkorytov_etu/Job_Digital.Applicants/cur/** AND tag:job.digital.applicants AND tag:pvkorytov"
|
||||
echo "Post-new filters done"
|
||||
notmuch tag -new "tag:new"
|
||||
# =post_new=:2 ends here
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ notmuch search --output=files "NOT path:pvkorytov_etu/Job_Digital/cur/** AND tag
|
|||
notmuch search --output=files "NOT path:pvkorytov_etu/Job_Digital.Docs/cur/** AND tag:job.digital.docs AND tag:pvkorytov" | xargs -I ! mv ! ~/Mail/pvkorytov_etu/Job_Digital.Docs/cur/
|
||||
notmuch search --output=files "NOT path:pvkorytov_etu/Job_Digital.Support/cur/** AND tag:job.digital.support AND tag:pvkorytov" | xargs -I ! mv ! ~/Mail/pvkorytov_etu/Job_Digital.Support/cur/
|
||||
notmuch search --output=files "NOT path:pvkorytov_etu/Job_Digital.Superservice/cur/** AND tag:job.digital.superservice AND tag:pvkorytov" | xargs -I ! mv ! ~/Mail/pvkorytov_etu/Job_Digital.Superservice/cur/
|
||||
notmuch search --output=files "NOT path:pvkorytov_etu/Archive/cur/** AND NOT tag:inbox AND NOT tag:sent AND NOT tag:spam AND NOT tag:trash AND NOT tag:job.digital AND NOT tag:job.digital.docs AND NOT tag:job.digital.support AND NOT tag:job.digital.superservice AND tag:pvkorytov" | xargs -I ! mv ! ~/Mail/pvkorytov_etu/Archive/cur/
|
||||
notmuch search --output=files "NOT path:pvkorytov_etu/Job_Digital.Applicants/cur/** AND tag:job.digital.applicants AND tag:pvkorytov" | xargs -I ! mv ! ~/Mail/pvkorytov_etu/Job_Digital.Applicants/cur/
|
||||
notmuch search --output=files "NOT path:pvkorytov_etu/Archive/cur/** AND NOT tag:inbox AND NOT tag:sent AND NOT tag:spam AND NOT tag:trash AND NOT tag:job.digital AND NOT tag:job.digital.docs AND NOT tag:job.digital.support AND NOT tag:job.digital.superservice AND NOT tag:job.digital.applicants AND tag:pvkorytov" | xargs -I ! mv ! ~/Mail/pvkorytov_etu/Archive/cur/
|
||||
echo "Pre-new filters done"
|
||||
|
||||
parallel --link -j0 "(cd /home/pavel/Mail/{1}/ && {2} {3})" ::: thexcloud progin6304 pvkorytov_etu ::: "$GMI" "$GMI" "offlineimap" ::: sync sync ""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue