From owner-freebsd-stable@freebsd.org Tue Apr 9 22:21:22 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 36C8A1570591 for ; Tue, 9 Apr 2019 22:21:22 +0000 (UTC) (envelope-from softwareinfojam@gmail.com) Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 545C885193 for ; Tue, 9 Apr 2019 22:21:21 +0000 (UTC) (envelope-from softwareinfojam@gmail.com) Received: by mail-vs1-xe43.google.com with SMTP id g127so177796vsd.6 for ; Tue, 09 Apr 2019 15:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:mime-version:to:from:subject:date:importance:in-reply-to :references; bh=V5SEA85O5k5/BS4OFK2PxSbLvf8gXoYUCpfvoA08g3g=; b=lTdY2TEqmGsTm+3q4WOzUR8rfcix6331u2m9BX/bCSyeu8X7j4b4FDFIf3MaLL3OrR KPYbNcazIzWtDvQK71LB+1CNF7INtFo7B0ou484O3DUhvkx1d33CcHoVDzrPbUidTgwQ +VF0/i3hTsZSzeNiaG25Kv/EhvsrZu8J+qPJAPeg/QzhHeR1mOzIE/XfVyGmCMml1MaY 2EzTUD/fgh4qp4BEJwThdsGj43uyp6tyH7Voy857M8fRPR/k+Dp/yEcHPNnk3IwMGbJY zNONdfMEZsCr78oy9Z5ozEcGN+FzU8Ug2rXcSK8hNB0NQy5hhpcn3SLL5rU4dJ+VD3Yd bWWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version:to:from:subject:date :importance:in-reply-to:references; bh=V5SEA85O5k5/BS4OFK2PxSbLvf8gXoYUCpfvoA08g3g=; b=YVdDrmrGojfpe8ZC1qtiVcRM50PxoLsswjBg0TMSTXSgf3QmPamZwePYjNy9oqsyx1 EpAaA/2KoVR/aFQakbCRYNX6LM98tRoZCD3TvRXNRJpJtB6KjlDZ92oh8jfTUgEPIjpA Gm+6apuVGUycAP+eOTcPMqyFRu2bo2CIpUrhECHjwm7iZGTzH5z6cXUDJIGiBV0xV1c+ oT0rN9rG3Alksed4TQXUV7RKBewDCSNZvr7Bua1stt6KtSTxVTnkB0sCPbIvWTf4+54q ugkr8aqDwRzualeJ6LnUv/u3WPPZxPT2kipcHosFdTTbhLJZCJq2RsvHAis+6KYGtj5b ZIRQ== X-Gm-Message-State: APjAAAX3Vx02AQ8k4W3cyxbq49BhMPtvuHITVLWX6lORBWFFfbmFXoVS K2+kLSANEgNl29m1joDO2k0MUWkY X-Google-Smtp-Source: APXvYqwEmYV6/KI8mdvsqqsNqcVzRVKdnMqBt64ATdKFA3bVXGxS0vvzlBzywNUQh2rp+W3xYu97BQ== X-Received: by 2002:a67:c490:: with SMTP id d16mr22231770vsk.93.1554848480937; Tue, 09 Apr 2019 15:21:20 -0700 (PDT) Received: from ?IPv6:::ffff:192.10.1.119? (git.mayberryinv.com. [63.143.111.202]) by smtp.gmail.com with ESMTPSA id h1sm9988084vsd.2.2019.04.09.15.21.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2019 15:21:20 -0700 (PDT) Message-ID: <5cad1ae0.1c69fb81.b5b11.08ae@mx.google.com> MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz>, "freebsd-stable@freebsd.org" From: Software Info Subject: RE: Mailx Question Date: Tue, 9 Apr 2019 17:21:20 -0500 Importance: normal X-Priority: 3 In-Reply-To: <0d44d441-3120-c140-40da-7a32baff0cae@quip.cz> References: <5cad0a1f.1c69fb81.c5304.4f33@mx.google.com> <0d44d441-3120-c140-40da-7a32baff0cae@quip.cz> X-Rspamd-Queue-Id: 545C885193 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=lTdY2TEq; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of softwareinfojam@gmail.com designates 2607:f8b0:4864:20::e43 as permitted sender) smtp.mailfrom=softwareinfojam@gmail.com X-Spamd-Result: default: False [-3.31 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[1]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.90)[-0.897,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.4.e.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-0.41)[ip: (3.15), ipnet: 2607:f8b0::/32(-2.95), asn: 15169(-2.18), country: US(-0.06)] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Apr 2019 22:21:22 -0000 Fantastic. Works like a charm. Thank you very much. Kind Regards SI Sent from Mail for Windows 10 From: Miroslav Lachman Sent: Tuesday, April 9, 2019 4:40 PM To: Software Info; freebsd-stable@freebsd.org Subject: Re: Mailx Question Software Info wrote on 2019/04/09 23:09: > Hi All > Since mailx is built into FreeBSD I decided to try asking this question h= ere. I have a text file with about 30 email addresses. The file will change= every day. I want an easy commandline way to read the file and blind copy = send an email to the addresses in the file. So far, I have this working wit= h just a plain send using the command below. > mailx -s "Test Emails" -b `cat mylist.txt` < body.txt -r "No-Reply" >=20 > Of course, when I use a plain send, everybody sees everybody=E2=80=99s em= ail address so I would love to be able to do a blind copy send. Would anyon= e be able to assist me with this? It may depend on your MTA (Sendmail, Postfix, Exim etc.) "You must specify direct recipients with -s, -c, or -b." -b bcc-addr Send blind carbon copies to bcc-addr list of users. The bcc-addr argument should be a comma-separated list of names. You should replace newlines with comma: cat mylist.txt | tr "\n" "," Maybe something like this will work for you: mail -s "Test E-mails" -b `cat mylist.txt | tr "\n" ","`=20 my-generic@example.com < body.txt Miroslav Lachman