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:
parent
62d9ac00b3
commit
16d15b2b21
3 changed files with 31 additions and 5 deletions
|
@ -187,8 +187,9 @@ mytasklist.buttons = awful.util.table.join(
|
||||||
|
|
||||||
mymaillist = wibox.widget.textbox()
|
mymaillist = wibox.widget.textbox()
|
||||||
mymaillist:set_text(
|
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('ryuslash.org/inbox'),
|
||||||
|
new_mail('picturefix/inbox'),
|
||||||
new_mail('gmail/inbox'),
|
new_mail('gmail/inbox'),
|
||||||
new_mail('ninthfloor/inbox')))
|
new_mail('ninthfloor/inbox')))
|
||||||
mymaillisttimer = timer({ timeout = 60 })
|
mymaillisttimer = timer({ timeout = 60 })
|
||||||
|
@ -196,8 +197,9 @@ mymaillisttimer:connect_signal(
|
||||||
"timeout",
|
"timeout",
|
||||||
function ()
|
function ()
|
||||||
mymaillist:set_text(
|
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('ryuslash.org/inbox'),
|
||||||
|
new_mail('picturefix/inbox'),
|
||||||
new_mail('gmail/inbox'),
|
new_mail('gmail/inbox'),
|
||||||
new_mail('ninthfloor/inbox')))
|
new_mail('ninthfloor/inbox')))
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -42,13 +42,15 @@
|
||||||
;; (directory "~/documents/mail/aethon/"))
|
;; (directory "~/documents/mail/aethon/"))
|
||||||
(nnmaildir "ryuslash"
|
(nnmaildir "ryuslash"
|
||||||
(directory "~/documents/mail/ryuslash.org/"))
|
(directory "~/documents/mail/ryuslash.org/"))
|
||||||
|
(nnmaildir "picturefix"
|
||||||
|
(directory "~/documents/mail/picturefix/"))
|
||||||
(nntp "news.gwene.org")))
|
(nntp "news.gwene.org")))
|
||||||
(setq gnus-auto-subscribed-groups nil)
|
(setq gnus-auto-subscribed-groups nil)
|
||||||
(setq gnus-save-newsrc-file nil)
|
(setq gnus-save-newsrc-file nil)
|
||||||
(setq gnus-read-newsrc-file nil)
|
(setq gnus-read-newsrc-file nil)
|
||||||
(setq gnus-article-truncate-lines nil)
|
(setq gnus-article-truncate-lines nil)
|
||||||
(setq gnus-permanently-visible-groups
|
(setq gnus-permanently-visible-groups
|
||||||
(rx (and (or "gmail" "aethon" "ninthfloor" "ryuslash")
|
(rx (and (or "gmail" "aethon" "ninthfloor" "ryuslash" "picturefix")
|
||||||
":inbox")))
|
":inbox")))
|
||||||
(setq gnus-check-new-newsgroups nil)
|
(setq gnus-check-new-newsgroups nil)
|
||||||
(setq gnus-novice-user nil)
|
(setq gnus-novice-user nil)
|
||||||
|
@ -62,6 +64,10 @@
|
||||||
("ninthfloor:"
|
("ninthfloor:"
|
||||||
(address "ryuslash@ninthfloor.org")
|
(address "ryuslash@ninthfloor.org")
|
||||||
(eval (setq message-sendmail-extra-arguments '("-a" "ninthfloor"))))
|
(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:"
|
("arch:"
|
||||||
(address "tom.willemsen@archlinux.us")
|
(address "tom.willemsen@archlinux.us")
|
||||||
(eval (setq message-sendmail-extra-arguments '("-a" "arch"))))
|
(eval (setq message-sendmail-extra-arguments '("-a" "arch"))))
|
||||||
|
@ -73,7 +79,7 @@
|
||||||
(add-hook 'gnus-select-group-hook
|
(add-hook 'gnus-select-group-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(cond
|
(cond
|
||||||
((string-match "aethon"
|
((string-match (rx (or "aethon" "picturefix"))
|
||||||
(gnus-group-real-name gnus-newsgroup-name))
|
(gnus-group-real-name gnus-newsgroup-name))
|
||||||
(ispell-change-dictionary "nl"))
|
(ispell-change-dictionary "nl"))
|
||||||
(t (ispell-change-dictionary "en")))))
|
(t (ispell-change-dictionary "en")))))
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
[general]
|
[general]
|
||||||
# NOTE: cronjob calls the quiet UI with -u
|
# NOTE: cronjob calls the quiet UI with -u
|
||||||
ui = TTYUI
|
ui = TTYUI
|
||||||
accounts = ryuslash.org,gmail,aethon,ninthfloor
|
accounts = ryuslash.org,picturefix,gmail,ninthfloor
|
||||||
pythonfile = ~/.offlineimap.py
|
pythonfile = ~/.offlineimap.py
|
||||||
|
|
||||||
[Account ryuslash.org]
|
[Account ryuslash.org]
|
||||||
|
@ -22,6 +22,24 @@ remoteusereval = getuser("imap.alwaysdata.com")
|
||||||
remotepasseval = getpassword("imap.alwaysdata.com")
|
remotepasseval = getpassword("imap.alwaysdata.com")
|
||||||
nametrans = lambda folder: folder.lower()
|
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]
|
[Account aethon]
|
||||||
localrepository = aethon-local
|
localrepository = aethon-local
|
||||||
remoterepository = aethon-remote
|
remoterepository = aethon-remote
|
||||||
|
|
Loading…
Reference in a new issue