diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 476438c..d476b03 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -187,8 +187,9 @@ mytasklist.buttons = awful.util.table.join( mymaillist = wibox.widget.textbox() mymaillist:set_text( - string.format(" ryu: %d gmail: %d 9f: %d ", + string.format(" ryu: %d pfx: %d gmail: %d 9f: %d ", new_mail('ryuslash.org/inbox'), + new_mail('picturefix/inbox'), new_mail('gmail/inbox'), new_mail('ninthfloor/inbox'))) mymaillisttimer = timer({ timeout = 60 }) @@ -196,8 +197,9 @@ mymaillisttimer:connect_signal( "timeout", function () mymaillist:set_text( - string.format(" ryu: %d gmail: %d 9f: %d ", + string.format(" ryu: %d pfx: %d gmail: %d 9f: %d ", new_mail('ryuslash.org/inbox'), + new_mail('picturefix/inbox'), new_mail('gmail/inbox'), new_mail('ninthfloor/inbox'))) end) diff --git a/emacs/.emacs.d/site-lisp/gnus-init.el b/emacs/.emacs.d/site-lisp/gnus-init.el index 60093c4..5d58383 100644 --- a/emacs/.emacs.d/site-lisp/gnus-init.el +++ b/emacs/.emacs.d/site-lisp/gnus-init.el @@ -42,13 +42,15 @@ ;; (directory "~/documents/mail/aethon/")) (nnmaildir "ryuslash" (directory "~/documents/mail/ryuslash.org/")) + (nnmaildir "picturefix" + (directory "~/documents/mail/picturefix/")) (nntp "news.gwene.org"))) (setq gnus-auto-subscribed-groups nil) (setq gnus-save-newsrc-file nil) (setq gnus-read-newsrc-file nil) (setq gnus-article-truncate-lines nil) (setq gnus-permanently-visible-groups - (rx (and (or "gmail" "aethon" "ninthfloor" "ryuslash") + (rx (and (or "gmail" "aethon" "ninthfloor" "ryuslash" "picturefix") ":inbox"))) (setq gnus-check-new-newsgroups nil) (setq gnus-novice-user nil) @@ -62,6 +64,10 @@ ("ninthfloor:" (address "ryuslash@ninthfloor.org") (eval (setq message-sendmail-extra-arguments '("-a" "ninthfloor")))) + ("picturefix:" + (name "Tom Willemsen") + (address "tom@picturefix.nl") + (eval (setq message-sendmail-extra-arguments '("-a" "picturefix")))) ("arch:" (address "tom.willemsen@archlinux.us") (eval (setq message-sendmail-extra-arguments '("-a" "arch")))) @@ -73,7 +79,7 @@ (add-hook 'gnus-select-group-hook (lambda () (cond - ((string-match "aethon" + ((string-match (rx (or "aethon" "picturefix")) (gnus-group-real-name gnus-newsgroup-name)) (ispell-change-dictionary "nl")) (t (ispell-change-dictionary "en"))))) diff --git a/offlineimap/.offlineimaprc b/offlineimap/.offlineimaprc index 4535ccd..6e303df 100644 --- a/offlineimap/.offlineimaprc +++ b/offlineimap/.offlineimaprc @@ -2,7 +2,7 @@ [general] # NOTE: cronjob calls the quiet UI with -u ui = TTYUI -accounts = ryuslash.org,gmail,aethon,ninthfloor +accounts = ryuslash.org,picturefix,gmail,ninthfloor pythonfile = ~/.offlineimap.py [Account ryuslash.org] @@ -22,6 +22,24 @@ remoteusereval = getuser("imap.alwaysdata.com") remotepasseval = getpassword("imap.alwaysdata.com") nametrans = lambda folder: folder.lower() +[Account picturefix] +localrepository = picturefix-local +remoterepository = picturefix-remote + +[Repository picturefix-local] +type = Maildir +localfolders = ~/documents/mail/picturefix +nametrans = lambda folder: re.sub('^inbox$', 'INBOX', re.sub('^drafts$', '[Gmail]/Concepten', re.sub('^sent$', '[Gmail]/Verzonden berichten', re.sub('^trash$', '[Gmail]/Prullenbak', folder)))) + +[Repository picturefix-remote] +type = Gmail +remoteusereval = getuser("imap.google.com-picturefix") +remotepasseval = getpassword("imap.google.com-picturefix") +realdelete = no +cert_fingerprint = db7f2df48f9e94503a8497ae417312a3a5875f96 +folderfilter = lambda folder: folder in ['INBOX', '[Gmail]/Concepten', '[Gmail]/Verzonden berichten', '[Gmail]/Prullenbak'] +nametrans = lambda folder: re.sub('^INBOX$', 'inbox', re.sub('^\[Gmail\]/Concepten$', 'drafts', re.sub('^\[Gmail\]/Verzonden berichten$', 'sent', re.sub('^\[Gmail\]/Prullenbak$', 'trash', folder)))) + [Account aethon] localrepository = aethon-local remoterepository = aethon-remote