Skip to content

Commit 950ddf1

Browse files
Configure REPLYTO_POSTER_CHECKING; correct renamed functions
1 parent bf21e7f commit 950ddf1

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

config/cmake/config.h.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,4 +329,9 @@
329329
*/
330330
#cmakedefine MSDOS
331331

332+
/* REPLYTO_POSTER_CHECKING:
333+
* Makes -p also check Reply-To (slow)
334+
*/
335+
#cmakedefine REPLYTO_POSTER_CHECKING
336+
332337
#endif

config/cmake/configure_trn.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ function(configure_trn)
157157
# TODO: How to properly configure BIN_DIR to work when developing and after installation?
158158
set(BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin" CACHE STRING "Path of the bin directory where the package will be installed.")
159159
set(PAGER "more" CACHE STRING "The name of the preferred pager on the system.")
160+
option(REPLYTO_POSTER_CHECKING "If ON, makes -p also check Reply-To (slow)" OFF)
160161

161162
if(WIN32)
162163
set(MSDOS ON)

libtrn/cache.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,10 @@ void check_poster(Article *ap)
356356
else
357357
{
358358
#ifdef REPLYTO_POSTER_CHECKING
359-
char* reply_buf = fetchlines(article_num(ap),REPLY_LINE);
359+
char* reply_buf = fetch_lines(article_num(ap),REPLY_LINE);
360360
if (in_string(reply_buf, g_login_name.c_str(), true))
361361
{
362-
select_subthread(ap,AUTO_SEL_FOL);
362+
select_sub_thread(ap,AUTO_SEL_FOL);
363363
}
364364
std::free(reply_buf);
365365
#endif

0 commit comments

Comments
 (0)