search for: __attr_unused__

Displaying 20 results from an estimated 24 matches for "__attr_unused__".

2006 Feb 03
0
rquotad (NFS) quota plugin
...t->resources[i++] = QUOTA_NAME_STORAGE; + } + if (root->inode_limit != 0) { + root->resources[i++] = QUOTA_NAME_MESSAGES; + } + root->resources[i] = NULL; + + return root->resources; + } + + static int + rquotad_quota_root_create(struct quota *_quota, + const char *name __attr_unused__, + struct quota_root **root_r __attr_unused__) + { + struct rquotad_quota *quota = (struct rquotad_quota *)_quota; + + quota->error = "Permission denied"; + return -1; + } + + static int + rquotad_quota_get_resource(struct quota_root *_root, const char *name, + u...
2004 Nov 19
0
[PATCH] add initial response support for NTLM and RPA
...-ntlm.c 2004-11-07 13:41:25.000000000 +0300 +++ dovecot-1.0-test52/src/auth/mech-ntlm.c 2004-11-14 00:07:03.000000000 +0300 @@ -203,12 +208,14 @@ mech_ntlm_auth_continue(struct auth_requ } static void -mech_ntlm_auth_initial(struct auth_request *auth_request, - const unsigned char *data __attr_unused__, - size_t data_size __attr_unused__, +mech_ntlm_auth_initial(struct auth_request *request, + const unsigned char *data, size_t data_size, mech_callback_t *callback) { - callback(auth_request, AUTH_CLIENT_RESULT_CONTINUE, NULL, 0); + if (data_size == 0) + callback(request...
2006 Jun 20
1
Group-based filesystem quota
Hello. After using Dovecot for over a year, I have just started experimenting with the filesystem quotas, and I have a suggestion for improvement. On my mail server, I use group-based quotas, and would like to have Dovecot be able to report these quotas. It should be simple to implement, requiring only changes to the quota-fs.c file of the quota plugin. Simply changing USRQUOTA to
2004 Jul 20
0
[PATCH] fix build error with HAVE_MODULES not set
...odule-dir.c --- dovecot-1.0-test28.vanilla/src/lib/module-dir.c 2004-05-31 01:07:59.000000000 +0400 +++ dovecot-1.0-test28/src/lib/module-dir.c 2004-07-18 20:04:26.000000000 +0400 @@ -150,7 +150,7 @@ void module_dir_unload(struct module *mo #else -struct module *module_dir_load(const char *dir __attr_unused__) +struct module *module_dir_load(const char *dir __attr_unused__, int require_init_funcs __attr_unused__) { i_error("Dynamically loadable module support not built in"); return NULL; -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type...
2006 May 05
0
support for no modules, patch
--- src/lib/module-dir.c~ 2006-02-26 13:14:12.000000000 +0100 +++ src/lib/module-dir.c 2006-05-05 11:09:11.000000000 +0200 @@ -255,8 +255,8 @@ } #else - struct module *module_dir_load(const char *dir __attr_unused__, + const char *module_names __attr_unused__, bool require_init_funcs __attr_unused__) { i_error("Dynamically loadable module support not built in"); -------------------------------------------------------------------...
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...unt; }; @@ -73,6 +74,7 @@ root->root.name = i_strdup(name); root->root.v = quota_backend_fs.v; root->uid = geteuid(); + root->gid = getegid(); return &root->root; } @@ -177,7 +179,16 @@ static const char *const * fs_quota_root_get_resources(struct quota_root *root __attr_unused__) { - static const char *resources[] = { QUOTA_NAME_STORAGE, NULL }; + const char *mail; + mail = getenv("MAIL"); + static const char *resources[] = { + QUOTA_NAME_STORAGE, + NULL, + NULL + }; + if (strstr(mail, "maildir") != NULL) { + resources[1] = QUOTA_NAME_MESSAGES; + }...
2007 Sep 23
7
v1.1.beta1 released
http://dovecot.org/releases/1.1/beta/dovecot-1.1.beta1.tar.gz http://dovecot.org/releases/1.1/beta/dovecot-1.1.beta1.tar.gz.sig Alpha6 seemed to finally work quite well, so I think it's time for a feature freeze (except for dbox changes). I started a new wiki page to list incompatibilities between v1.0 and v1.1: http://wiki.dovecot.org/Upgrading/1.1 Fixes since alpha6: - deliver + maildir
2007 Sep 23
7
v1.1.beta1 released
http://dovecot.org/releases/1.1/beta/dovecot-1.1.beta1.tar.gz http://dovecot.org/releases/1.1/beta/dovecot-1.1.beta1.tar.gz.sig Alpha6 seemed to finally work quite well, so I think it's time for a feature freeze (except for dbox changes). I started a new wiki page to list incompatibilities between v1.0 and v1.1: http://wiki.dovecot.org/Upgrading/1.1 Fixes since alpha6: - deliver + maildir
2007 Aug 14
1
Failed to compile dovecot 1.1 nightly build
...1.1 night build from here: http://hg.dovecot.org/dovecot/archive/tip.tar.gz autogen.sh ./configure (with a long list of options) make I got this error information: ... rpcgen -c /usr/include/rpcsvc/rquota.x | \ -e 's/IXDR_PUT/(void)IXDR_PUT/g' \ -e 's/int32_t \*buf/int32_t *buf __attr_unused__/' > rquota_xdr.c /bin/sh: line 1: -e: command not found make[4]: *** [rquota_xdr.c] Error 127 make[4]: Leaving directory `/var/home/wzheng/code/vendor/src/plugins/quota' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/home/wzheng/code/vendor/src/plugins' make[2]...
2005 Sep 13
1
Solaris build failed
dovecot-v1.0-alpha build failed for Solaris 11 (OpenSolaris Nevada). The problematic line is in socket.c line 228. The fix should be to change SOL_TCP to IPPROTO_TCP found in netinet/in.h. This change should work universally on all platforms. Gary
2007 Dec 18
4
Dovecot + Cygwin the 2nd
Hi, i still try to get dovecot to run under cygwin. After a post on the cygwin list i am able tu run dovecot. Under Cygwin you have to run dovecot by inetd. Starting the binary "dovecot.exe" does not work. Well the server is running but answers with a fatal error. Account: 'localhost', Server: 'localhost', Protokoll: POP3, Serveranswer: 'Fatal: EOF while reading
2005 Jun 03
2
POP3 download problem
Hi All I am experiencing a mail download problem with dovecot's pop3 protocol. We use outlook XP 2002 mail clients and I have setup a mail system with pop accounts on a Fedora 2 installation using dovecot. Some of the clients download email fine but others do not download email and also do not give any error messages. I have enabled the "verbose" options in the
2004 Aug 09
1
[PATCH] RPA authentication mechanism
..._idx = 0; + reply.data_size = token4_size; + callback(&reply, token4, auth_request->conn); + + auth->phase = 2; + + return TRUE; +} + +static int +mech_rpa_auth_phase3(struct auth_request *auth_request, + const unsigned char *data, size_t data_size, + mech_callback_t *callback __attr_unused__) +{ + static const unsigned char client_ack[3] = { 0x60, 0x01, 0x00 }; + int ret = TRUE; + + if ((data_size != sizeof(client_ack)) || + (memcmp(data, client_ack, sizeof(client_ack)) != 0)) { + if (verbose) + i_info("rpa(%s): invalid token 5 or client rejects us", + get_log...
2008 Sep 22
1
Adding new password schemes?
Hi, all. I was curious how difficult it would be to add a new password scheme to Dovecot? I have to transplant mailboxes from one machine to another, the older machine running Post.Office from now-defunct Software.Com, which was bought by OpenWave, then discontinued. Apparently, Netscape's mailserver offering from the day also supports this scheme. There's code out there that was
2002 Dec 27
1
RLIMIT_AS patch for FreeBSD
...l page. ( http://www.freebsd.org/cgi/man.cgi?setrlimit ) You may be interested in integrating this patch. --- src/lib/restrict-process-size.c Fri Dec 27 18:19:41 2002 +++ src/lib/restrict-process-size.c-new Fri Dec 27 18:19:22 2002 @@ -32,7 +32,8 @@ void restrict_process_size(unsigned int size __attr_unused__) { -#ifdef HAVE_SETRLIMIT +#if defined(HAVE_SETRLIMIT) && defined(RLIMIT_AS) +/* FreeBSD has setrlimit(2) but does not define RLIMIT_AS */ struct rlimit rlim; rlim.rlim_max = rlim.rlim_cur = Thanks, -- Dominic <dom at cus.org.uk> <d.marks at student.umist.ac.uk>
2003 Jun 03
1
error
hi, I've got the following alert window in mozilla (with dovecot): --------------------------------------- The current command did not succeed. The mail server responded: Error in IMAP command: Too long argument.. --------------------------------------- although there is not any messages in my imap.log file. -- Levente "Si vis pacem para bellum!"
2012 Nov 16
1
whoson plugin for 2.0
I have found a plugin at ftp://ftp.ufanet.ru/pub/boco/dovecot/whoson-plugin/ I was able to make it function on a dovecot 1.2.8 server, by changing __attr_unused__ to ATTR_UNUSED and strlcpy to i_strocpy (since glibc doesn't HAVE strlcpy, on purpose). However, it doesn't work with 2.1 this is, of course, because getenv() no longer functions lie it used to in plugins. so i need a replacement for getenv("IP") and getenv("USER")...
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,
2005 Jan 24
2
Problem with incorrect permissions with shared folders
Hi, I'm seeing strange permissions when using an email client to create a new sub folder in a shared folder. This is dovecot-1.0test61 I have a directory /data/mail/shared owner=root group=shared permissions=2770 I have a file /data/mail/shared/dovecot-shared owner=root group-shared permissions=2660 User fred in in group shared (in /etc/group) My understanding
2006 Jul 24
2
[PATCH] Substitution of dots to ", dc=" in variable expansions
Hi list, my ldap directory uses DNs like this: uid=solist,ou=People,dc=solistland,dc=net,ou=Virtuals but I only could use something like uid=solist,ou=People,dc=solistland.net,ou=Virtuals with dovecot, which obviously isn't what the dcObject object class was meant to present. I've written a small function for var-expand.c which introduces a new modifier for string variable