X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=contrib%2Fwhitelist%2Fpatch.orig.obsolete;fp=contrib%2Fwhitelist%2Fpatch.orig.obsolete;h=8cc1415999f4e76416d4bbf8fd8a0920f7b88e2b;hb=9d28f71348269e7075d0ff5c0b7ae4e05f358304;hp=0000000000000000000000000000000000000000;hpb=c0b0c6c7a0971525558239e544212589fbbac58b;p=pkg%2Fabook.git diff --git a/contrib/whitelist/patch.orig.obsolete b/contrib/whitelist/patch.orig.obsolete new file mode 100644 index 0000000..8cc1415 --- /dev/null +++ b/contrib/whitelist/patch.orig.obsolete @@ -0,0 +1,61 @@ +54a55,56 +> static void procmail_query(char *str); +> static void procmail_print_email(int item); +498a501,503 +> if( !strcmp(argv[i], "--procmail-query") ) +> procmail_query(argv[i + 1]); +> else +561a567,583 +> +> static void +> procmail_print_email(int item) +> { +> char emails[MAX_EMAILS][MAX_EMAIL_LEN]; +> +> split_emailstr(item, emails); +> +> if( options_get_int("mutt", "return_all_emails") ) { +> int i; +> for(i=0; i if( *emails[i] ) +> printf("%s\n", emails[i]); +> } else +> printf("%s\n", emails[0]); +> } +> +571c593 +< printf("All items\n"); +--- +> /*printf("All items\n");*/ +580a603,633 +> j++; +> } +> free(tmp); +> } +> if( !j ) +> printf("Not found\n"); +> } +> +> quit_mutt_query(); +> exit(0); +> } +> +> static void +> procmail_query(char *str) +> { +> int i, j; +> char *tmp; +> +> init_mutt_query(); +> +> if( str == NULL || !strcasecmp(str, "all") ) { +> /*printf("All items\n");*/ +> for(i = 0; i < items; i++) +> procmail_print_email(i); +> } else { +> for(i = 0, j = 0 ; i < items; i++) { +> tmp = strdup(database[i][NAME]); +> if( strstr( strupper(tmp), strupper(str) ) != NULL ) { +> if( !j ) +> putchar('\n'); +> procmail_print_email(i);