feat(notmuch): notmuch

This commit is contained in:
Pavel Korytov 2021-01-29 21:59:37 +03:00
parent 27ce988287
commit 09fe035d6f
9 changed files with 119 additions and 5 deletions

View file

@ -1,3 +1,4 @@
.config/newsboat/urls
.config/filezilla/sitemanager.xml
.config/filezilla/filezilla.xml
.config/filezilla/filezilla.xml
Mail/thexcloud/.credentials.gmailieer.json

Binary file not shown.

View file

@ -12,6 +12,7 @@
'(notmuch-search-oldest-first nil)
'(org-agenda-files
'("~/Documents/org-mode/ETU/r&d.org" "~/Documents/org-mode/Personal/misc.org" "~/Documents/org-mode/Job/dig-traject.org" "~/Documents/org-mode/Personal/look-forward.org" "~/Documents/org-mode/ETU/sem-9.org"))
'(send-mail-function 'smtpmail-send-it)
'(sgml-basic-offset 2)
'(smtpmail-smtp-server "smtp.gmail.com")
'(smtpmail-smtp-service 25)

View file

@ -867,8 +867,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
#+end_src
** Export
#+begin_src emacs-lisp
(use-package htmlize
:straight t)
;; (use-package htmlize
;; :straight t)
(defun my/setup-org-latex ()
(setq org-latex-compiler "xelatex")
@ -1204,6 +1204,8 @@ pip install qtconsole markdown qrcode[pil] PyQt5 PyQtWebEngine
#+begin_src emacs-lisp
(use-package notmuch
:ensure nil)
(my-leader-def "am" 'notmuch)
#+end_src
* Programming
** LSP

View file

@ -682,8 +682,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.75))
(setq org-highlight-latex-and-related '(native script entities))
(use-package htmlize
:straight t)
;; (use-package htmlize
;; :straight t)
(defun my/setup-org-latex ()
(setq org-latex-compiler "xelatex")

13
.mailcap Normal file
View file

@ -0,0 +1,13 @@
###
### Begin Red Hat Mailcap
###
audio/*; /usr/bin/xdg-open %s
image/*; /usr/bin/xdg-open %s
application/msword; /usr/bin/xdg-open %s
application/pdf; /usr/bin/xdg-open %s
application/postscript ; /usr/bin/xdg-open %s
text/html; /usr/bin/xdg-open %s

92
.notmuch-config Normal file
View file

@ -0,0 +1,92 @@
# .notmuch-config - Configuration file for the notmuch mail system
#
# For more information about notmuch, see https://notmuchmail.org
# Database configuration
#
# The only value supported here is 'path' which should be the top-level
# directory where your mail currently exists and to where mail will be
# delivered in the future. Files should be individual email messages.
# Notmuch will store its database within a sub-directory of the path
# configured here named ".notmuch".
#
[database]
path=/home/pavel/Mail
# User configuration
#
# Here is where you can let notmuch know how you would like to be
# addressed. Valid settings are
#
# name Your full name.
# primary_email Your primary email address.
# other_email A list (separated by ';') of other email addresses
# at which you receive email.
#
# Notmuch will use the various email addresses configured here when
# formatting replies. It will avoid including your own addresses in the
# recipient list of replies, and will set the From address based on the
# address to which the original email was addressed.
#
[user]
name=Pavel Korytov
primary_email=thexcloud@gmail.com
# Configuration for "notmuch new"
#
# The following options are supported here:
#
# tags A list (separated by ';') of the tags that will be
# added to all messages incorporated by "notmuch new".
#
# ignore A list (separated by ';') of file and directory names
# that will not be searched for messages by "notmuch new".
#
# NOTE: *Every* file/directory that goes by one of those
# names will be ignored, independent of its depth/location
# in the mail store.
#
[new]
tags=new
ignore=
# Search configuration
#
# The following option is supported here:
#
# exclude_tags
# A ;-separated list of tags that will be excluded from
# search results by default. Using an excluded tag in a
# query will override that exclusion.
#
[search]
exclude_tags=trash;spam;
# Maildir compatibility configuration
#
# The following option is supported here:
#
# synchronize_flags Valid values are true and false.
#
# If true, then the following maildir flags (in message filenames)
# will be synchronized with the corresponding notmuch tags:
#
# Flag Tag
# ---- -------
# D draft
# F flagged
# P passed
# R replied
# S unread (added when 'S' flag is not present)
#
# The "notmuch new" command will notice flag changes in filenames
# and update tags, while the "notmuch tag" and "notmuch restore"
# commands will notice tag changes and update flags in filenames
#
[maildir]
synchronize_flags=true

4
Mail/.notmuch/hooks/pre-new Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
eval "$(conda shell.bash hook)"
conda activate mail
(cd /home/pavel/Mail/thexcloud/ && gmi sync)

View file

@ -0,0 +1 @@
{"replace_slash_with_dot": true, "account": "thexcloud@gmail.com", "timeout": 600, "drop_non_existing_label": false, "ignore_empty_history": false, "ignore_tags": ["new"], "ignore_remote_labels": ["CATEGORY_PROMOTIONS", "CATEGORY_SOCIAL", "CATEGORY_FORUMS", "CATEGORY_UPDATES", "CATEGORY_PERSONAL"], "remove_local_messages": true, "file_extension": ""}