diff --git a/.config/afew/.helix/languages.toml b/.config/afew/.helix/languages.toml new file mode 100644 index 00000000..e6da5963 --- /dev/null +++ b/.config/afew/.helix/languages.toml @@ -0,0 +1,3 @@ +[[language]] +name = "ini" +file-types = [{glob="config"}, "ini", "conf"] diff --git a/.config/afew/config b/.config/afew/config new file mode 100644 index 00000000..1c36b601 --- /dev/null +++ b/.config/afew/config @@ -0,0 +1,46 @@ +[MeFilter] +me_tag=to-me +[SpamFilter] +spam_tag = spam +[KillThreadsFilter] +[ListMailsFilter] +[Filter.1] +query = path:personal/** +tags = +personal +message = personal +[Filter.2] +query = path:school/** +tags = +school +message = school +[Filter.3] +query = path:personal/sent/** +tags = +sent +# tags = +sent;-new +message = personal sent +[Filter.4] +query = path:school/sent/** +tags = +sent +# tags = +sent;-new +message = school sent +[Filter.6] +query = from:/@github|@gitlab|@codeberg/ and tag:lists +tags = +git +message = git +[Filter.7] +query = /gabor.*@|zsuzsa.*@|csergo.*@/ +tags = +family +message = family +[Filter.5] +query = to:@sr.ht and tag:lists +tags = +srht +message = sourcehut +# [ArchiveSentMailsFilter] +# sent_tag = sent +# apply unread tag +[Filter.99] +query = 'NOT tag:sent AND tag:new' +tags = +unread +message = unread +[InboxFilter] +tags = +inbox + diff --git a/.config/afew/example.ini b/.config/afew/example.ini new file mode 100644 index 00000000..ae0316ef --- /dev/null +++ b/.config/afew/example.ini @@ -0,0 +1,122 @@ +# Customizing filters +# You can override the filter +# or make a new one +# this filter is in addition to default +[SpamFilter.0] +message = meh +# This one replaces the default +[SpamFilter] +message = woah + +# Cerate a new type +[ShitFilter(SpamFilter)] +message = horrible! +[ShitFilter.0] +message = whaaa + +# This is the default filter chain +[SpamFilter] +# Add to mails that are spam. +# default is spam +# May use to tag spam as junk or scum or whatever +# Only single tag supported +# Emails are spam if X-Spag-Flag is present. +spam_tag = +[KillThreadsFilter] +# If new msg added to a threat +# already tagged killed, then add killed +# tag to this message too. Allows for +# ignoring all replies to a thread. +[ListMailsFilter] +# Looks for the List-Id header. +# If found, adds a tag lists and a tag +# lists/list-id +[ArchiveSentMailsFilter] +# Extends SentMailsFilter +# But also removes the new tag, therefore +# they won't get inbox tag +[InboxFilter] +# Removes new tag, adds inbox tag +# to any msg that isn't killed or spam. + + +[MeFilter] +# Add filter tagging mail send directly to +# any addresses defined in the notmuch config file +me_tag=to-me + +[SentMailsFilter] +# default is empty! +# add tag to all mail sent from my addresses +sent_tag = sent +# Transform to/cc/bcc addresses to tags according +# to rules. +# Space separated list of 'user_part@domain_part:tags' pairs. +# Colon separates address from tags they should have. +# :tags is optional; if empty, user_part used as tag. +# Can be single or semicolon separated list. +# Basically helpful to tag mail that's sent from me, +# to someone specific. +# Can be used to easily tag posts sent to mailing lists +# which don't have the List-Id field yet. +to_transforms = + +# Others +[FolderNameFilter] +# Looks at all folders it's in, +# uses the path and filename as a tag. + + + + +# notmuch commands: + +# # immediately archive all messages from "me" +# notmuch tag -new -- tag:new and from:me@example.com + +# # delete all messages from a spammer: +# notmuch tag +deleted -- tag:new and from:spam@spam.com + +# # tag all message from notmuch mailing list +# notmuch tag +notmuch -- tag:new and to:notmuch@notmuchmail.org + +# # finally, retag all "new" messages "inbox" and "unread" +# notmuch tag +inbox +unread -new -- tag:new + +# equivalent to: +[ArchiveSentMailsFilter] + +[Filter.1] +message = Delete all messages from spammer +query = from:spam@spam.com +tags = +deleted;-new + +[Filter.2] +message = Tag all messages from the notmuch mailing list +query = to:notmuch@notmuchmail.org +tags = +notmuch + +[InboxFilter] + +# More example filters: + +[Filter.1] +query = 'sicsa-students@sicsa.ac.uk' +tags = +sicsa +message = sicsa + +[Filter.2] +query = 'from:foosoc.ed@gmail.com OR from:GT Silber OR from:lizzie.brough@eusa.ed.ac.uk' +tags = +soc;+foo +message = foosoc + +[Filter.3] +query = 'folder:gmail/G+' +tags = +G+ +message = gmail spam + +# skip inbox +[Filter.6] +query = 'to:notmuch@notmuchmail.org AND (subject:emacs OR subject:elisp OR "(defun" OR "(setq" OR PATCH)' +tags = -new +message = notmuch emacs stuff diff --git a/.config/autostart/Proton Mail Bridge.desktop b/.config/autostart/Proton Mail Bridge.desktop new file mode 100644 index 00000000..179e582e --- /dev/null +++ b/.config/autostart/Proton Mail Bridge.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Type=Application +Name=Proton Mail Bridge +Exec="/usr/bin/protonmail-bridge" "--no-window" +X-GNOME-Autostart-enabled=true diff --git a/.config/goimapnotify/.helix/languages.toml b/.config/goimapnotify/.helix/languages.toml new file mode 100644 index 00000000..4b1155c7 --- /dev/null +++ b/.config/goimapnotify/.helix/languages.toml @@ -0,0 +1,5 @@ +[[language]] +name = "json" +file-types = [ +"conf" +] diff --git a/.config/goimapnotify/goimapnotify.yaml b/.config/goimapnotify/goimapnotify.yaml new file mode 100644 index 00000000..ac62599e --- /dev/null +++ b/.config/goimapnotify/goimapnotify.yaml @@ -0,0 +1,41 @@ +configurations: + - + host: 127.0.0.1 + port: 1143 + tls: false + tlsOptions: + rejectUnauthorized: false + starttls: true + username: daniel@ficd.ca + passwordCMD: 'pass show proton/bridge' + xoAuth2: false + onNewMail: '/home/fic/.config/mail/mail-sync.sh' + onDeletedMail: '/home/fic/.config/mail/mail-sync.sh' + wait: 20 + boxes: + - + mailbox: INBOX + onNewMail: '/home/fic/.config/mail/newmail.sh personal' + + - + mailbox: Sent + onNewMail: '/home/fic/.config/mail/mail-sync.sh' + - + host: outlook.office365.com + port: 993 + tls: true + tlsOptions: + rejectUnauthorized: true + starttls: false + username: 18daf3@queensu.ca + passwordCMD: '~/tools/mutt_oauth2.py ~/tools/tokenfile-test' + xoAuth2: true + onNewMail: '/home/fic/.config/mail/mail-sync.sh' + onDeletedMail: '/home/fic/.config/mail/mail-sync.sh' + wait: 20 + boxes: + - mailbox: INBOX + onNewMail: '/home/fic/.config/mail/newmail.sh school' + - + mailbox: Sent Items + onNewMail: '/home/fic/.config/mail/mail-sync.sh' diff --git a/.config/maildir-rank-addr/config b/.config/maildir-rank-addr/config new file mode 100644 index 00000000..67d37129 --- /dev/null +++ b/.config/maildir-rank-addr/config @@ -0,0 +1,9 @@ +maildir = "~/.mail" +addresses = [ + "daniel@ficd.ca", + "fichtinger.d@queensu.ca", + "18daf3@queensu.ca", + "ficcdaf@proton.me" +] +outputpath = "~/mail/ranked-addrbook.tsv" +template = "{{.Address}}\t{{.Name}}\t{{.NormalizedName}}" diff --git a/.config/yadm/tracked b/.config/yadm/tracked index 0ff25f76..dab12687 100644 --- a/.config/yadm/tracked +++ b/.config/yadm/tracked @@ -49,7 +49,7 @@ .mbsyncrc .notmuch-config .notmuch -.config/imapnotify +.config/goimapnotify .config/afew .config/maildir-rank-addr .config/mail