Article View: news.software.readers
Article #119697Re: [tin] message composition fails = loose article!
From: Heath Raftery
Date: Mon, 03 Feb 2003 20:59
Date: Mon, 03 Feb 2003 20:59
37 lines
2608 bytes
2608 bytes
Urs Jan?en <urs@buil.tin.org> wrote:
> In <b1lqc0$ipp$1@support.neth.hp.com>,
> Frank Slootweg wrote:
>>> exiting the editor) I get a "command failed vi +n
>>> /path/to/the/article.123456". With that, the article disappears! There
>>> is no record of it in the .tin directory or elsewhere, and unless I
>>> highlight my article before hand, or save a copy somewhere else, I
>>> loose it all.
>> It looks like the editor itself is failing, so you probably have to
>> look at that, instead of at tin.
> most external programms are called via system() and afterwards the
> returncode is checked - in your case it looks like your editor
> (sometimes) exits with a returncode != 0.
>> Anyway, if you have this in your tinrc
>>> # If ON remove ~/.article after posting.
>>> unlink_article=OFF
>> then the .article* file is kept and :w to save progress should help.
>> You may also want to set this:
>>> # If ON keep all failed postings in ~/dead.articles
>>> keep_dead_articles=ON
> or you could patch tin do not check the returncode (look at
> invoke_editor() and/or invoke_cmd()) or call your editor from a shell
> wrappser script which always returns 0.
Excellent folks, thanks very much. I'll try the tinrc modifications as
they appear to be just what I was looking for.
Heath
--
*--------------------------------------------------------*
| ^Nothing is foolproof to a sufficiently talented fool^ |
| Heath Raftery, HRSoftWorks _\|/_ |
*______________________________________m_('.')_m_________*
Technical Details
Message-ID:
<b1ml7n$806$1@seagoon.newcastle.edu.au>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!news.usyd.edu.au!news.newcastle.edu.au!not-for-mailReferences:
<b1kogo$5v5$4@seagoon.newcastle.edu.au> <b1lqc0$ipp$1@support.neth.hp.com> <b1m2sr$60j$1@news.rz.uni-karlsruhe.de>Show Full Headers
Complete Article Headers
Message-ID: <b1ml7n$806$1@seagoon.newcastle.edu.au>
Subject: Re: [tin] message composition fails = loose article!
Date: Mon, 03 Feb 2003 20:59:35 +0000
From: Heath Raftery <hraftery@myrealbox.com>
References: <b1kogo$5v5$4@seagoon.newcastle.edu.au> <b1lqc0$ipp$1@support.neth.hp.com> <b1m2sr$60j$1@news.rz.uni-karlsruhe.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!news.usyd.edu.au!news.newcastle.edu.au!not-for-mail
Newsgroups: news.software.readers
Organization: HRSoftWorks <http://hrsoftworks.hopto.org>
Lines: 36
Sender: HEATH RAFTERY <c2004527@helios.newcastle.edu.au>
NNTP-Posting-Host: helios.newcastle.edu.au
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (SunOS/5.6 (sun4u))