From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67124 Path: news.gmane.org!not-for-mail From: anhnmncb Newsgroups: gmane.emacs.gnus.general Subject: Make gnus-agent-batch non-interactive at all? Date: Fri, 04 Jul 2008 19:03:25 +0800 Message-ID: <877ic1di82.fsf@gentoo.hasee.cpu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215187740 30082 80.91.229.12 (4 Jul 2008 16:09:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Jul 2008 16:09:00 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15586@lists.math.uh.edu Fri Jul 04 18:09:47 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1KEnqo-0004bl-RB for ding-account@gmane.org; Fri, 04 Jul 2008 18:09:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1KEnpc-0007Tz-QZ; Fri, 04 Jul 2008 11:08:20 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1KEjB8-00068q-48 for ding@lists.math.uh.edu; Fri, 04 Jul 2008 06:10:14 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1KEjB1-0008TQ-1A for ding@lists.math.uh.edu; Fri, 04 Jul 2008 06:10:13 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1KEjBK-0006CQ-00 for ; Fri, 04 Jul 2008 13:10:26 +0200 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1KEjAx-0001Hd-1c for ding@gnus.org; Fri, 04 Jul 2008 11:10:05 +0000 Original-Received: from 116.253.10.111 ([116.253.10.111]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jul 2008 11:10:03 +0000 Original-Received: from anhnmncb by 116.253.10.111 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jul 2008 11:10:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 116.253.10.111 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:gGmwJXIHHoN2J6eKFwXyJNZ5lLs= X-Spam-Score: 2.5 (++) X-Spam-Report: SpamAssassin (3.1.9 2007-02-13) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-4145--16357h-0s--0d--H*UA:Emacs, 0.000-3446--13598h-0s--0d--H*UA:Gnus, 0.000-3446--13597h-0s--0d--H*u:Gnus, 0.000-3307--13049h-0s--0d--H*u:Emacs, 0.000-2567--10128h-0s--0d--H*UA:linux Spam tokens: 0.978-1--0h-2s--0d--********, 0.958-1--0h-1s--0d--H*F:D*sina.com, 0.958-1--0h-1s--0d--H*Ad:D*sina.com, 0.956-8879--2972h-90611s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.956-8879--2972h-90611s--0d--H*RU:quimby.gnus.org Autolearn status: no 2.9 FROM_LOCAL_NOVOWEL From: localpart has series of non-vowel letters 1.5 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 0.7 AWL AWL: From: address is in the auto white-list List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67124 Archived-At: Hi, list, I encounter an annoying problem with gnus-agent-batch. My script is: ----------------------------- #!/bin/sh emacs -batch -l ~/.emacs -f -l ~/.gnus.el gnus-agent-batch >/dev/null 2>& ----------------------------- Sometimes when my networking is bad, it can't reach severs, in this case, this script should ask me: ----------------------------- Mail source (pop :server pop.sina.com :user anhnmncb :port pop3 :password ********) error (stringp). Continue? (yes or no) ----------------------------- and wait for my answer, because it's a non-interactive script, I can't type yes at all, so this script will be hung on, how to let gnus-agent-batch always assume the yes answer, so it will go on always? Any hints will be appreciated! -- Regards, anhnmncb gpg key: 44A31344