Skip to content

Commit

Permalink
.msmtprc, .mutt, .offlineimaprc: major updates in the mail related do…
Browse files Browse the repository at this point in the history
…tfiles

- remove suse and opensuse accounts
- make them mac compatible (this breaks linux)
  • Loading branch information
tampakrap committed May 3, 2019
1 parent 0c68672 commit 1baa8ee
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 84 deletions.
23 changes: 1 addition & 22 deletions .msmtprc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defaults
tls on
tls_certcheck on
tls_trust_file /etc/ssl/ca-bundle.pem
tls_trust_file /usr/local/etc/openssl/cert.pem
auth on
logfile ~/.log/fetch_send_mail.log

Expand All @@ -19,25 +19,4 @@ from [email protected]
user [email protected]
passwordeval "echo -n $(pass sites/seznam.cz) | cut -d' ' -f1"

account opensuse
host imap.suse.de
port 587
from [email protected]
user tchatzimichos
passwordeval "echo -n $(pass sites/suse.de) | cut -d' ' -f1"

account novell
host gwmail.emea.novell.com
port 25
from [email protected]
user tchatzimichos
passwordeval "echo -n $(pass sites/novell.com) | cut -d' ' -f1"

account suse
host imap.suse.de
port 587
from [email protected]
user tchatzimichos
passwordeval "echo -n $(pass sites/suse.de) | cut -d' ' -f1"

# vim: set ft=msmtp syntax=msmtp:
11 changes: 0 additions & 11 deletions .mutt/acc_suse

This file was deleted.

4 changes: 2 additions & 2 deletions .mutt/gpg
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output
set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r"
set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_only_command="/usr/local/Cellar/neomutt/20180716/libexec/neomutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="/usr/local/Cellar/neomutt/20180716/libexec/neomutt/pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --list-keys %r"
Expand Down
5 changes: 2 additions & 3 deletions .mutt/muttrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ set certificate_file = ~/.cache/mutt/certs
set alias_file = ~/.mutt/alias
set mailcap_path = ~/.mutt/mailcap
set realname = "Theo Chatzimichos"
set sendmail = /usr/bin/msmtp
set sendmail = /usr/local/bin/msmtp
set use_envelope_from = yes
set pager_context = 3
set pager_index_lines = 8
#set header = yes
#set edit_headers = yes
mailboxes `mutt_get_mailboxes`
alternates "tampakrap@((opensuse|gentoo(-el)?)\.org|gmail\.com|seznam\.cz|(cronos|linuxteam(\.cs)?)\.teilar\.gr)|theo(doros)?@chatzimichos\.gr|t(heodoros\.)?chatzimichos@suse\.(com|de|cz)"
subscribe "(admin(-auto)?|heroes|mirror|opensuse-[a-z-]+)@opensuse\.org|linuxteam-core@googlegroups\.com|(caasp-internal|devel|hackweek|infra-discuss|maso|opensuse-internal|openvpn-info|ops(-services)?|puppet-maintainers|research|results|salt(-maintainers)?|suse-it|(talk-)?cz|users)@suse\.(cz|de)|(freeko@lists\.vpsfree|(announce|talk)@linuxdays)\.cz|voxpupuli@groups\.io"
subscribe "linuxteam-core@googlegroups\.com|(freeko@lists\.vpsfree|(announce|talk)@linuxdays)\.cz"

ignore *
unignore From: To: Cc: Bcc: Date: Subject:
Expand All @@ -41,4 +41,3 @@ source ~/.mutt/sidebar

folder-hook 'gmail' 'source ~/.mutt/acc_gmail'
folder-hook 'seznam' 'source ~/.mutt/acc_seznam'
folder-hook 'suse' 'source ~/.mutt/acc_suse'
3 changes: 0 additions & 3 deletions .mutt/signature_suse

This file was deleted.

46 changes: 3 additions & 43 deletions .offlineimaprc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ accounts = gmail
maxsyncaccounts = 5
ui = ttyui
socktimeout = 50
pythonfile = ~/bin/getmailpass.py
pythonfile = /usr/local/bin/getmailpass.py

[Account gmail]
localrepository = local_gmail
Expand All @@ -20,7 +20,7 @@ localfolders = ~/.Mail/gmail
type = Gmail
remoteuser = tampakrap
remotepasseval = get_passeval('gmail')
sslcacertfile = /etc/ssl/ca-bundle.pem
sslcacertfile = /usr/local/etc/openssl/cert.pem
folderfilter = lambda foldername: foldername not in [
'[Gmail]/All Mail',
'[Gmail]/Important',
Expand All @@ -42,45 +42,5 @@ remotehost = imap.seznam.cz
remoteuser = tampakrap
remotepasseval = get_passeval('seznam')
ssl = yes
sslcacertfile = /etc/ssl/ca-bundle.pem
remoteport = 993

[Account suse]
localrepository = local_suse
remoterepository = remote_suse
autorefresh = 10
quick = 0

[Repository local_suse]
type = Maildir
localfolders = ~/.Mail/suse
nametrans = lambda folder: folder if folder == 'INBOX' else 'INBOX/' + folder

[Repository remote_suse]
type = IMAP
remotehost = imap.suse.de
remoteuser = tchatzimichos
remotepasseval = get_passeval('suse')
ssl = yes
sslcacertfile = /etc/ssl/ca-bundle.pem
remoteport = 993
nametrans = lambda folder: re.sub('^INBOX\/', '', folder)

[Account ex_suse]
localrepository = ex_local_suse
remoterepository = ex_remote_suse
autorefresh = 10
quick = 0

[Repository ex_local_suse]
type = Maildir
localfolders = ~/.Mail/novell

[Repository ex_remote_suse]
type = IMAP
remotehost = gwmail.emea.novell.com
remoteuser = tchatzimichos
remotepasseval = get_passeval('novell')
ssl = yes
sslcacertfile = /etc/ssl/ca-bundle.pem
sslcacertfile = /usr/local/etc/openssl/cert.pem
remoteport = 993

0 comments on commit 1baa8ee

Please sign in to comment.