Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; '64-bit': 0.07; 'subject:file': 0.07; 'python': 0.09; 'subject:using': 0.09; 'throw': 0.09; 'unix,': 0.09; 'files.': 0.13; 'library': 0.15; 'dec': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'issue.': 0.20; 'command': 0.24; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'authors': 0.27; 'message-id:@mail.gmail.com': 0.27; '(possibly': 0.29; 'about.': 0.29; 'maybe': 0.29; 'notes': 0.30; 'file': 0.32; 'received:209.85.160.46': 0.32; "aren't": 0.33; 'ram': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'server': 0.35; 'smtp': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.36; 'possible': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'build': 0.39; 'header:Received:5': 0.40; 'first': 0.61; 'different': 0.63; 'more': 0.63; 'our': 0.65; 'tasks.': 0.65; 'mail.': 0.69; 'receive': 0.71; 'one).': 0.84; 'subject:sent': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=NFfZBe3qlrTel1bMfaQgACFs0th6wlf4GIeSGQeO7tg=; b=P3cw0oKfmGUXDHJfYiKs4+v1NS3Cafaf7vUcpjfdlIu8drtDp91cQSSRuBlpL+AOH5 UtAihBEWLaTDYdu0syUof0IfOS3qB8Fd0UFTop1StLOH5/BkTqyNrVpXJfkhKHqCcWeB SVjBRjvbE7P7Tcj6iEpZ/T4Z6jpuLrGErzpfblNvoSjQYoPgtmWjYDNMXvCSpMBNcwXZ 9MYJbdFhy4CdvB+iIMcwHqLAYuicLBk+mupp0CpFsQHg0vSYhbm8Jndcy61ye3Eftoqv 3Yz4s0EcV1GufUa8/D56s/E9Vp1OBPAiNOL4VVW0QZIgDOMcfQldGJ8goshIu/qQBbUX v7sw== MIME-Version: 1.0 In-Reply-To: <85208793-33f5-4ea7-a20c-98436afe0300@m4g2000yqf.googlegroups.com> References: <1d8228ff-8f9e-4258-8927-2f964c36d8bf@n5g2000vbk.googlegroups.com> <50BE1990.4020009@shopzeus.com> <85208793-33f5-4ea7-a20c-98436afe0300@m4g2000yqf.googlegroups.com> Date: Wed, 5 Dec 2012 16:34:25 +1100 Subject: Re: using smtp sent large file upto 60MB From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1354685668 news.xs4all.nl 6923 [2001:888:2000:d::a6]:36418 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34272 On Wed, Dec 5, 2012 at 11:54 AM, moonhkt wrote: > I am prepare change UNIX script to Python. smtp and ftp are my first > tasks. > > But, when using standard unix command mail and uuencode without this > issue. > > Our SMTP can send file more than 60MB. But our notes server can > configured 100MB,30MB or 10MB. My notes Mail box can receive 100MB. > > In UNIX, by below command send smtp mail. > uuencode $xfn $xfn | mail -s "$SUBJECT" $NAME Yes, and it is possible to send that much content via SMTP. It just isn't something that library authors are going to be overly concerned about. You may need to jump through a few extra hoops, or maybe just throw more RAM at the computer (possibly switching to a 64-bit build of Python if you aren't already using one). However, I would *still* recommend using a different transport for such large files. ChrisA