- fixed a minor memory leak in pine import filter
- filter cleanups
- fixes
+ - "quit and print selected item(s) to stderr" command (Brian Medley)
+ - contrib update
0.4.13
- major code reorganization (phase 1)
return ret;
}
+void
+print_stderr(int item)
+{
+ char *mailstr = NULL;
+
+ if( is_valid_item(item) )
+ mailstr = make_mailstr(item);
+ else {
+ struct db_enumerator e = init_db_enumerator(ENUM_SELECTED);
+ char *tmp = NULL;
+ db_enumerate_items(e) {
+ tmp = mailstr;
+ mailstr = tmp ?
+ strconcat(tmp, ",", make_mailstr(e.item), NULL):
+ strconcat(make_mailstr(e.item), NULL);
+ free(tmp);
+ }
+ }
+
+ fprintf(stderr, "%s", mailstr);
+
+#ifdef DEBUG
+ fprintf(stderr, "mailstr: %s\n", mailstr);
+#endif
+
+ free(mailstr);
+
+}
+
void
launch_mutt(int item)
{
void quit_abook();
void launch_wwwbrowser(int item);
void launch_mutt(int item);
+void print_stderr(int item);
#ifdef _AIX
int strcasecmp (const char *, const char *);
int strncasecmp (const char *, const char *, size_t);
PACKAGE=abook
-VERSION=0.4.14-cvs
+VERSION=0.4.14
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
dnl abook configure.in
AC_INIT(abook.c)
-AM_INIT_AUTOMAKE(abook, 0.4.14-cvs)
+AM_INIT_AUTOMAKE(abook, 0.4.14)
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
" ? help\n",
" q quit\n",
+" Q quit and print selected item(s) to stderr\n",
" ^L refresh screen\n",
"\n",
" arrows / j,k scroll list\n",
can_resize = FALSE; /* it's not safe to resize anymore */
switch( ch ) {
case 'q': return;
+ case 'Q': print_stderr(selected_items() ?
+ -1 : list_current_item());
+ return;
case '?':
display_help(HELP_MAIN);
refresh_screen();