From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126716 invoked by alias); 30 Jan 2020 21:56:59 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 126708 invoked by uid 89); 30 Jan 2020 21:56:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=networks, dean, Dean, Priyanka X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 Jan 2020 21:56:58 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id xHnziViiwkqGXxHo0iST4u; Thu, 30 Jan 2020 14:56:56 -0700 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: Issue with email -a (Zip files) To: cygwin@cygwin.com References: Cc: Priyanka Joshi From: Brian Inglis Message-ID: Date: Thu, 30 Jan 2020 21:56:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2020-01/txt/msg00320.txt.bz2 On 2020-01-30 02:21, Priyanka Joshi wrote: > I am facing issue when I am trying to send zip file as attachment, same > command works fine for xml file. > > PFB commands for reference: > > Below command worked fine and sent testng.xml as attachment > email -s "BHN Test Automation Report" -a testng.xml priyanka.joshi@bhnetwork.com > > email -s "BHN Test Automation Report" -a allure-report.zip priyanka.joshi@bhnetwork.com > ==> Not triggering any email and not throwing any error. > > Please let us know how to debug and fix the zip attachment issue. Cygwin email requires -b option flag, body text on stdin, or invokes your editor for body text entry to send emails. First, check location, version, and test: $ which email /usr/bin/email $ email --version email - By Dean Jones; Version 3.2.3-git $ email -b -s "Test zip send" -a Downloads/....zip above-email-address worked for me, with a random downloaded small zip file, also worked whether I echoed or redirected text into stdin, or did neither and typed body text into the editor window opened on a tmp file. Corporate networks often have filters and strict rules about what may be included in a zip file, may be both outgoing and incoming; they could even have Outlook, other email client, or generic email filters on your desktop system. Talk to your IT mail and security admins to find out what is filtered where. Try renaming the zip file as if xml or something safe, and see if that works, and if not, try putting your xml in a zip file, and see if that works. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple