search for: mail_storage

Displaying 20 results from an estimated 73 matches for "mail_storage".

2006 Oct 09
1
patch: mailboxcasecmp()
...- dovecot-1.0.beta8.orig/src/imap/commands-util.c 2006-01-13 19:00:10.000000000 -0800 +++ dovecot-1.0.beta8/src/imap/commands-util.c 2006-10-08 15:01:26.919748000 -0700 @@ -328,8 +328,8 @@ bool client_save_keywords(struct mailbox return TRUE; } -bool mailbox_equals(struct mailbox *box1, struct mail_storage *storage2, - const char *name2) +static bool _mailbox_equals(struct mailbox *box1, struct mail_storage *storage2, + const char *name2, int ci) { struct mail_storage *storage1 = mailbox_get_storage(box1); const char *name1; @@ -338,13 +338,36 @@ bool mailbox_equals(struct mailbox *bo...
2008 Jul 23
1
Mailbox_module_context question
Hi, I am new to the dovecot source and would like to know why the mailbox_module_context has a pointer to the mail_storage_module_register and not to a mailbox_module_register. From what I have understood, if a context is first added to the mailbox.module_contexts array using the mail_storage_module_register and then a context is added to the mail_storage.module_contexts and then a third context is again added to the m...
2010 Nov 26
1
Mailbox Delete
...mail_namespace *namespaces, const char *name) { struct mail_namespace *ns; struct mailbox *box; ns = mail_namespace_find(namespaces, &name); if (ns != NULL){ box = mailbox_alloc(ns->list, name, 0); if (mailbox_delete(box) < 0) { struct mail_storage *storage = mailbox_get_storage(box); i_error("Can't delete mailbox %s: %s", name,mail_storage_get_last_error(storage, NULL)); } if (mailbox_mark_index_deleted(box, TRUE) < 0){ struct mail_storage *storage = mailbox_get_storage...
2011 Nov 16
0
How to do SEARCH with doveadm
...test 2.1 beta version of Dovecot to be sure I use the freshest approach in search (and plan to use Solr FTS as well). The setup is each, I use passdb { driver = passwd-file args = /etc/dovecot/auth/%Lu } and userdb { driver = static args = uid=dovecot gid=dovecot home=/MAIL/mail_storage/%Lu } and put user:password pair in file named after my mailbox in /etc/dovecot/auth/ (let's name it test at domain.com), and the messages are at /MAIL/mail_storage/test at domain.com/... While I use it from IMAP client it works nicely. Ok, I put somewhat 5800 messages in INBOX, and IMAP p...
2007 Aug 24
3
Plugin development question
Hello, >From what I have read on the dovecot site, it's possible to create a plugin for a custom data store format. We have emails in a custom format in a database and would like to create a plugin for accessing these emails through dovecot. Is there any supporting documentation from creating a plugin like this? Are there any samples? TIA, Gary
2009 Mar 24
2
Dbox Upgrade Problem With MAILBOXDIR
...to ":MAILBOXDIR=mailboxes" when using dbox. Current configuration is "mail_location = dbox:~/Mail" so what exactly should be changed here? (gdb) bt full #0 0x08093546 in dbox_get_list_settings (list_set=0xafe33244, data=0xafe34e33 "/home/USER/Mail", flags=MAIL_STORAGE_FLAG_NO_AUTODETECTION, layout_r=0xafe331e0, alt_dir_r=0xafe331dc, error_r=0xafe33304) at dbox-storage.c:76 subs_fname = 0x810fd7c "subscriptions" debug = false #1 0x08093615 in dbox_create (_storage=0x9405d08, data=0xafe34e33 "/home/USER/Mail", error_r=0xafe33304)...
2014 Jul 28
2
not able to compile deleted_to_trash Plugin
...; ^ In file included from /usr/include/dovecot/mail-storage-private.h:7:0, from deleted-to-trash-plugin.h:5, from deleted-to-trash-plugin.c:2: /usr/include/dovecot/mail-storage.h:479:5: note: expected 'struct mailbox *' but argument is of type 'struct mail_storage **' int mailbox_open(struct mailbox *box); ^ deleted-to-trash-plugin.c:79:2: error: too many arguments to function 'mailbox_open' box = mailbox_open(&storage, name, NULL, MAILBOX_OPEN_FAST | MAILBOX_OPEN_KEEP_RECENT | MAILBOX_OPEN_NO_INDEX_FILES); ^ In file included from /...
2010 Jun 15
0
Anti-Spam Plugin! dovecot beta6
...ng: its scope is only this > definition or declaration, which is probably not what you want > /usr/include/dovecot/imap-search.h:50: warning: 'enum mail_sort_type' > declared inside parameter list > In file included from debug.c:5: > antispam-plugin.h:72: warning: 'struct mail_storage' declared inside > parameter list > antispam-plugin.h:73: warning: 'struct mail_storage' declared inside > parameter list > antispam-plugin.h:87:5: error: token ""2.0.beta6"" is not valid in > preprocessor expressions > antispam-plugin.h:92:25: erro...
2010 Jul 29
1
Patch: New event "mailbox_create" for the mail_log plugin
...MAIL_LOG_EVENT_MAILBOX_CREATE) static const char *field_names[] = { "uid", @@ -71,6 +73,7 @@ "mailbox_rename", "flag_change", "append", + "mailbox_create", NULL }; @@ -597,6 +600,22 @@ return 0; } +static int +mail_log_mailbox_create(struct mail_storage *storage, const char *name, + bool directory) +{ + union mail_storage_module_context *lstorage = MAIL_LOG_CONTEXT(storage); + + if (lstorage->super.mailbox_create(storage, name, directory) < 0) + return -1; + + if ((mail_log_set.events & MAIL_LOG_EVENT_MAILBOX_CREATE) == 0) + re...
2014 Jun 02
0
Dovecot 2.1.13: some questions about the mail-filter plugin
Looking at mail_filter_mailbox_allocated() of src/plugins/mail-filter/mail-filter-plugin.c: if ((class_flags & MAIL_STORAGE_CLASS_FLAG_OPEN_STREAMS) == 0 && (class_flags & MAIL_STORAGE_CLASS_FLAG_BINARY_DATA) != 0 && muser->out_socket_path != NULL) v->save_begin = mail_filter_mail_save_begin; it seems that a backend with MAIL_STORAGE_CLASS_FLAG_OPEN_STREAMS unset and MAIL_STORAG...
2007 Mar 15
5
[PATCH 0/5] fix gcc warnings in CVS HEAD
Hi, I have rewritten the patches I submitted earlier today for the CVS HEAD. Some of the changes were already committed months ago. On 2007/03/15 12:30, Timo Sirainen <tss at iki.fi> wrote: > That's ok, but I'm not sure about bsearch_insert_pos(). It's the way it > is mostly because I wanted to keep bsearch() API. If it can't return > void * then maybe it could be
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
2008 Sep 09
1
1.1.3: imap crashes with SIGSEGV
...mail_index_open (index=0x87b3098, flags=49, lock_method=FILE_LOCK_METHOD_FCNTL) at mail-index.c:354 ret = <value optimized out> __PRETTY_FUNCTION__ = "mail_index_open" #7 0x080a14dc in index_storage_mailbox_open (ibox=0x87c6248) at index-storage.c:383 storage = (struct mail_storage *) 0x87aacc0 index_flags = 49 ret = <value optimized out> __PRETTY_FUNCTION__ = "index_storage_mailbox_open" #8 0x08070bbb in maildir_open (storage=0x87aacc0, name=0x87af6ee "Drafts", flags=0) at maildir-storage.c:448 mbox = (struct maildir_mailbox *) 0x87c6248...
2006 Feb 18
2
"undefined reference to `yes_storage'"
...index.a ../lib-storage/libstorage.a ../lib-storage/subscription-file/libstorage_subscription_file.a ../lib-imap/libimap.a ../lib-mail/libmail.a ../lib-dict/libdict.a ../lib-charset/libcharset.a ../lib/liblib.a -ldl ../lib-storage/register/libstorage-register.a(mail-storage-register.o): In function `mail_storage_register_all': /usr2/www/linux-related/servers/dovecot-1.0.beta3/src/lib-storage/register/m ail-storage-register.c:6: undefined reference to `yes_storage' collect2: ld returned 1 exit status
2012 Apr 26
2
LDA crashes on delivery (using sieve)
...= false, save_dest_mail = false, mailbox_full = false, dsn = false} service_flags = 1027 user = (const __unknown__ *) 0x7fffffffebcc "test at example.com" errstr = (const __unknown__ *) 0x0 path = (const __unknown__ *) 0x0 storage_service = (struct mail_storage_service_ctx *) 0x800a30840 service_user = (struct mail_storage_service_user *) 0x800a3c0a0 service_input = {module = 0x403567 "lda", service = 0x403567 "lda", username = 0x7fffffffebcc "test at example.com", session_id = 0x0, local_ip = {family = 0, u =...
2010 Jul 20
1
imap core dumping on signal 10
...l/src/dovecot/dovecot-1.2.12/src/lib-index//mail-index.c:365 ret = 1969648384 ret = 1443536 created = false #3 0x00089c34 in index_storage_mailbox_open (ibox=0x600) at /usr/local/src/dovecot/dovecot-1.2.12/src/lib-storage/index//index-storage.c:406 storage = (struct mail_storage *) 0x15ad18 index_flags = 17 ret = 565312 cache = (struct mail_cache *) 0x0 cache_env = 0x0 never_env = 0x4000000 <Address 0x4000000 out of bounds> env = 0x100001 "" ---Type <return> to continue, or q <return> to quit--- #...
2008 Feb 20
1
dovecot: child 53439 (imap) killed with signal 11
...list_iter_next_rec" #1 0x000000000043461a in maildir_uidlist_write_fd (uidlist=0x64a000, fd=9, path=0x612a80 "/home/batesst/Maildir/dovecot/private/control/.INBOX/dovecot-uidlist", first_idx=56, file_size_r=0x7fffffffdf30) at maildir-uidlist.c:936 storage = (struct mail_storage *) 0x60a848 iter = (struct maildir_uidlist_iter_ctx *) 0x647120 output = (struct ostream *) 0x64a268 rec = (struct maildir_uidlist_rec *) 0x0 str = (string_t *) 0x602060 p = (const unsigned char *) 0x7fffffffdee0 "\200*a" len = 0 ret...
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...53,6 +53,7 @@ client->command_pool = pool_alloconly_create(MEMPOOL_GROWING"client command", 2048); client->user = user; + client->submit = getenv("SUBMIT_USER") != NULL; /* APPLE - urlauth */ for (ns = user->namespaces; ns != NULL; ns = ns->next) { mail_storage_set_callbacks(ns->storage, @@ -225,6 +226,10 @@ if (client->output->closed) return -1; + /* APPLE - urlauth */ + if (client->output_squelch) + return 1; + iov[0].iov_base = data; iov[0].iov_len = strlen(data); iov[1].iov_base = "\r\n"; @@ -250,6 +255,10 @@ if (...
2007 Jan 05
2
Dovecot rc15 crash in mbox-sync-update.c
...dx_seq = 433948, need_space_seq = 563200, expunged_space = -18024225394221448, space_diff = 2418925581670400, dest_first_mail = 0, first_mail_crlf_expunged = 0, delay_writes = 0} seq = 32386076 offset = 2516850835456 lock_id = 4294967295 ret = 788928 changed = 753960 #8 0x00069f24 in mail_storage_class_register (storage_class=0xb8128) at mail-storage.c:42 No locals. #9 0x00028fe0 in imap_sync_deinit (ctx=0xc09c0) at imap-sync.c:83 status = {messages = 706560, recent = 705536, unseen = 0, uidvalidity = 0, uidnext = 753216, first_unseen_seq = 0, keywords = 0x3e7} #10 0x00021248 in cm...
2012 Jan 11
2
(no subject)
...ng from other plugins and editing appropriately, I've also created the skeleton for my plugin: Makefile, docs, conf snippet, .spec (I'll be deploying the plugin as an RPM), and so on. I've got the beginnings of the .h and .c written, just enough to init and deinit the plugin by calling mail_storage_hooks_{add,remove}() with some stub hook functions. This all seems good so far; test builds are error-free and seem sane. So now the hard part is writing the piece that I can't just crib from elsewhere -- making sure that I hook every place in Dovecot that the user's voicemail folder can...