Displaying 10 results from an estimated 10 matches for "o_stream_send_str".
2006 Apr 28
1
imaptest, with options!
I hacked some command line options into imaptest.
I dont think I broke it..
Place into dovecot-source root as usual and compile with:
gcc imaptest.c -o imaptest -Wall -W -I. -Isrc/lib -DHAVE_CONFIG_H
src/lib/liblib.a
As per Timo's instructions.
# imaptest -h imaptest [USER at IP:PORTNO] [pass=PASSWORD] [mbox=MBOX]
[clients=CC] [msgs=NMSG] [use_authenticate] [PORTNO]
USER = template for
2008 Apr 19
2
mailtrain with dovecot antispam plugin
Hello all, and Johannes if you're around,
I was trying to set up the "new" antispam plugin with the mailtrain
backend, and i was trying to use the sendmail binary that's part of a
qmail system. The message wouldn't get sent and i kept getting exit
error 100 from the /var/qmail/bin/sendmail binary. To try to figure out
what was happening, i mean a fake sendmail program,
2008 Mar 11
2
dovecot-1.1.rc3 segmentation fault in fetch_bodystructure
...,
&bodystructure) < 0)
return -1;
---> before the segfault here we have bodystructure=0 and
mail_get_special returns >=0
[..]
if (o_stream_send(ctx->client->output, "BODYSTRUCTURE (", 15) < 0 ||
/*line 461*/ o_stream_send_str(ctx->client->output, bodystructure) < 0 ||
---> here o_stream_send_str calls strlen(bodystructure=0), and strlen
tries to access "Address 0x0" causing a segfault
--
Address 0x0 is not stack'd, malloc'd or (recently) free'd
Process terminating with default action...
2003 Dec 20
1
Bugfix for use with "Opera mail" and "AnalogX"
Dear developers,
[ Please CC me as I'm not subscribed to this list. ]
In src/pop3-login/client.c:
void client_send_line(struct pop3_client *client, const char *line)
{
o_stream_send_str(client->output, line);
o_stream_send(client->output, "\r\n", 2);
}
Called as 'client_send_line(client "+OK dovecot");'.
This function sends two packets to the client. It appears Opera mail
and AnalogX proxy recognise the 1st packet as a complete welcome and...
2006 Apr 26
2
being courier_imap compatible
OK, I am running (for many years now) an existing courier_imap maildir
++ setup with exim as the MTA. Has been fine. I have my own custom
ldap schema for user account definition and authorization.
I installed dovecot 1.0 beta 7 as a test and have it listening on a
different port. I would like, if possible, to set things up so that
a user could use either dovecot or courier. Having to
2005 Aug 24
0
verbose imap logging
...etch.c 2005-07-04 13:30:25.000000000 +0200
+++ dovecot-1.0.alpha1/src/imap/imap-fetch.c 2005-08-23 10:39:08.000000000 +0200
@@ -353,10 +353,12 @@
return -1;
}
+ ctx->client->retr_bytes+=strlen(body);
if (o_stream_send(ctx->client->output, "BODY (", 6) < 0 ||
o_stream_send_str(ctx->client->output, body) < 0 ||
o_stream_send(ctx->client->output, ")", 1) < 0)
return -1;
+ ctx->client->retr_messages++;
return 1;
}
@@ -387,6 +389,7 @@
return -1;
}
+ ctx->client->retr_bytes+=strlen(bodystructure);
if (o_stream_se...
2003 Oct 02
2
Patches
As the freeze for Debian sarge slowly approaches I want to make sure
the Dovecot packages are in as good condition as possible. I see there
have been a number of patches since 0.99.10. I have added the following
patches:
* segfault when user home directory is empty
* Proper PAM service name
* Make suid work on 2.6 kernels
Any other patches thatI ought to add. Or better yet, will there be a
2003 Sep 29
1
Handling of X-Status flags
...ELETED) ? "D" : "",
(ctx->msg_flags & MAIL_FLAGGED) ? "F" : "",
- (ctx->msg_flags & MAIL_DELETED) ? "T" : "",
+ (ctx->msg_flags & MAIL_DRAFT) ? "T" : "",
x_status, NULL);
if (o_stream_send_str(ctx->output, str) < 0)
diff -ruN dovecot-0.99.10/src/lib-storage/index/mbox/mbox-save.c dovecot-0.99.10.brb/src/lib-storage/index/mbox/mbox-save.c
--- dovecot-0.99.10/src/lib-storage/index/mbox/mbox-save.c Sun Jun 15 11:43:05 2003
+++ dovecot-0.99.10.brb/src/lib-storage/index/mbox/mbox-save.c...
2008 May 31
2
Segfault in imap_bodystructure_write when searching
...index_mail_get_special ()
No symbol table info available.
#11 0x080703f4 in ?? ()
No symbol table info available.
#12 0x080f8c08 in ?? ()
No symbol table info available.
#13 0x00002000 in ?? ()
No symbol table info available.
#14 0x00000001 in ?? ()
No symbol table info available.
#15 0x080bc105 in o_stream_send_str ()
No symbol table info available.
#16 0x0805f26e in ?? ()
No symbol table info available.
#17 0x080f8c08 in ?? ()
No symbol table info available.
#18 0x00002000 in ?? ()
No symbol table info available.
#19 0x00000001 in ?? ()
No symbol table info available.
#20 0x00000000 in ?? ()
Any help would...
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...;is);
+
+ return keys;
+}
+
+// write the access keys to the file
+static bool urlauth_keys_write(int fd, struct hash_table *keys)
+{
+ struct ostream *os;
+ struct hash_iterate_context *iter;
+ void *key, *value;
+
+ os = o_stream_create_fd_file(fd, 0, FALSE);
+ if (os == NULL)
+ return NULL;
+
+ o_stream_send_str(os, URLAUTH_KEYS_FILENAME" version 1\n");
+ iter = hash_table_iterate_init(keys);
+ while (hash_table_iterate(iter, &key, &value)) {
+ /* key is the mailbox, value is the access key */
+ o_stream_send_str(os, (const char *) value);
+ o_stream_send(os, ":", 1);
+ o_st...