[Dovecot] get the messages ID after APPEND

Christian Fischer mail at computerdichter.de
Fri Apr 16 16:37:45 EEST 2010


Hi there!

I am new to imap "Command Line" and trying to write a script doing the 
following on a dovecot imap server:
- APPEND a message (e.g. to Drafts)
- get the ID to reopen the message for reading

In short: How do i get the ID back from the APPEND command or which 
command has to be invoked to get the uid of the newly added message?


Thank you!

Christian

-----------------

dovecot --version
1.0.15

dovecot -n
# 1.0.15: /etc/dovecot/dovecot.conf
log_timestamp: %Y-%m-%d %H:%M:%S
ssl_cert_file: /etc/postfix/tls/mail.cert
ssl_key_file: /etc/postfix/tls/mail.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_privileged_group: mail
mail_location: maildir:%h/.EMAIL
auth default:
  mechanisms: plain login
  passdb:
    driver: pam
  userdb:
    driver: passwd
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/auth
      mode: 432
      user: postfix
      group: postfix



More information about the dovecot mailing list