Displaying 17 results from an estimated 17 matches for "str_data".
2003 Apr 23
2
Kerberized Telnet Badly Broken (Patch enclosed)
...===========================
RCS file: /usr/src/cvs/src/crypto/telnet/libtelnet/kerberos.c,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 kerberos.c
--- libtelnet/kerberos.c 13 Apr 2002 10:59:07 -0000 1.3.2.1
+++ libtelnet/kerberos.c 24 Apr 2003 06:25:34 -0000
@@ -126,7 +126,7 @@
*p++ = SE;
if (str_data[3] == TELQUAL_IS)
printsub('>', &str_data[2], p - (&str_data[2]));
- return(net_write(str_data, p - str_data));
+ return(telnet_net_write(str_data, p - str_data));
}
int
Index: libtelnet/kerberos5.c
===================================================================
RCS fi...
2017 Sep 08
5
EOF from net_disconnect(fd)
...tor the stream through the socket so I can see if the plugin is indeed sending the EOF? Knowing that lets me know if I need to chase down the issue in the Go daemon code.
I?m no pro with C but I tried. The snippet from the plugin follows:
alarm(1);?????????????? ???
{
if (net_transmit(fd, str_data(req), str_len(req)) < 0) {
? i_error("write(%s) failed: %m", socket_path);
? ret = -1;
} else {
? char res[1024];
? ret = net_receive(fd, res, sizeof(res)-1);
? if (ret < 0) {
??????????????? i_error("read(%s) failed: %m", socket_path);
? } else {
???????????????...
2008 Dec 05
3
How to calculate the distance between two density functions
Dear all,
I wrote the following code to calculate the density functions for two data
sets, respectively.
den_str <-density(str_data$Similarity);
den_non_str <-density(nonstr_data$Similarity);
However, I would like to knowing the difference between den_str and
den_non_str, that is, the difference between the region under the curve of
the den_str and the region under the curve of the den_non_str.
How to do?
Thank you...
2017 Sep 08
1
EOF from net_disconnect(fd)
...me know if I need to chase down the issue in the Go daemon code.
>>
>>
>>
>> I?m no pro with C but I tried. The snippet from the plugin follows:
>>
>>
>>
>> alarm(1);
>>
>> {
>>
>> if (net_transmit(fd, str_data(req), str_len(req)) < 0) {
>>
>> i_error("write(%s) failed: %m", socket_path);
>>
>> ret = -1;
>>
>> } else {
>>
>> char res[1024];
>>
>> ret = net_receive(fd, res, sizeof(res)-1);
>>
>> if (ret < 0)...
2017 Sep 08
0
EOF from net_disconnect(fd)
...plugin is indeed sending the EOF? Knowing that lets me know if I need to chase down the issue in the Go daemon code.
>
>
>
> I?m no pro with C but I tried. The snippet from the plugin follows:
>
>
>
> alarm(1);
>
> {
>
> if (net_transmit(fd, str_data(req), str_len(req)) < 0) {
>
> i_error("write(%s) failed: %m", socket_path);
>
> ret = -1;
>
> } else {
>
> char res[1024];
>
> ret = net_receive(fd, res, sizeof(res)-1);
>
> if (ret < 0) {
>
> i_error("read(%s...
2003 Nov 10
2
PATCH: CRAM-MD5 for Dovecot
...str;
+ struct {
+ uint64_t v1,v2;
+ } challenge;
+
+ random_fill(&challenge, sizeof(challenge));
+ hostpid_init();
+ str = t_str_new(256);
+ str_printfa(str, "<%llu%llu.%u@%s>", challenge.v1, challenge.v2, time(NULL), my_hostname);
+ auth->challenge = p_strdup(auth->pool, str_data(str));
+
+ return str;
+}
+
+static int verify_credentials(struct cram_auth_request *auth,
+ const char *credentials)
+{
+
+ unsigned char digest[16], context_digest[32], *cdp;
+ struct md5_context ctxo, ctxi;
+ buffer_t *context_digest_buf;
+ const char *response_hex;
+
+ if (credentials == NU...
2020 Jul 20
2
To field was not correct indexed by FTS
Hi,
This To field was not correct indexed by FTS.
To: Yamada Taro <yamada at example.com>,=?UTF-8?B?dXNlcjJAZXhhbXBsZS5jb20=?= <user2 at example.com>, =?UTF-8?B?dXNlcjNAZXhhbXBsZS5jb20=?= <user3 at example.com>,
user4 desu <user4 at example.com>
--> Yamada Taro <yamada at example.com> , user2 at example.com
And follow was correct indexed by FTS
To: Yamada
2020 Jul 20
0
To field was not correct indexed by FTS
...hdr->full_value_len,
192 UINT_MAX, 0);
193 str = t_str_new(hdr->full_value_len);
194 message_address_write(str, addr);
195
196 i_debug("@@@@@ after address parse:%s",str_data(str));
Mail addresses were deleted when passed message_address_parse().
So this debug logs came like following:
Debug: @@@@@ befor address parse:uesr1 <user1 at example.com>
Debug: @@@@@ after address parse:uesr1 <user1 at example.com>
Debug: @@@@@ data:uesr1 <user1 at example.com&...
2013 Jun 08
1
Problem redirecting email using pigeonhole 0.4.0 (with patch)
...ader_append(hdr, "X-Sieve", SIEVE_IMPLEMENTATION, FALSE, NULL);
if ( recipient != NULL )
- rfc2822_header_write(hdr, "X-Sieve-Redirected-From", recipient);
+ rfc2822_header_append(hdr, "X-Sieve-Redirected-From", recipient,
FALSE, NULL);
o_stream_send(output, str_data(hdr), str_len(hdr));
} T_END;
Best regards,
Andrey.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crlf.patch
Type: application/octet-stream
Size: 838 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20130609/f9a35d0a/attach...
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...
2020 Jul 20
2
To field was not correct indexed by FTS
...en,
> 192 UINT_MAX, 0);
> 193 str = t_str_new(hdr->full_value_len);
> 194 message_address_write(str, addr);
> 195
> 196 i_debug("@@@@@ after address parse:%s",str_data(str));
>
> Mail addresses were deleted when passed message_address_parse().
> So this debug logs came like following:
>
> Debug: @@@@@ befor address parse:uesr1 <user1 at example.com>
> Debug: @@@@@ after address parse:uesr1 <user1 at example.com>
> Debug: @@@@@ d...
2017 Nov 01
2
Bug: lmtp proxy does not quote local parts with spaces
...[2].value != NULL) tab[2].value++;
+ tab[2].value = strrchr(username, '@');
+ if (tab[2].value != NULL) {
+ tab[1].value = t_strndup(username, tab[2].value - username);
+ tab[2].value++;
+ } else {
+ tab[1].value = username;
+ }
var_expand(str, format, tab);
md5_get_digest(str_data(str), str_len(str), md5);
--- dovecot-2.2.33.2.original/src/lib-mail/message-address.c 2017-10-05 18:10:44.000000000 +0100
+++ dovecot-2.2.33.2/src/lib-mail/message-address.c 2017-10-31 10:12:50.185866755 +0000
@@ -540,7 +540,7 @@
if (*delimiter_string == '\0')
return;
- domain = str...
2017 Nov 03
1
Bug: lmtp proxy does not quote local parts with spaces
...f (tab[2].value != NULL) tab[2].value++;
+ tab[2].value = strrchr(username, '@');
+ if (tab[2].value != NULL) {
+ tab[1].value = t_strdup_until(username, tab[2].value);
+ tab[2].value++;
+ } else {
+ tab[1].value = username;
+ }
var_expand(str, format, tab);
md5_get_digest(str_data(str), str_len(str), md5);
--- dovecot-2.2.33.2/src/lib-mail/message-address.c 2017-10-05 18:10:44.000000000 +0100
+++ dovecot-2.2.33.2.reverse-domaincut/src/lib-mail/message-address.c 2017-11-02 16:00:30.926866755 +0000
@@ -540,7 +540,7 @@
if (*delimiter_string == '\0')
return;
- dom...
2009 Jul 01
4
mbox format and UIDVALIDITY
My base concern may be illustrated with the help of that simple telnet
session:
# telnet 127.0.0.1 imap
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
AUTH=PLAIN] Dovecot ready.
a1 login testuser ******
a1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID
ENABLE SORT
2004 Jul 01
3
[PATCH, RFC] add APOP authentication mechanism
...+ str_append(apop_data, args);
+
+ memset(&info, 0, sizeof(info));
+ info.mech = "APOP";
+ info.protocol = "POP3";
+ info.flags = client_get_auth_flags(client);
+ info.local_ip = client->common.local_ip;
+ info.remote_ip = client->common.ip;
+ info.initial_resp_data = str_data(apop_data);
+ info.initial_resp_size = str_len(apop_data);
+
+ client_ref(client);
+ client->common.auth_request =
+ auth_client_request_new(auth_client, &info,
+ login_callback, client, &error);
+
+ if (client->common.auth_request != NULL) {
+ /* don't read any input from c...
2017 Oct 26
2
Bug: lmtp proxy does not quote local parts with spaces
On 26/10/2017 18:38, Alexander Dalloz wrote:
> Am 26.10.2017 um 12:20 schrieb David Zambonini:
>>
>> There seems to be a bug with RFC822 processing in ltmp proxying that
>> doesn't
>> quote local parts that, for example, contain spaces.
>
> Newer related RFCs are RFC 5321 and 5322.
Typo, meant to say RFC2822, which they still supercede, not that the
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...+ fetch_text = t_str_new(11 + (dec_parts.section ?
+ strlen(dec_parts.section) : 0));
+ str_append(fetch_text, "BODY.PEEK[");
+ if (dec_parts.section)
+ str_append(fetch_text, dec_parts.section);
+ str_append(fetch_text, "]");
+
+ cfctx.input = i_stream_create_from_data(str_data(fetch_text),
+ str_len(fetch_text));
+ (void) i_stream_read(cfctx.input);
+
+ cfctx.parser = imap_parser_create(cfctx.input, NULL, (size_t) -1);
+ if (imap_parser_finish_line(cfctx.parser, 0, 0, &fetch_args) < 0)
+ return catenate_fetch_cleanup(&cfctx, FALSE,
+ "can&...