[tin-bugs] Tin 1:2.4.5-1 (Debian-Current) exiting when unable to post (timeout)

Urs Janßen urs at tin.org
Thu May 11 08:42:49 CEST 2023


> there are two related options in tinrc
> from tin(5)
> | ${TIN_HOMEDIR:-"$HOME"}/.tin/tinrc
> [...]
> |              auto_reconnect
> |                     Reconnect to server automatically. Default is OFF.
> [...]
> |              nntp_read_timeout_secs
> |                     Time  in  seconds to wait for a response from the
+server.
> |                     Default is 120.

I just had a look at the code (nntplib.c:reconnect() ~894):

if (retry > NNTP_TRY_RECONNECT || (!tinrc.auto_reconnect && prompt_yn(_(txt_reconnect_to_news_server), TRUE) != 1)) {
 if (!strcmp("POST", last_put)) {
  unlink(backup_article_name(article_name));
  rename_file(article_name, dead_article);
  if (tinrc.keep_dead_articles)
   append_file(dead_article, dead_articles);
  }
  /* ... */

so if reconnection fails more than NNTP_TRY_RECONNECT times (compile time
set in nntplib.h to 2) or is unwanted during a post command the article
should be still available in ~/dead.article and if keep_dead_articles=ON is
set in tinrc also appended to ~/dead.articles (mbox format).

HTH,
urs



More information about the tin-bugs mailing list