From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6850097275616624640 X-Received: by 2002:aed:2c87:: with SMTP id g7mr14636148qtd.346.1595054880616; Fri, 17 Jul 2020 23:48:00 -0700 (PDT) X-BeenThere: supmua@googlegroups.com Received: by 2002:ac8:2dfc:: with SMTP id q57ls930081qta.2.gmail; Fri, 17 Jul 2020 23:48:00 -0700 (PDT) X-Received: by 2002:aed:2864:: with SMTP id r91mr14153639qtd.311.1595054880289; Fri, 17 Jul 2020 23:48:00 -0700 (PDT) Received: by 2002:a05:620a:100e:b029:f2:356:9762 with SMTP id z14-20020a05620a100eb02900f203569762msqkj; Fri, 17 Jul 2020 11:37:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylszJOz+mjQGQe2pqUFVglUJtsmvjg955ZPJik+5n6CL81y4ZxOQsGdA8JH6zAQA4ZoAor X-Received: by 2002:a17:906:c0da:: with SMTP id bn26mr10248330ejb.359.1595011048393; Fri, 17 Jul 2020 11:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595011048; cv=none; d=google.com; s=arc-20160816; b=ku0WXepdN9sATLSD+yRVj6mIcKGoPwVhwjmcb7g3dgZ7aOR1jLVN9MDwlDzty1f+vk W3NYqh16HwdUlz8R1U0lSPjY4WXxMKYmg0h0ZQiS2VB2ZSkRwCVDIkA8xC69tHE62XbN 2sPE2ITo84WUHhurozUmJ/JhOV+NOC2Y7ZmOCajOQ9TfXXM5N6YQ2dx8BdrlHGMFMlgF 0AdGqgvIWx2ZvhbrMT5mO6IlWPN7XBd7BU7kf9AbtEs5QUnl5w/4pkVkLc8+fduMOXG6 O2EsCMG31oMGaV48APrpD9fdOO22jXJzEr2lGYSM+cVcUgEntsOB5XZxmM4uNT4zlQfc tFjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:user-agent:message-id:date:references :in-reply-to:subject:cc:to:from; bh=X70O28MOiXMMDWWFX1vHy70DeBbob6O7h+Nku2biLZA=; b=K6lMqXsDWkKzpRbrrnoed99Dr2a1ffOqdZGPvfndRpQsR5yXtNJqC7twQKkkCkJA2F jpciOIY16m9I2/skkkzz84lE4a4s/m+y9rl3LOZSY5oRqoRYy/Dly3/ZL9ooxagxIWXw TvwZeoHNUxQtg0GUt4A2LPQsdToJIfNqbdIqyc5oNyHB1GpRQKzSlcm7soszQlHzVVOp 4j/AMY5CQFo2NxNBuDBWh2wbPl5ghWM7B5UKzKhBds4svECqy7S4+FCJtPPXIO7kjhxc S5tC+AfEqQtk2bqEj6+juM8PBrU/0bQDJpai6pUIaNnwydMuxf7XocBKXdKlnXJAHPNZ h3pA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.227.126.134 is neither permitted nor denied by best guess record for domain of robert.winkler@bioprocess.org) smtp.mailfrom=robert.winkler@bioprocess.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.126.134]) by gmr-mx.google.com with ESMTPS id i18si512513edr.1.2020.07.17.11.37.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 11:37:28 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.134 is neither permitted nor denied by best guess record for domain of robert.winkler@bioprocess.org) client-ip=212.227.126.134; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.227.126.134 is neither permitted nor denied by best guess record for domain of robert.winkler@bioprocess.org) smtp.mailfrom=robert.winkler@bioprocess.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from localhost ([177.248.136.112]) by mrelayeu.kundenserver.de (mreue011 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MScDh-1kOiFy05xB-00Su1j; Fri, 17 Jul 2020 20:37:27 +0200 Content-Type: text/plain; charset=UTF-8 From: Robert Winkler To: Iain Parris Cc: supmua Subject: Re: [sup] Managing Contacts In-reply-to: <1594927065-sup-8296@ceres> References: <1594927065-sup-8296@ceres> Date: Fri, 17 Jul 2020 13:37:24 -0500 Message-Id: <1595009536-sup-8144@rob-Lenovo-Y720-15IKB> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:wD32P+3pG+rl5e3ZoB8+EkA1Qn+wVOJi4eqhjUo46c9WCWQbM+c SiNxOKvaWWjAUvQB7lCbdq5yvnEfYtAah45RZ8JPTb+Yp+q0XikY3KxQjVMeNofPUQxldIo kd3nApQCWCxQmzO8mUp4Jh8eZh8/smtx7//rx9NvZKATaDfAVGv/n6ByjMYN8zhAk8cIj7q mU81FK5uoHOFU3fb0Sjcw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:jmUjPElVxME=:Po8zEdcqIGD7iA9+pjxGfF 7V+2pMDwu3M8wtlObBwVuI/rdXWzmsuoOgApOIQADr7eDGeaehRWNIXJ2ta1lSuSXLIQXpknH 7y48g9OSwgeJNTEZMSKNXknow/BnKZ4UHokko07L55+j3uavTIxmy7EczJKeo0MRz079aiE2b ctxR1WeH9MlnCozbT8ff9/1NfYbhMTA/ZUTF7aHf8vejXzwUmiu4uNnov81oD2Nh3JlLC8OmH N6Bsb17+igniN0QG9j9fHfRxJYigTdLDH+dF1yNuJYdIweWDJodeCTtVU69u0UQtr2UUHnToh zgiv+qI0dZTXYV2dLcLrxu/SuFBR77hmFt30IIG7A9Lgfzg4BxVH3cXvPiay/W4u+V0p5CC+V 5iIyolLbU9jJ/9gWT90VWU5QAB6uKq0UArx3xKdmvCv4QkKlrNSiAk8Hn7O45CXkQ7ZHtSJCT FP7qo3bCQmZPF3HaclYl3S8KSQKVh58uF8YOI/QCEdecUWcg+bDSIK2CzUhgAC6R69wqXRTuL GGW7KAaPU5/BEr5xlG35qUVkp6xidITdx4MCWICccZQ4XE3wFhhbE4QI0SPX0so/s52sRA74N DeHR2q615UIb6CpOZCRsArvJg1jefPS8OwPNspFop/pXgO5fM9NPZHqMWplNJcMgt8pTMLxdY qkDmzmE43Ol/q5R2/2CQsuXwy0b9AOLvGb1Y+PTX4Qb9PlYdpuLG4Fre+9dncuxgRYfugexoL 7tvEmi7b+Zc4C/dz8OpNCCXQkXakcvuJ2wCPczPLPcrvk9Y3+A9hC+5Jt0ZHRQPDuUNr1bGIs a+6sIA2tTfNbVPIUieJ1ANWaUwowACOvNIb+0OpnkTB1KwnJLMKhtv9KCu6WUbF5ZEmTQqZnh df9QC6SmnTUWMEoet0mg== Dear Iain, thanks a lot indeed again! I tried the different versions: - Integrating Google Contacts works after some trouble with the OAuth authorization. Although using Google Contacts is comfortable, I have a love-hate relationship with Google. Most of Googles products work great, but I am also concerned about privacy and monopolies. Additional problems: The formatting of names is not uniform (e.g. "Dr. Duck (Ducktales)", vs. "Dra Minnie Mouse") and one needs to be online for using the Contacts. - Abook is a really neat and simple ncurses program. I exported the contacts of my LDAP server in LDIF format an importing it into Abook was a one-liner. The TAB completion works fine, just in the 'C' menu, not the name, but the shortened email address is displayed. Maybe a little bug? The only real disadvantage: The address book is not synced with the LDAP server. Nevertheless, I can use my manually maintained 100+ contacts. - Unfortunately, it seems that you cannot use both, Google Contacts and Abook at the same time (when using both configurations, only the second was displayed). - The sup contacts.txt seems practical, but I don't want to start an additional contacts database. Conclusions: For now, I use the Abook address book. For the future, I need to invent a practical solution to keep Abook and the LDAP server synchronized. Best regards, Robert Excerpts from Iain Parris's message of 2020-07-16 20:46:00 +0100: > Hi Robert, > > Excerpts from Robert Winkler's message of 2020-07-16 08:15:56 -0700: > > Hi, I already got extensive contact lists (>1,000) in various formats and > > run a manually maintained list on an LDAP server for the really important > > contacts. > > > > How can I easily use or import contacts for the To: CC: and BCC: fields? > > General contacts usage is: > > - Global keybinding "C" - list contacts. > > - To specify a recipient (To/Cc/Bcc): when prompted to enter the > recipient (e.g., after pressing "c" for "compose"), start typing, > then press "tab" for suggestions. > > - In thread-view-mode, press "i" to be prompted to add to Sup's > contacts list, with an optional alias. > > The contacts are sourced from file ~/.sup/contacts.txt, and from calling > the "extra-contact-addresses" hook. > > So you have two main options. > > (1) ~/.sup/contacts.txt > > - Sup's built-in contacts file is ~/.sup/contacts.txt > > - This is written/read when Sup stops/starts, so make sure to quit > Sup before editing it manually. > > - File format is one contact per line, with an optional alias. > > - Each line is in format like: > > alias: Person Name > > - "alias" is optional, and if omitted, then the line will look like: > > : Another Person > > - If you converted your contacts into this style, then you could > create your own contacts.txt file, and Sup would use it. > > (2) extra-contact-addresses hook > > - This hook takes no input, and returns an array of email address > strings that Sup is then aware of for tab-completion. > > - So you could alternatively write this hook to call any external > program, and return in the format expected by Sup. > > - Two examples with "goobook" (for Google Account contacts) and > "abook" (a general contact manager program that runs in the > terminal) are here: > . > > - So if (for example) you chose "abook", then you could use any > method to import your contacts into "abook", and then use the Sup > hook to make Sup aware of abook's contacts. > > - abook is able to import ldif, so may be a natural choice. Further > reading on abook: > . > > For other general information about Sup's contact lists, see also: > . > > Kind regards, > Iain >