From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30242 invoked from network); 24 Jun 2020 20:07:16 -0000 Received: from mail-qt1-x83f.google.com (2607:f8b0:4864:20::83f) by inbox.vuxu.org with ESMTPUTF8; 24 Jun 2020 20:07:16 -0000 Received: by mail-qt1-x83f.google.com with SMTP id c22sf2386881qtp.9 for ; Wed, 24 Jun 2020 13:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=6IGsWy0JWFTdphvrNKU/A60WEnfCP5HGcRCBHnn2bHg=; b=L2RU54QJ/vu9fcwiGD3/IzvSkRpr/4UHT5Dog43TlR4EjSIT53XNwyfw4O9Ico3uwp zNCd5jrOTr/Wl3LW3psQWh9n4EpdGoLtQkCev2LOTos0BVU7R1Nw4B61/o3wz2go58JJ WRBQGGFu2qVZUIqPMGnezmQkpQHnJt2z+E2eea2X3Pc+WTrgEnr08Z8kGCTexthzBq1i EQoCZDVJHRZoQTD4STfaY6IotAPkDSQyiGOIPuyMhdu4vNnDjFYF7YNT0BPtWIC9aoIl 9Rvq9xr6g9Ux5eKaFhpr/2AlTFQl574PNqpwaxjKukKh+2L+C1GE4hjRLpq/6sZCTsfY V99w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polytechnique.org; s=gapps; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:precedence:mailing-list:list-id:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=6IGsWy0JWFTdphvrNKU/A60WEnfCP5HGcRCBHnn2bHg=; b=ZyAcgb+L7aTTIQ4C/VpZMHfWgjd79lSZuiCujKVPXLP9B5FtHWZr4qR2UVKBVsZBkw f9hDwPvixLsbabQd3KKCfbaoEh5Xmmd1GchscBBQNFBb6PRONUk8Dr2CAHebpXQs7AFy dFetzVdYsZeaJW7s+3RO0Zb3e3xYWoaylAw18= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=6IGsWy0JWFTdphvrNKU/A60WEnfCP5HGcRCBHnn2bHg=; b=Y3CzChJcheQOWBB/T6z8CozU2pVTfBbHIaOLLfopTLbWwGeC8Z92yM6Ad3XB3w/bYe mnDtta7qqyLXrtjOWxxkVBCTxdwvW/Att9gApT+tXEzDN/a/yjjBiG6N39hYFAQ7E5E4 jQ85zB8x4XtsZ4SOv/bwEkldFDejItUjqlMJGvpyFUT3b3FPvl6HZNYyRG9NN5yC2KOc mab/tHtV65oVUUxv8/WzEaJ/lUSMpQlzvCYsUGKYU1Fe1TAGSkbv4/Ya65lp8AqcHRJS mZJ6Bs3pIegrmGYwG6QsEGyMK4l7t/OS45zaNZKYmrzLITAXljRdnIR0p30tpVOvvDUL IWrw== Sender: mblaze@googlegroups.com X-Gm-Message-State: AOAM531T64UZsywggVseqdRl3Aro7Tm5DiVoo7RArRp2zvDrOtOeuV5K gt5QeFnbecowOANMhtvPpaQ= X-Google-Smtp-Source: ABdhPJyZ/BcGJhKPDcb/CXweL0Wd4SGphec5PvVYOaFKuinfXf3NJrZ/1qwTVRC164a97aHXoOLnTA== X-Received: by 2002:a37:9684:: with SMTP id y126mr27242997qkd.348.1593029231256; Wed, 24 Jun 2020 13:07:11 -0700 (PDT) X-BeenThere: mblaze@googlegroups.com Received: by 2002:a37:38f:: with SMTP id 137ls1617900qkd.2.gmail; Wed, 24 Jun 2020 13:07:10 -0700 (PDT) X-Received: by 2002:a37:2c41:: with SMTP id s62mr2854684qkh.135.1593029230359; Wed, 24 Jun 2020 13:07:10 -0700 (PDT) Date: Wed, 24 Jun 2020 13:07:09 -0700 (PDT) From: Pierre Bellec To: mblaze Message-Id: <37d1f718-192a-4bb3-93ee-a89db62604f1n@googlegroups.com> In-Reply-To: <3CPF2KFLU5TP7.242WO6ROBA9PE@homearch.localdomain> References: <3CPF2KFLU5TP7.242WO6ROBA9PE@homearch.localdomain> Subject: Re: Email address aliases MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_118_1797117683.1593029229844" X-Original-Sender: pierre.bellec.2008@polytechnique.org Precedence: list Mailing-list: list mblaze@googlegroups.com; contact mblaze+owners@googlegroups.com List-ID: X-Google-Group-Id: 738309941541 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , ------=_Part_118_1797117683.1593029229844 Content-Type: multipart/alternative; boundary="----=_Part_119_472045253.1593029229844" ------=_Part_119_472045253.1593029229844 Content-Type: text/plain; charset="UTF-8" Hi Silvan, The following works with vim. It requires fzf and fzf.vim. Once in a while, you can use maddr \| sort \| uniq > ~/my.contacts to dump all contacts found in your emails in that file. Then in .vimrc: inoremap fzf#vim#complete('cat ~/my.contacts') will let you complete emails inside vim using fzf when writing an email in vim. Best wishes, Pierre On Saturday, July 6, 2019 at 5:02:13 PM UTC-4 Silvan Jegen wrote: > Heyho > > Ideally I don't want to type out people's whole email addresses when > composing emails. My first thought was to use an alias file with my > SMTP client (msmtp). This works fine for sending emails, except that > the aliases are not replaced in the mail headers. That means if a person > replies to all people in a mail from me, and the CC header contains an > alias like 'friend1', the email addressed to 'friend1' one will never > arrive since it's not a valid email address. > > Currently I am using a new approach where I simply run 'sed' over the > headers of an email at composiition time to replace all my aliases with > the proper email addresses. > > I feel like there should be a more elegant solution to this (involving > 'msed' being invoked before passing an email to the sendmail program > perhaps?). Is there an easy way to get simple email address aliases > working that I am missing? > > > Cheers, > > Silvan > -- You received this message because you are subscribed to the Google Groups "mblaze" group. To unsubscribe from this group and stop receiving emails from it, send an email to mblaze+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mblaze/37d1f718-192a-4bb3-93ee-a89db62604f1n%40googlegroups.com. ------=_Part_119_472045253.1593029229844 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Silvan,

