search for: str_c

Displaying 20 results from an estimated 69 matches for "str_c".

2011 Jun 14
1
Invalid Regular Expression
...0 0 he lives in 66062 0 0 1 So basically, I'm generating a 1 if a phrase contains a state, city, or zip code, and 0 if it doesn't. Using the stringr package, I developed the following code: library(stringr) inscompany_match <- str_c(inscompany, collapse = "|") state_match <- str_c(state, collapse = "|") city_match <- str_c(city, collapse = "|") agency_match <- str_c(agency, collapse = "|") zipcode_match <- str_c(zipcode, collapse = "|") mydf$inscompany <- as...
2015 Nov 02
2
auth_request_get_var_expand test fails on big endian arches.
Hi, when running the tests in a big endian machine, I get the following error: 0 / 1 tests failed test-auth-request-var-expand.c:99: Assert failed: strcmp(str_c(str), test_output) == 0 test-auth-request-var-expand.c:104: Assert failed: strcmp(str_c(str), test_output) == 0 auth request var expand short and long ............................... : FAILED test: random seed #1 was 1446803094 auth request var expand flags ...........................................
2003 Sep 09
1
PC-Pine "Junk in end of group"
I am running PC-Pine under Windows XP, connecting via SSL to a Dovecot IMAP server (0.99.10-2 under Debian woody). When I open a mail folder (mbox format) in Pine I get the following non-fatal error: [Junk in end of group: pn=undisclosed-recipients al= dn=] A similar error was reported to comp.mail.pine as happening with a Lotus Domino server. Mark Crispin explained it as a server-side bug:
2020 Aug 15
2
Tests failing on CentOS 6
Getting this when attempting to build 2.3.11.3 on CentOS 6: test-mail-cache.c:176: Assert failed: strcmp(str_c(str),"123\nfoo\n456\nbar\n") "" != "123 foo 456 bar " test-mail-cache.c:176: Assert failed: strcmp(str_c(str),"123\nfoo\n456\nbar\n") "" != "123 foo 456 bar " mail cache uncommitted lookups .................................
2016 Aug 22
1
RFC 3501 violation in FETCH BODY responses
...ecot 2.2.25 adds a space between addresses of an address list of the envelope structure of an encapsulated MESSAGE/RFC822 message. See the attached patch to ?src/lib-imap/test-imap-bodystructure.c?, which currently (2.2.25) fails as follows test-imap-bodystructure.c:122: Assert failed: strcmp(str_c(str), testmsg_body) == 0 test-imap-bodystructure.c:129: Assert failed: strcmp(str_c(str), testmsg_bodystructure) == 0 imap bodystructure parser ............................................ : FAILED because the ?env-to? field of the envelope structure of the encapsulated MESSAGE/RFC822 mess...
2011 Jun 09
1
Error: missing values where TRUE/FALSE needed
...d19, d20, d21, d22, d23, d24, d25, d26, d27, d28, d29, d30, d31, d32, d33, d34, d35, d36, d37, d38, d39, d40, d41, d42, d43, d44, d45, d46, d47, d48, d49, d50, d51, d52, d53, d54, d55, d56, d57, d58, d59, d60, d61, d62, d63, d64, d65, d66, d67, d68, d69, d70) library(stringr) inscompany_match <- str_c(inscompany, collapse = "|") state_match <- str_c(state, collapse = "|") city_match <- str_c(city, collapse = "|") mydf$inscompany <- as.numeric(str_detect(mydf$keyword, inscompany_match)) mydf$state <- as.numeric(str_detect(mydf$keyword, state_match)) mydf$...
2014 Dec 12
0
PATCH - add username_format to the PAM auth module
...*resp_r = NULL; resp = calloc(num_msg, sizeof(struct pam_response)); @@ -82,7 +90,7 @@ case PAM_PROMPT_ECHO_ON: /* Assume we're asking for user. We might not ever get here because PAM already knows the user. */ - string = strdup(ctx->request->user); + string = strdup(str_c(username)); if (string == NULL) i_fatal_status(FATAL_OUTOFMEM, "Out of memory"); break; @@ -108,12 +116,14 @@ } free(resp); + str_free(&username); return PAM_CONV_ERR; } resp[i].resp_retcode = PAM_SUCCESS; resp[i].resp = string; } + str_free(&...
2003 Nov 04
0
PATCH: make local IP address available to auth modules
The attached patch makes the local IP address to which the client connected available to the authentication modules; i.e., the local IP address is available for substitution as %i for the mysql and pgsql modules. We needed this feature to support thousands of our legacy accounts which are authenticated by username/local_part (not the full email address) and IP address (one per domain). Timo,
2015 Nov 27
0
auth_request_get_var_expand test fails on big endian arches.
On 02 Nov 2015, at 15:28, Rafael dos Santos <rdossant at redhat.com> wrote: > > Hi, > > when running the tests in a big endian machine, I get the following error: > > 0 / 1 tests failed > test-auth-request-var-expand.c:99: Assert failed: strcmp(str_c(str), > test_output) == 0 > test-auth-request-var-expand.c:104: Assert failed: strcmp(str_c(str), > test_output) == 0 > auth request var expand short and long ............................... : > FAILED Should be fixed by http://hg.dovecot.org/dovecot-2.2/rev/cf956e34dc11
2015 Nov 27
1
auth_request_get_var_expand test fails on big endian arches.
...15, at 15:28, Rafael dos Santos <rdossant at redhat.com> wrote: > > > > Hi, > > > > when running the tests in a big endian machine, I get the following > error: > > > > 0 / 1 tests failed > > test-auth-request-var-expand.c:99: Assert failed: strcmp(str_c(str), > > test_output) == 0 > > test-auth-request-var-expand.c:104: Assert failed: strcmp(str_c(str), > > test_output) == 0 > > auth request var expand short and long ............................... : > > FAILED > > Should be fixed by http://hg.dovecot.org/doveco...
2020 Aug 17
0
Tests failing on CentOS 6
On 15. Aug 2020, at 14.18, Peter <peter at pajamian.dhs.org> wrote: > > Getting this when attempting to build 2.3.11.3 on CentOS 6: > > test-mail-cache.c:176: Assert failed: strcmp(str_c(str),"123\nfoo\n456\nbar\n") > "" != "123 > foo > 456 > bar > " > test-mail-cache.c:176: Assert failed: strcmp(str_c(str),"123\nfoo\n456\nbar\n") > "" != "123 > foo > 456 > bar > " > mail c...
2008 Dec 09
1
Possible bug in Maildir++ quota?
While researching a possible bug in our custom-made Maildir++ expiration script, I found the following in src/plugins/quota/quota-maildir.c. | static const char * | maildir_list_next(struct maildir_list_context *ctx, time_t *mtime_r) | { | [...] | *mtime_r = st.st_size; | return str_c(ctx->path); | } As far as I unterstand, this seems incorrect, because the value in mtime_r is used, for example, in maildirs_check_have_changed to check whether any maildirs or folders have changed. If this isn't a bug, please satisfy my own curiosity and tell me what I'm missing. Ulr...
2005 Jul 13
0
Minor bugs still in test77
Thinking of patches I always apply, I've got a couple (attached) that fix minor bugs and maybe should be applied - or implemented better and then applied ;) - to the main distribution? 1) LIST bugs: LIST "~/mail/" "" and LIST "" "~/mail/" (where "~/mail/" is a namespace prefix) don't reply the same way as UW-IMAP does and in at
2010 Nov 30
2
2.0.7 (a131a498731f): Core Dump on parsing Config
.../usr/lib/debug/usr/lib/dovecot/imap...done. (no debugging symbols found)...done. warning: core file may not match specified executable file. Core was generated by `/usr/sbin/dovecot -c /etc/dovecot/dovecot.conf'. Program terminated with signal 11, Segmentation fault. #0 0x0000000000408719 in str_c at plt () #0 0x0000000000408719 in str_c at plt () No locals. #1 0x00000000016711f8 in ?? () No symbol table info available. #2 0x00007f95ccf52b90 in ?? () No symbol table info available. #3 0x0000000000000000 in ?? () No symbol table info available. Current language: auto The current source l...
2012 Dec 29
4
lda crash?
When I try to refilter some messages lda crash: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: lda-log.txt URL: <http://dovecot.org/pipermail/dovecot/attachments/20121229/b64bf43d/attachment-0004.txt> -------------- next part -------------- doveconf -n output -------------- next part -------------- A non-text attachment was scrubbed...
2017 Jul 11
2
Extracting sentences with combinations of target words/terms from cancer patient text medical records
...tence_match <- function(x){ sentence_extract <- str_extract_all(sampletxt, boundary("sentence"), simplify = TRUE) sentence_number <- intersect(str_which(sentence_extract, "breast"), str_which(sentence_extract, "metastatic|stage IV")) sentence_match <- str_c(sentence_number, ": ", sentence_extract[sentence_number], collapse = "") sentence_match } #### Working code #### sampletxt <- "This sentence contains the word metastatic and the word breast. This sentence contains no target words." sentence_match(sampletxt)...
2011 Jun 09
2
Problem with a if statement inside a function
..., d29, d30, d31, d32, d33, d34, d35, d36, d37, d38, d39, d40, d41, d42, d43, d44, d45, d46, d47, d48, d49, d50, d51, d52, d53, d54, d55, d56, d57, d58, d59, d60, d61, d62, d63, d64, d65, d66, d67, d68, d69, d70) library(stringr) inscompany_match <- str_c(inscompany, collapse = "|") state_match <- str_c(state, collapse = "|") city_match <- str_c(city, collapse = "|") mydf$inscompany <- as.numeric(str_detect(mydf$keyword, inscompany_match)) mydf$state <- as.numeric(str_detect(mydf$keyw...
2016 Apr 28
2
Combinaciones sin repetición...con restricciones
...hoice <- function(conjunto, cual_1, cual_2) { > > #Todas combinaciones cogidas de 1, 2, ... n (número elementos de > "conjunto") > ele_ment <- conjunto > all_comb <- vector() > for (i in 1:length(ele_ment)) { > com_tmp <- combn(ele_ment, i, FUN=str_c, simplify = TRUE, collapse="_") > all_comb <- c(all_comb, com_tmp) > } > > #Detección de presencia de "cual_1" y "cual_2" en el conjunto... > cu_al <- paste(cual_1,cual_2,sep="|") > res_out <- all_comb[str_detect(all_com...
2017 Jul 12
0
Extracting sentences with combinations of target words/terms from cancer patient text medical records
...lt;- function(x){ > sentence_extract <- str_extract_all(sampletxt, boundary("sentence"), simplify = TRUE) > sentence_number <- intersect(str_which(sentence_ extract, "breast"), str_which(sentence_extract, "metastatic|stage IV")) > sentence_match <- str_c(sentence_number, ": ", sentence_extract[sentence_ number], collapse = "") > sentence_match >} > >#### Working code #### > >sampletxt <- "This sentence contains the word metastatic and the word breast. This sentence contains no target words." >...
2017 Jul 12
2
Extracting sentences with combinations of target words/terms from cancer patient text medical records
...lt;- function(x){ > sentence_extract <- str_extract_all(sampletxt, boundary("sentence"), simplify = TRUE) > sentence_number <- intersect(str_which(sentence_ extract, "breast"), str_which(sentence_extract, "metastatic|stage IV")) > sentence_match <- str_c(sentence_number, ": ", sentence_extract[sentence_ number], collapse = "") > sentence_match >} > >#### Working code #### > >sampletxt <- "This sentence contains the word metastatic and the word breast. This sentence contains no target words." >...