From d09fa62ef5abcd246121178e5c7feb2fec707f59 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 18 Oct 2011 20:12:25 -0400 Subject: Wanderlust: Don't split large messages --- .wl | 1 + 1 file changed, 1 insertion(+) diff --git a/.wl b/.wl index c6bf63c..8a4a47e 100644 --- a/.wl +++ b/.wl @@ -7,6 +7,7 @@ wl-stay-folder-window t ;; show the folder pane (left) wl-folder-window-width 35 ;; toggle on/off with 'i' + mime-edit-split-message nil wl-local-domain "lukeshu.ath.cx" wl-draft-send-mail-function 'wl-draft-send-mail-with-smtp -- cgit v1.2.3-2-g168b From a46c5c23b26cf149065bd516a781bc66535d8bcf Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 11 Nov 2011 15:19:25 -0500 Subject: move daemon-starting into a separate file, do it in .profile (and .bashrc) --- .bashrc | 7 ++----- .login-daemons | 7 +++++++ .profile | 22 ++++++++++++++++------ 3 files changed, 25 insertions(+), 11 deletions(-) create mode 100644 .login-daemons diff --git a/.bashrc b/.bashrc index c4e4c64..2c5b611 100644 --- a/.bashrc +++ b/.bashrc @@ -96,9 +96,6 @@ if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi -if [ "$TERM" != dumb ]; then - export TMPDIR="$HOME/tmp" - daemon emacs --daemon - daemon sysfiles - daemon maildirproc +if [ -f "$HOME/.login-daemons" ]; then + . "$HOME/.login-daemons" fi diff --git a/.login-daemons b/.login-daemons new file mode 100644 index 0000000..5b8851e --- /dev/null +++ b/.login-daemons @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ -x "`which daemon`"]; then + daemon emacs --daemon + daemon sysfiles + daemon maildirproc +fi diff --git a/.profile b/.profile index 36a3ec5..bc8d481 100644 --- a/.profile +++ b/.profile @@ -13,12 +13,10 @@ if [ -d "$HOME/.prefix/bin" ]; then export PATH="$HOME/.prefix/bin:$PATH" fi -# if running bash -if [ -n "$BASH_VERSION" ]; then - # include .bashrc if it exists - if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" - fi +if [ -d "$HOME/tmp"]; then + export TMPDIR="$HOME/tmp" +elif [ -d "$HOME/.prefix/tmp"]; then + export TMPDIR="$HOME/.prefix/tmp" fi # set SELECTED_EDITOR, EDITOR, and VISUAL to set the text editor used @@ -30,6 +28,18 @@ if [ -f "$HOME/.selected_editor" ]; then export VISUAL="${VISUAL:-$SELECTED_EDITOR}" fi +if [ -f "$HOME/.login-daemons" ]; then + . "$HOME/.login-daemons" +fi + +# if running bash +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi + if [ -x "`which alsactl`" ]; then alsactl --file $HOME/.alsa.save restore &> /dev/null || true fi -- cgit v1.2.3-2-g168b From 3f0ed06f522b6c6b4e3d376021890bc5a450aa85 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 11 Nov 2011 15:20:44 -0500 Subject: Change ALSACTL to a variable in Makefile, have it fail over to 'echo' --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 998ff62..0efe771 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,15 @@ CHECK = $(HOME)/.prefix:$(HOME):/usr/local:/usr:/ NANO_SHARE = $(firstword $(wildcard $(addsuffix /share/nano,$(subst :, ,$(CHECK))))) +ALSACTL=$(firstword $(shell which alsactl) echo) + targets=.nanorc .folders .crontab.cookie .alsa.save all: $(targets) clean: rm -f $(targets) .alsa.save: FORCE - alsactl --file $(HOME)/.alsa.save store || touch '$@' + $(ALSACTL) --file $(HOME)/.alsa.save store || touch '$@' .nanorc: .nanorc.in $(NANO_SHARE) cat '$<' > '$@' -- cgit v1.2.3-2-g168b From 2af83cc44a32b02ae031a6b7e618025d58fceb72 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 11 Nov 2011 15:21:40 -0500 Subject: Comment out offlineimap in .crontab --- .crontab | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crontab b/.crontab index fd50136..77e6afe 100644 --- a/.crontab +++ b/.crontab @@ -1,3 +1,3 @@ # m h dom mon dow command -*/5 * * * * offlineimap -u quiet +#*/5 * * * * offlineimap -u quiet */5 * * * * cd $HOME && make -k -- cgit v1.2.3-2-g168b From fa0728204665d9d985f212826be65a563312e7e6 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 13 Nov 2011 14:46:29 -0500 Subject: oops, `[' needs whitespace before `]' --- .login-daemons | 2 +- .profile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.login-daemons b/.login-daemons index 5b8851e..1d76e9d 100644 --- a/.login-daemons +++ b/.login-daemons @@ -1,6 +1,6 @@ #!/bin/sh -if [ -x "`which daemon`"]; then +if [ -x "`which daemon`" ]; then daemon emacs --daemon daemon sysfiles daemon maildirproc diff --git a/.profile b/.profile index 004b7a2..bc03469 100644 --- a/.profile +++ b/.profile @@ -16,7 +16,7 @@ for dir in $bins; do fi done -if [ -d "$HOME/tmp"]; then +if [ -d "$HOME/tmp" ]; then export TMPDIR="$HOME/tmp" elif [ -d "$HOME/.prefix/tmp"]; then export TMPDIR="$HOME/.prefix/tmp" -- cgit v1.2.3-2-g168b From 62ce8b04f0b7bb0d13787c611bd6aa05e01b0791 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 13 Nov 2011 15:14:05 -0500 Subject: Move offlineimap sync to .crontab.local --- .crontab | 1 - 1 file changed, 1 deletion(-) diff --git a/.crontab b/.crontab index fd50136..d4e21e0 100644 --- a/.crontab +++ b/.crontab @@ -1,3 +1,2 @@ # m h dom mon dow command -*/5 * * * * offlineimap -u quiet */5 * * * * cd $HOME && make -k -- cgit v1.2.3-2-g168b From 0be7630bee061da35b62bfa28e184e3461fd4789 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 13 Nov 2011 15:15:07 -0500 Subject: Add mailfilters for parabola-dev and mails from Chris --- .maildirproc/default.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.maildirproc/default.rc b/.maildirproc/default.rc index feee8d4..7ea1ef0 100644 --- a/.maildirproc/default.rc +++ b/.maildirproc/default.rc @@ -84,6 +84,10 @@ def my_filters(mail): if mail["List-Id"].matches("social(|-discuss)\.gnu\.org"): mail.move(".software.social") return + + if mail["List-ID"].matches("dev.lists.parabolagnulinux.org"): + mail.move(".software.parabola-dev") + return # Sort email from some social websites @@ -147,6 +151,7 @@ def my_filters(mail): "tswilson4801@att.net", "justicejade10@aol.com", "silioso@gmail.com", + "cdewalt3@yahoo.com", ]: if is_to_or_from(mail,address): mail.move(".School.Robotics") -- cgit v1.2.3-2-g168b From d1fc37acc5294e94d9a4add0d13a02841b22444c Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 13 Nov 2011 15:15:33 -0500 Subject: Revamp .wl --- .wl | 71 ++++++++++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 45 insertions(+), 26 deletions(-) diff --git a/.wl b/.wl index 8a4a47e..63182f3 100644 --- a/.wl +++ b/.wl @@ -1,30 +1,33 @@ ;; mode:-*-emacs-lisp-*- -;; wanderlust -(setq - elmo-maildir-folder-path "~/Maildir" ;; where I store my mail +(setq user-mail-address "lukeshu@sbcglobal.net") - wl-stay-folder-window t ;; show the folder pane (left) - wl-folder-window-width 35 ;; toggle on/off with 'i' - - mime-edit-split-message nil - wl-local-domain "lukeshu.ath.cx" +;; wanderlust +(setq + ;; Misc ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + wl-local-domain "lukeshu.ath.cx" + wl-icon-directory "~/.emacs.d/el-get/wanderlust/icons" + ;; Network ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ;; This only deals with sending--I use offlineimap to fetch wl-draft-send-mail-function 'wl-draft-send-mail-with-smtp - wl-smtp-connection-type (quote ssl) - wl-smtp-authenticate-type "login" - wl-smtp-posting-server "plus.smtp.mail.yahoo.com" - wl-smtp-posting-port 465 - wl-smtp-posting-user "lukeshu@sbcglobal.net" - wl-message-id-domain "lukeshu@sbcglobal.net" ;; put a unique identifier here - wl-from "Luke Shumaker " ;; my From: + ;; The following settings are Yahoo!'s SMTP servers: + wl-smtp-connection-type (quote ssl) + wl-smtp-authenticate-type "login" + wl-smtp-posting-server "plus.smtp.mail.yahoo.com" + wl-smtp-posting-port 465 + wl-smtp-posting-user user-mail-address + wl-message-id-domain user-mail-address - wl-fcc-force-as-read t ;; mark sent messages as read + ;; Folders/File system ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + elmo-msgdb-directory "~/.emacs.d/elmo" ;; where elmo keeps all its stuff + elmo-cache-directory "~/.emacs.d/elmo-cache" ;; where elmo keeps all its stuff + elmo-maildir-folder-path "~/Maildir" ;; where I store my mail ;; note: all below are dirs (Maildirs) under elmo-maildir-folder-path ;; the '.'-prefix is for marking them as maildirs wl-fcc "..Sent" ;; sent msgs go to the "sent"-folder - wl-default-folder "..Inbox" ;; my main inbox + wl-default-folder "..Ham" ;; my main inbox wl-draft-folder "..Draft" ;; store drafts in 'postponed' wl-trash-folder "..Trash" ;; put trash in 'trash' wl-spam-folder "..Bulk Mail" ;; put spam in 'Bulk Mail' @@ -34,11 +37,26 @@ ;wl-biff-check-folder-list '(".todo") ;; check every 180 seconds ;; (default: wl-biff-check-interval) - wl-folder-hierarchy-access-folders '(".*") + ;wl-folder-hierarchy-access-folders '("\.*") + wl-folder-hierarchy-access-folders '( + "^.\\([^/.]+[/.]\\)*[^/.]+\\(:\\|@\\|$\\)" + "^-[^.]*\\(:\\|@\\|$\\)" + "^@$" + "^'$") + + ;; Writing + wl-from (concat user-full-name " <" user-mail-address ">") ;; From: line + ;;wl-organization "Foo Corp" + wl-fcc-force-as-read t ;; mark sent messages as read + mime-edit-split-message nil ;; don't split long messages - ;; hide many fields from message buffers - wl-message-ignored-field-list '("^.*:") - wl-message-visible-field-list + ;; Reading ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + wl-stay-folder-window t ;; show the folder pane (left) + wl-folder-window-width 35 ;; + wl-message-auto-reassemble-message/partial t ;; reasemble split messages + + wl-message-ignored-field-list '("^.*:") ;; default to hiding all headers + wl-message-visible-field-list ;; but then display these '("^\\(To\\|Cc\\):" "^Subject:" "^\\(From\\|Reply-To\\):" @@ -46,11 +64,12 @@ "^Message-Id:" "^\\(Posted\\|Date\\):" ) - wl-message-sort-field-list + wl-message-sort-field-list ;; in this order '("^From" "^Organization:" "^X-Attribution:" - "^Subject" - "^Date" - "^To" - "^Cc")) + "^Subject" + "^Date" + "^To" + "^Cc") + ) -- cgit v1.2.3-2-g168b