Add picturefix mail settings

- Add a mail indicator to the Awesome wibox.
- Add a mailbox to Gnus
- Add account information to OfflineIMAP
This commit is contained in:
Tom Willemse 2014-08-26 10:44:53 +02:00
parent 62d9ac00b3
commit 16d15b2b21
3 changed files with 31 additions and 5 deletions

View file

@ -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)

View file

@ -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")))))

View file

@ -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