The following works with vim. It r= equires fzf and fzf.vim.

Once in a while, you can = use
    maddr \| sort \| uniq > ~/my.contacts
to dump all contacts found in your emails in that file.
<= div>
Then in .vimrc:
   inoremap <= expr> <c-x><c-k> fzf#vim#complete('cat ~/my.contacts')
=
will let you complete emails inside vim using fzf when writing an emai= l in vim.

Best wishes,
Pierre
<= br>
On Sat= urday, July 6, 2019 at 5:02:13 PM UTC-4 Silvan Jegen wrote:
Heyho

Ideally I don't want to type out people's whole email addresses= when
composing emails. My first thought was to use an alias file with my
SMTP client (msmtp). This works fine for sending emails, except that
the aliases are not replaced in the mail headers. That means if a perso= n
replies to all people in a mail from me, and the CC header contains an
alias like 'friend1', the email addressed to 'friend1' = one will never
arrive since it's not a valid email address.

Currently I am using a new approach where I simply run 'sed' ov= er the
headers of an email at composiition time to replace all my aliases with
the proper email addresses.

I feel like there should be a more elegant solution to this (involving
'msed' being invoked before passing an email to the sendmail pr= ogram
perhaps?). Is there an easy way to get simple email address aliases
working that I am missing?


Cheers,

Silvan

--
You received this message because you are subscribed to the Google Groups &= quot;mblaze" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to mblaze+unsub= scribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/m= blaze/37d1f718-192a-4bb3-93ee-a89db62604f1n%40googlegroups.com.
------=_Part_119_472045253.1593029229844-- ------=_Part_118_1797117683.1593029229844--