From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x73d.google.com (mail-qk1-x73d.google.com [IPv6:2607:f8b0:4864:20::73d]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id e1a39c72 for ; Tue, 21 May 2019 15:25:20 +0000 (UTC) Received: by mail-qk1-x73d.google.com with SMTP id u128sf11262956qka.2 for ; Tue, 21 May 2019 08:25:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1558452319; cv=pass; d=google.com; s=arc-20160816; b=ZctBsSIyCJWj98o8eU0q8uZ93ZsuXxTRhAJa9lWll4ERgi13bKUWxlHcyDCc7pMQi1 xLp0isDbH3ErUS2nFtX95SoEbImT5KQULUp5Bmf9DxcIoIBGJyU+u5ElPInl/HrFNSA7 UrynSODkWBM+Tq+nNMlgfmUPIsbM9K/mq26erzh6EZy3uPnPe30hq/ef09OnMXnIjKU+ NIXKAKI7MPvp1mh3wO6nk7RNJ3xbOjJ9SfJuLs/SqNqDCLkVJXCO3FPeddQf21aX0AbG fcWmnwBC9MKAugx+uLw+XZdnG/sR/Eyom7mKtMvW+7Y4lYLblApmu+eZ5v9bHNVxinh4 pSjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:user-agent:message-id :subject:from:to:date:sender:dkim-signature; bh=3FU8dSyz+kGeWklubQvU2QcMPwiXOfdwcC9BOEQSnME=; b=zVy84g4lRHtJvTGWtv2emTlTk0NPHhGwOYnk6edeOYb/1t7JjOsUphJHz5x+g+gfda rYLyj54+Or84HHIhcbbhPUz+U6Fu6rklVXhE6DmcKLsMJvbeOsPcZLZfXEnKgWNO0g4N JIZwwre0xAqO+g5IJ2D8QOgk+hfKnh2sF77ZAfBFV/9CjmLkRADkiUoS81khChzTeBwp fJHa3xa2h7pbLm+m1BgGnNVOujzF7BWeplXgu1p1UWPA46r7AGIReMGWFEV4cx1TSBVO i/QsUsC3BAUIXvxmWkff2WypmvzHMmLJh2iE7ohN/JHYtiSGgxCEJpanV4Ns2LhQ079W 9wcQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 64.147.119.12 is neither permitted nor denied by best guess record for domain of attila@stalphonsos.com) smtp.mailfrom=attila@stalphonsos.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:to:from:subject:message-id:user-agent:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=3FU8dSyz+kGeWklubQvU2QcMPwiXOfdwcC9BOEQSnME=; b=FKB/mMYsEYYrHGoXV4Lse9D1YMPgpF3A0JnK3daLrAwz1EiacTBsx/jz79G8uwHAaC nwx6TjKUZlh8c0cXcZaIL6JPtGZFwoy7axxQVb+Csk/vo9gyljAgQygz5dhwktq/JjUZ j8C5RBiXRUMAKPMscw1rrQBT012GThA8ZTR0t37CNdtQpO5hhwffhU2G/2wVpf+lMkgL DzWUsq9bCeJO8S8u3PH36RioRMoZw7fhyTJnly23fN3loABm0amzsPM4+V+0V7lcSw7P L8ivMXu6PSEW1NT45nup+8yiHOf97dx3WsfKRaJApRHz5DTzISIKf7aHmgpJRknlHzW0 glIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:to:from:subject:message-id :user-agent:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=3FU8dSyz+kGeWklubQvU2QcMPwiXOfdwcC9BOEQSnME=; b=QtNMru+Lkxq0Z1qqkufFKyuXH2x3JC7DYwVt3zpLX/vq2Jh8sHw2Pm9nLKx+9npjsk JhEoti6rYfBnwJYZuYmm4c1YKxmM0kmxOwpsndO47ntMoz3M8GnXfKveeWZ+7CSeDalt BTe3xW4HpgBZWxKDWnOMuiCimFiM3w7Moiwy0k2DkPAqevzwqo7RZpBHSkM840/Bq2ST gNJ77fCNQTSdyfagh+IF4EhpDg5sUwwIoUJF6TD70fLwuLofWAl5jdtRKbjhlAofnZcH xdCSksMF69hhuEflA4TKTwYAPdKE2Qj5RJtPn70BdOhlKR71mN6nvS1rmklEDohgt3wd sFFg== Sender: mblaze@googlegroups.com X-Gm-Message-State: APjAAAUGzdBun/pHI+idl1Q2p6s4hF3IoJ4k5E/E5CcWgoOWulIjVA0w eLdlD0U6A8PJKd1dxq1+OHQ= X-Google-Smtp-Source: APXvYqxQhbxhqbxdc0iWSDMWOMXtsUH8SpIjEOqIN9L3Zq76Y7QsaBxr9qjHlYt5KKmOCi+zyxpUJA== X-Received: by 2002:ac8:fd5:: with SMTP id f21mr1605871qtk.163.1558452318737; Tue, 21 May 2019 08:25:18 -0700 (PDT) X-BeenThere: mblaze@googlegroups.com Received: by 2002:aed:22ac:: with SMTP id p41ls1686162qtc.6.gmail; Tue, 21 May 2019 08:25:18 -0700 (PDT) X-Received: by 2002:ac8:3459:: with SMTP id v25mr69947149qtb.67.1558452318378; Tue, 21 May 2019 08:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558452318; cv=none; d=google.com; s=arc-20160816; b=VIS2naNsNMMDCtG7+nZJiQwqSeOZkza6HImsNMb1G1/rS7Q3DXCCwDmr12qn7f7q73 et7TGnGWxHynHnydYasOgZpDATSl5x+Q3baeYQELU2p1T8KFM4msE/+sREC+FYiyAjB9 IfnXnP2//AIzgrCGpro42ni8yLK2Izz6EUv9ijHM0nG+O/qCo1TYJEOx2p5SYNZjve7x GQKiu3467mGa+j+/8qVf0cucXKd9vTzv8gJoJ4Dd4rJEURRrCfT8KOq4auuXrWohMiXW 2lQzB6fOpHSrRstDeUzUOhKwojqp9vDe5HnTtunzMEsrAZYYaZ5yNrFDt/d5v7vBrGSH t3rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:message-id:subject:from:to:date; bh=KOVdgC/yhbPuEaand59fnAZ4xIiTADzwKby16gy4scg=; b=pmU+ZH8K0vcXpSRS2duYOpBT66sTMj8awtm1wyd7b30LhrfLt0xtlfV7QgTGfRRrfr WSygso/tzZA29xZ/4vjiuPFMAc8zJmSaNq1ha6SJRoV0BjJy8aeHXf+VGpRSbfWHzlEQ +bC2nqSro2cVit1Ry1Zll0dL3iq7DiZyEHOxDaZDJYQJTVfm+DKABAyamPmKO0D9Q3/d uiscgl8uLKWEbNy9CY2RAdOBaofaArvi+mldRDjeHNNQC0EKmL8be0d3frvd78LwlZf5 pQcK52rekUq2FcFy1ak9hK5Knl/S8crtpUoCFZ3fqt4YBvfuKmkS8VefQ4arU1v4T2sA Qscw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 64.147.119.12 is neither permitted nor denied by best guess record for domain of attila@stalphonsos.com) smtp.mailfrom=attila@stalphonsos.com Received: from mail.stalphonsos.com (x.stalphonsos.net. [64.147.119.12]) by gmr-mx.google.com with ESMTPS id x22si1577336qtx.2.2019.05.21.08.25.18 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 May 2019 08:25:18 -0700 (PDT) Received-SPF: neutral (google.com: 64.147.119.12 is neither permitted nor denied by best guess record for domain of attila@stalphonsos.com) client-ip=64.147.119.12; Received: from stalphonsos.com (localhost [127.0.0.1]) by mail.stalphonsos.com (OpenSMTPD) with ESMTP id 74f11aee; Tue, 21 May 2019 11:25:17 -0400 (EDT) Date: Tue, 21 May 2019 10:25:16 -0500 To: mblaze@googlegroups.com From: attila Subject: patch to mcom to make using msmtp easier w/multiple identities Message-Id: <2KMER8ALDHL5P.2W76F2CU2HZ76@stalphonsos.com> User-Agent: mblaze/0.5.1 (2019-04-13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_372f20c30f026fcf4c6eae03_=_" X-Original-Sender: attila@stalphonsos.com X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 64.147.119.12 is neither permitted nor denied by best guess record for domain of attila@stalphonsos.com) smtp.mailfrom=attila@stalphonsos.com 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: , This is a multipart message in MIME format. ------_=_372f20c30f026fcf4c6eae03_=_ Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Hi fellow mblazers, Attached is a patch to mcom from mblaze 0.5.1 that I use to get msmtp to properly decide which SMTP server to use based on the From address. Am not particularly attached to this way of doing things, this is just what's working for me now. To use it, I put sendmail: /usr/local/bin/msmtp auto-from: -f in my ~/.mblaze/profile and set the From address to match the "from" directives in each stanza of my msmtp config. Pax, -A -- 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 post to this group, send email to mblaze@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mblaze/2KMER8ALDHL5P.2W76F2CU2HZ76%40stalphonsos.com. For more options, visit https://groups.google.com/d/optout. ------_=_372f20c30f026fcf4c6eae03_=_ Content-Disposition: attachment; filename=mcom.patch Content-Type: text/plain Content-Transfer-Encoding: 7bit --- /usr/local/bin/mcom Tue Oct 2 15:38:41 2018 +++ /home/attila/bin/mcom Sat Apr 27 10:44:44 2019 @@ -73,6 +73,7 @@ sendmail=$(mhdr -h sendmail "$MBLAZE/profile") sendmail_args=$(mhdr -h sendmail-args "$MBLAZE/profile") sendmail="${sendmail:-sendmail} ${sendmail_args:--t}" default_from=$(mhdr -h local-mailbox "$MBLAZE/profile") +auto_from=$(mhdr -h auto-from "$MBLAZE/profile") hdrs= resume= @@ -351,6 +352,10 @@ while :; do sendmail="${sendmail:-sendmail} -- $resent" ;; esac + if [ -n "$auto_from" ]; then + from="$(echo $draft | maddr -a -h from)" + sendmail="${sendmail} ${auto_from} ${from}" + fi if [ -e $draftmime ]; then if [ $draft -ot $draftmime ] || [ "$automime" -eq 1 ]; then ------_=_372f20c30f026fcf4c6eae03_=_--