I need for my dovecot-uidlist to be updated with next id when new email arrives
(moved from new/ to cur/).
This only happens now when I check for new email with my client.
Setting maildir_empty_new = yes is not working. Do I have to uncomment something
else as well maybe?
I want to do some proemial pipe lets say for 10 emails. All of them will have
same UID since dovecot-uidlist is not updated.
I am suing 2.2.13 dovecot on Gentoo 64bit.
This is my dovecot -n:
# 2.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.16.5-gentoo x86_64 Gentoo Base System release 2.2
auth_mechanisms = plain login digest-md5
first_valid_gid = 500
last_valid_gid = 2000
last_valid_uid = 2000
login_greeting = Santa server is ready.
mail_gid = vmail
mail_location = /var/vmail/%d/%n/:INDEX=/var/vmail/%d/%n/indexes
mail_uid = vmail
maildir_empty_new = yes
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy
include variables body enotify environment mailbox date ihave duplicate
namespace inbox {
inbox = yes
location mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix }
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
sieve = ~/.dovecot.sieve
sieve_dir = ~/sieve
}
service auth-worker {
user = vmail
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
unix_listener auth-userdb {
group = vmail
mode = 0666
user = vmail
}
}
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
group = postfix
mode = 0666
user = postfix
}
}
ssl_ca = </etc/ssl/dovecot/server.in.crt
ssl_cert = </etc/ssl/dovecot/server.csr.rapid
ssl_key = </etc/ssl/dovecot/server.key.rapid
ssl_key_password = notshown
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
--
Nikola Derikonjic
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 3 Dec 2014, Nikola Derikonjic wrote:> I need for my dovecot-uidlist to be updated with next id when new email arrives (moved from new/ to cur/).Er, first of all: "when new email arrives" != "moved from new/ to cur/"> This only happens now when I check for new email with my client.This is "moved from new/ to cur/", for that you need a IMAP/POP-connection> Setting maildir_empty_new = yes is not working. Do I have to uncomment something else as well maybe?So, anything is correct.> I want to do some proemial pipe lets say for 10 emails. All of them will have same UID since dovecot-uidlist is not updated.OK, here you seem to access the message outside any IMAP/POP-connection on filesystem-level and you want the uid bumped up, "when new email arrives", meaning when the LDA drops the message in the Maildir. How do you deliver the messages with the LDA of your MTA or Dovecot? I guess, you do not use Dovecot LDA or LMTP?> I am suing 2.2.13 dovecot on Gentoo 64bit. > > This is my dovecot -n: > > # 2.2.13: /etc/dovecot/dovecot.conf > # OS: Linux 3.16.5-gentoo x86_64 Gentoo Base System release 2.2 > auth_mechanisms = plain login digest-md5 > first_valid_gid = 500 > last_valid_gid = 2000 > last_valid_uid = 2000 > login_greeting = Santa server is ready. > mail_gid = vmail > mail_location = /var/vmail/%d/%n/:INDEX=/var/vmail/%d/%n/indexes > mail_uid = vmail > maildir_empty_new = yes > managesieve_notify_capability = mailto > managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave duplicate > namespace inbox { > inbox = yes > location > mailbox Drafts { > special_use = \Drafts > } > mailbox Junk { > special_use = \Junk > } > mailbox Sent { > special_use = \Sent > } > mailbox "Sent Messages" { > special_use = \Sent > } > mailbox Trash { > special_use = \Trash > } > prefix > } > passdb { > args = /etc/dovecot/dovecot-sql.conf.ext > driver = sql > } > plugin { > sieve = ~/.dovecot.sieve > sieve_dir = ~/sieve > } > service auth-worker { > user = vmail > } > service auth { > unix_listener /var/spool/postfix/private/auth { > group = postfix > mode = 0666 > user = postfix > } > unix_listener auth-userdb { > group = vmail > mode = 0666 > user = vmail > } > } > service lmtp { > unix_listener /var/spool/postfix/private/dovecot-lmtp { > group = postfix > mode = 0666 > user = postfix > } > } > ssl_ca = </etc/ssl/dovecot/server.in.crt > ssl_cert = </etc/ssl/dovecot/server.csr.rapid > ssl_key = </etc/ssl/dovecot/server.key.rapid > ssl_key_password = notshown > userdb { > args = /etc/dovecot/dovecot-sql.conf.ext > driver = sql > } > >- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBVIAY+nz1H7kL/d9rAQJocwgAnauUEKWe4ICZX0wtR5XhrMvb6KK/9vqO UtpSJ4xYceJajdqXVbmVWGIaF+0j5O+hp2a+/c9XCRrjCsTxNBfMddPudJZnYdSx fASuk29gcdk3F5tA/ZJY4E9v76tmwbkXgc+DPU1WZLN7I0m/0vcsOJxonu7Ew8FQ 4C+ZW8xIwB0ZWLfoti7PhhwkpNHA7sJ2e1mGVB1LkyqF+GguWmqiyIy9F1iOIi6u 0dxtb4IUAzOTzb4TPXoH4k0lAnuOLbWa/SeZFYRun6MrKFhtd3kPT7eH/h5teTj/ MaGeIC1m0i2l/6EogbSCn7p4Eo38iPTZng2Yx4FInDTHdRb/4b51sA==VcSk -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 4 Dec 2014, Steffen Kaiser wrote:> On Wed, 3 Dec 2014, Nikola Derikonjic wrote: > >> I need for my dovecot-uidlist to be updated with next id when new email >> arrives (moved from new/ to cur/). > > Er, first of all: > > "when new email arrives" != "moved from new/ to cur/" > >> This only happens now when I check for new email with my client. > > This is "moved from new/ to cur/", for that you need a IMAP/POP-connection > >> Setting maildir_empty_new = yes is not working. Do I have to uncomment >> something else as well maybe? > > So, anything is correct. > >> I want to do some proemial pipe lets say for 10 emails. All of them will >> have same UID since dovecot-uidlist is not updated. > > OK, here you seem to access the message outside any IMAP/POP-connection on > filesystem-level and you want the uid bumped up, "when new email arrives", > meaning when the LDA drops the message in the Maildir. How do you deliver > the messages with the LDA of your MTA or Dovecot? I guess, you do not use > Dovecot LDA or LMTP?Oh, there is: http://wiki2.dovecot.org/Tools/Doveadm/Index, too. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBVIAZ0nz1H7kL/d9rAQKbdgf8DKxOM5NS/NwFqUlCy/Ir4WsArFhqj0up W6uqBuJ15FBJBRaQp5noiHy7C7IKFmJHaHnp2ae6rQv5DdzwC4/kGNosGAw9CkwB kxqtgVJZg24/sCjLKWItpAa1A6IutwAKXgD9wsZ5697WMoF67e1GJZS9NpgMRIUs PJ5Nry2NK7kquOzGBHkE/SrJSq2eYSli2UBu4sZoUdLJ5xMoIZqCWM1wOI371PNR bt/5Nlveb7VcUhWHjA+AHe6R4UlBU2/cqhgeR21ehuJvISEZpdPZi4QfyyDv1+Hs GvqDZkPd0tuooVrlduN7ICtdFdYwvE0JByZh5IWB+PtnMFWTDHh9bA==TGyw -----END PGP SIGNATURE-----