Writing directly to email
Ken Murchison
ken at oceana.com
Wed Apr 28 21:17:32 EDT 2004
noel at rescommunes.ca wrote:
> I was wondering if it was at all possible to pipe text form something like
> logging into an email file with out screwing things up for Cyrus.
>
> For example, say i have a crown tab that appends new mail.err data to the
> file /var/spool/imap/m/user/me/1. with just simple stdout redirection >>.
>
> And what about properly inserted mime encoded info or just completely
> rewriting an email file all together?
>
> I realize that this is maybe a bad choice of tools. But, I am curious
> about the possibility. I think it would be incredibly useful/simple tool
> for myself.
Two problems with this:
1. How do you know what UID you can use for the message? A imapd/lmtpd
process might already be in the process of creating a message with the
UID that you select (unless you select one a lot higher that the last in
the mailbox)
2. Any message file that you create will not be seen by any client
unless you run reconstruct on the mailbox.
Cyrus is designed so that any/all interactions with the mailstore take
place in-protocol (IMAP, POP3, LMTP, NNTP)
--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26 Orchard Park, NY 14127
--PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus
mailing list