delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/01/30/16:57:59

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:cc:from
:message-id:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=TZw0cY3lY7SXWtA2
ShyRp/lDc8vfSErR4ieqk4gPDcoOOk6pqmcpHUiqyJ/ZepvTMQuYmFkNDxcreFC6
Ijb1LpIy+zYe6iGuOXpQY0pzX4qBRHnmYBiij0j9Y/ovsxMZPkUD7Td/qea8e8jN
scGLYos9D1EWG3n8xFCctYqhmk0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:cc:from
:message-id:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=JhuBohZk962I4xru9SMWGG
zteks=; b=tCUBiXTK3Mg2gg8Pl6r7sVchlyMQxRwIT7e5IAhL+r2267q7ZTvW29
tmQ+HJ+nUILPMxMB3s75eI2Iu9GW8Vs94MIUQqch+JkQtppkJlmUu1MDobRfxPIq
lYzoyZwV0gCWAulBI+PMPNiV/LbNn+j7Esu8DytmH/AcAjUgLmjm4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: Issue with email -a (Zip files)
To: cygwin AT cygwin DOT com
References: <BN8PR18MB2673C215B777949D20B633258F040 AT BN8PR18MB2673 DOT namprd18 DOT prod DOT outlook DOT com>
Cc: Priyanka Joshi <Priyanka DOT Joshi AT bhnetwork DOT com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Message-ID: <c95bb418-bf80-1768-3732-82aa75a1a03b@SystematicSw.ab.ca>
Date: Thu, 30 Jan 2020 14:56:55 -0700
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: <BN8PR18MB2673C215B777949D20B633258F040@BN8PR18MB2673.namprd18.prod.outlook.com>
X-IsSubscribed: yes

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 DOT joshi AT bhnetwork DOT com
> 
> email -s "BHN Test Automation Report" -a allure-report.zip priyanka DOT joshi AT bhnetwork DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019