mu-wizard

shell script to easily configure mu4e accounts on Emacs
git clone git://git.ckyln.com/mu-wizard
Log | Files | Refs | LICENSE

protonmail.com (572B)


      1 # -*- mode: sh; -*-
      2 # Override file for Protonmail
      3 ssltype=None
      4 imap=127.0.0.1
      5 iport=1143
      6 smtp=127.0.0.1
      7 sport=1025
      8 
      9 out "Getting protonmail bridge fingerprint"
     10 fingerprint=$(msmtp --serverinfo --host=127.0.0.1 --port=1025 --tls --tls-certcheck=off |
     11                   sed -n 's/^SHA256: //p')
     12 
     13 set_msmtp() {
     14     [ -f "$config_home/msmtp/config" ] || msmtp_header
     15 
     16     cat <<EOF >> "$config_home/msmtp/config"
     17 account $title
     18 host $smtp
     19 port $sport
     20 from $fulladdr
     21 user $login
     22 passwordeval "$password_command"
     23 tls_fingerprint $fingerprint/
     24 $starttlsoff
     25 # End profile
     26 
     27 EOF
     28 }