Discussion:
Delivery to IMAP server
Charles Cazabon
2008-12-27 17:12:20 UTC
Permalink
Need to fetch messages from an IMAP sub-folder from an account on a remote
IMAP server and deliver the messages to another account on a different
remote IMAP server.
Delivering *to* an IMAP server? Do you mean by establishing a new IMAP
connection and using the IMAP APPEND command? No, getmail won't do that.

If you mean delivering to the new server by SMTP, that's an MTA's job.
getmail *can* hand a message off to an MTA to do this, but you need to be
really careful to avoid creating bad bounces and other delivery problems for
other postmasters -- if you know enough to do this safely, you don't need my
help in figuring out how to have getmail hand messages to an MTA.

Charles
--
-----------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at: http://pyropus.ca/software/
-----------------------------------------------------------------------
Charles Cazabon
2008-12-28 01:22:30 UTC
Permalink
On 27 Dec 2008 11:12:20 -0600
Post by Charles Cazabon
Need to fetch messages from an IMAP sub-folder from an account on a remote
IMAP server and deliver the messages to another account on a different
remote IMAP server.
Delivering *to* an IMAP server? Do you mean by establishing a new IMAP
connection and using the IMAP APPEND command? No, getmail won't do that.
That is exactly what I mean. I know that getmail won't do that. What I'm
asking is how difficult would it be for someone not fully versed in python to
add that functionality?
I'm not sure how intelligent an answer can be provided to that. The tough
part of any programming challenge is integration and handling of errors/edge
cases; the writing of the code to do the basic naive job is usually quite
simple.

Charles
--
-----------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at: http://pyropus.ca/software/
-----------------------------------------------------------------------
Loading...