From 458ae95c95671899f9cf4ad611112eecc2102b5e Mon Sep 17 00:00:00 2001
From: Björn Guth <bjoern.guth@rwth-aachen.de>
Date: Sun, 18 Feb 2018 15:37:51 +0100
Subject: Add separate login to account creation queries

This is first working version of an added login query to the account
creation process. It fixes the first part of #6, but there still needs
to be more testing for the second part of that issue, which concerns
creating accounts with domains not listed in domain.csv.
---
 autoconf/mutt_profile        | 2 +-
 autoconf/offlineimap_profile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'autoconf')

diff --git a/autoconf/mutt_profile b/autoconf/mutt_profile
index ac8dc90..6983f5b 100644
--- a/autoconf/mutt_profile
+++ b/autoconf/mutt_profile
@@ -2,7 +2,7 @@
 # muttrc file for account $title
 set realname = "$realname"
 set from = "$fulladdr"
-set smtp_url = "smtp://$fulladdr@$smtp:$sport/"
+set smtp_url = "smtp://$login@$smtp:$sport/"
 set sendmail = "/usr/bin/msmtp -a $title"
 set folder = "~/.mail/$title"
 set header_cache = ~/.config/mutt/accounts/$title/cache/headers
diff --git a/autoconf/offlineimap_profile b/autoconf/offlineimap_profile
index 8311e1c..01b572c 100644
--- a/autoconf/offlineimap_profile
+++ b/autoconf/offlineimap_profile
@@ -5,7 +5,7 @@ remoterepository = $title-remote
 
 [Repository $title-remote]
 type = $type
-remoteuser = $fulladdr
+remoteuser = $login
 sslcacerfile = /etc/ssl/cets/ca-certificates.crt
 remotepasseval = mailpasswd("$title")
 remotehost = $imap
-- 
cgit v1.2.3