Fetchmail/Procmail with mixed IMAP/POP3
Hi, A marathon of posts today. All the below refers to a Suse 8.2 machine. I am running Fetchmail to grab mail from two accounts; one is an IMAP account and one a POP3 account. Once I get it from fetchmail, it gets sent to procmail, which then does what it does and forwards the messages to the appropriate user mailbox. Has that just destroyed the IMAP-ness of the mail fetched from the IMAP account? How can I make my MUA (KMAIL) see that this is IMAP mail and synchronize with the server? Sorry if this is vague, and thanks in advance nick --
In a previous message, Nick Selby
Has that just destroyed the IMAP-ness of the mail fetched from the IMAP account? How can I make my MUA (KMAIL) see that this is IMAP mail and synchronize with the server?
Yes. You need to remove the IMAP server from your fetchmail config and create an IMAP account in KMail. John -- John Pettigrew Headstrong Games john@headstrong-games.co.uk Fun : Strategy : Price http://www.headstrong-games.co.uk/ Board games that won't break the bank Valley of the Kings: ransack an ancient Egyptian tomb but beware of mummies!
On Mon, Dec 15, 2003 at 05:48:16PM +0100 or thereabouts, Nick Selby wrote: ,
I am running Fetchmail to grab mail from two accounts; one is an IMAP account and one a POP3 account. Once I get it from fetchmail, it gets sent to procmail, which then does what it does and forwards the messages to the appropriate user mailbox.
Has that just destroyed the IMAP-ness of the mail fetched from the IMAP account?
no. POP3 and IMAP are services.. that's all. If you are using fetchmail, you are using it as POP3, not IMAP.
How can I make my MUA (KMAIL) see that this is IMAP mail and synchronize with the server?
You have to set up Kmail for 2 specific services, even if it is the same mail account, one being POP3, and the other being IMAP(S).
Sorry if this is vague, and thanks in advance
yes, you did not specify what IMAP server you are using, if in fact you are using a server.. . Do you have these services running on your machine, or do you go outside, e.g. another commerical account like myrealbox.com ? IMAP and POP3 can be used for the same mail account, you just have to set up your MUA for both type services... an IMAP service will add some individual files, e.g. uidvalidity, subscribed, and cache files, but that will just be there. POP3 will not read these files, and just download your email.. -- Gary Chaos, panic, pandemonium - my work here is done
Hi, A marathon of posts today. All the below refers to a Suse 8.2 machine.
I am running Fetchmail to grab mail from two accounts; one is an IMAP account and one a POP3 account. Once I get it from fetchmail, it gets sent to procmail, which then does what it does and forwards the messages to the appropriate user mailbox.
Has that just destroyed the IMAP-ness of the mail fetched from the IMAP account? How can I make my MUA (KMAIL) see that this is IMAP mail and synchronize with the server?
By NOT retrieving the email with fetchmail. Ken Schneider
Right, That was indeed the question. But in the man fetchmail it says, "The fetchmail program can gather mail from servers supporting any of the common mail-retrieval protocols: POP2, POP3, IMAP2bis, IMAP4, and IMAPrev1." Regarding which type of IMAP, man fetchmail says, IMAP IMAP2bis, IMAP4, or IMAP4rev1 (fetchmail autodetects their capabilities). So, Is the deal that fetchmail can "gather" the mail from my IMAP server but once it has gathered it and delivered it to procmail, it's deleted from the server? Can anyone suggest some more documentaiton I can have a look at (or, if you're up for it, just explain to me how the heck this is supposed to work? )? Thanks in advance, Nick On Monday 15 December 2003 18:54, Ken Schneider wrote:
Hi, A marathon of posts today. All the below refers to a Suse 8.2 machine.
I am running Fetchmail to grab mail from two accounts; one is an IMAP account and one a POP3 account. Once I get it from fetchmail, it gets sent to procmail, which then does what it does and forwards the messages to the appropriate user mailbox.
Has that just destroyed the IMAP-ness of the mail fetched from the IMAP account? How can I make my MUA (KMAIL) see that this is IMAP mail and synchronize with the server?
By NOT retrieving the email with fetchmail.
Ken Schneider
-- ---------------------------- Nick Selby NOTE NEW US Mobile: +1 347 804 4410 Germany: +49 89 2737 4527 *Currently in: MUNICH*
Alle 19:12, lunedì 15 dicembre 2003, Nick Selby ha scritto:
Right, That was indeed the question. But in the man fetchmail it says,
"The fetchmail program can gather mail from servers supporting any of the common mail-retrieval protocols: POP2, POP3, IMAP2bis, IMAP4, and IMAPrev1."
Regarding which type of IMAP, man fetchmail says,
IMAP IMAP2bis, IMAP4, or IMAP4rev1 (fetchmail autodetects their capabilities).
So, Is the deal that fetchmail can "gather" the mail from my IMAP server but once it has gathered it and delivered it to procmail, it's deleted from the server? Can anyone suggest some more documentaiton I can have a look at (or, if you're up for it, just explain to me how the heck this is supposed to work? )?
man fetchmail. If you use fetchmail -keep messages are not deleted from the server, if that is what you want.
Thanks in advance, Nick
Praise
On Tuesday 16 December 2003 15:24, praisetazio wrote:
Alle 19:12, lunedì 15 dicembre 2003, Nick Selby ha scritto:
Right, That was indeed the question. But in the man fetchmail it says,
"The fetchmail program can gather mail from servers supporting any of the common mail-retrieval protocols: POP2, POP3, IMAP2bis, IMAP4, and IMAPrev1."
Regarding which type of IMAP, man fetchmail says,
IMAP IMAP2bis, IMAP4, or IMAP4rev1 (fetchmail autodetects their capabilities).
So, Is the deal that fetchmail can "gather" the mail from my IMAP server but once it has gathered it and delivered it to procmail, it's deleted from the server? Can anyone suggest some more documentaiton I can have a look at (or, if you're up for it, just explain to me how the heck this is supposed to work? )?
man fetchmail. If you use fetchmail -keep messages are not deleted from the server, if that is what you want.
Thanks. However I am looking to also delete messages from the server when they are deleted locally; basically I am getting the sense that IMAP won't be fully functional if fetchmail sits between the IMAP server and my mail client/? -- ---------------------------- Nick Selby NOTE NEW US Mobile: +1 347 804 4410 Germany: +49 89 2737 4527 *Currently in: MUNICH*
On Tue, Dec 16, 2003 at 06:54:49PM +0100 or thereabouts, Nick Selby wrote:
On Tuesday 16 December 2003 15:24, praisetazio wrote:
Alle 19:12, lunedì 15 dicembre 2003, Nick Selby ha scritto:
Right, That was indeed the question. But in the man fetchmail it says,
"The fetchmail program can gather mail from servers supporting any of the common mail-retrieval protocols: POP2, POP3, IMAP2bis, IMAP4, and IMAPrev1."
Regarding which type of IMAP, man fetchmail says,
IMAP IMAP2bis, IMAP4, or IMAP4rev1 (fetchmail autodetects their capabilities).
So, Is the deal that fetchmail can "gather" the mail from my IMAP server but once it has gathered it and delivered it to procmail, it's deleted from the server? Can anyone suggest some more documentaiton I can have a look at (or, if you're up for it, just explain to me how the heck this is supposed to work? )?
man fetchmail. If you use fetchmail -keep messages are not deleted from the server, if that is what you want.
Thanks. However I am looking to also delete messages from the server when they are deleted locally; basically I am getting the sense that IMAP won't be fully functional if fetchmail sits between the IMAP server and my mail client/?
That is correct. IMAP is designed to leave meesages on the server, where POP3 is designed to download your mail from the server. IMAP protocol calls for a 2 step process for deletion of mail, it is first marked for deletion, and then it must be expunged, If it is not expunged, it truly is not deleted, but just marked for deletion. I am sure this is not done using fetchmail, as there is no mechanism for expungement. It is done by using a MUA that supports IMAP, e.g. Kmail, Mutt, Mulberry, etc.. Please see the IMAP RFC 2060, starting with section 2.3.1.2 and 4.x -- Gary Chaos, panic, pandemonium - my work here is done
Great explanation, thank you!! On Tuesday 16 December 2003 19:42, Gary wrote:
On Tue, Dec 16, 2003 at 06:54:49PM +0100 or thereabouts, Nick Selby wrote:
On Tuesday 16 December 2003 15:24, praisetazio wrote:
Alle 19:12, lunedì 15 dicembre 2003, Nick Selby ha scritto:
Right, That was indeed the question. But in the man fetchmail it says,
"The fetchmail program can gather mail from servers supporting any of the common mail-retrieval protocols: POP2, POP3, IMAP2bis, IMAP4, and IMAPrev1."
Regarding which type of IMAP, man fetchmail says,
IMAP IMAP2bis, IMAP4, or IMAP4rev1 (fetchmail autodetects their capabilities).
So, Is the deal that fetchmail can "gather" the mail from my IMAP server but once it has gathered it and delivered it to procmail, it's deleted from the server? Can anyone suggest some more documentaiton I can have a look at (or, if you're up for it, just explain to me how the heck this is supposed to work? )?
man fetchmail. If you use fetchmail -keep messages are not deleted from the server, if that is what you want.
Thanks. However I am looking to also delete messages from the server when they are deleted locally; basically I am getting the sense that IMAP won't be fully functional if fetchmail sits between the IMAP server and my mail client/?
That is correct. IMAP is designed to leave meesages on the server, where POP3 is designed to download your mail from the server. IMAP protocol calls for a 2 step process for deletion of mail, it is first marked for deletion, and then it must be expunged, If it is not expunged, it truly is not deleted, but just marked for deletion. I am sure this is not done using fetchmail, as there is no mechanism for expungement. It is done by using a MUA that supports IMAP, e.g. Kmail, Mutt, Mulberry, etc..
Please see the IMAP RFC 2060, starting with section 2.3.1.2 and 4.x
-- Gary Chaos, panic, pandemonium - my work here is done
-- ---------------------------- Nick Selby NOTE NEW US Mobile: +1 347 804 4410 Germany: +49 89 2737 4527 *Currently in: MUNICH*
On Tue, Dec 16, 2003 at 08:13:08PM +0100 or thereabouts, Nick Selby wrote:
Great explanation, thank you!!
On Tuesday 16 December 2003 19:42, Gary wrote:
That is correct. IMAP is designed to leave messages on the server, where POP3 is designed to download your mail from the server. IMAP protocol calls for a 2 step process for deletion of mail, it is first marked for deletion, and then it must be expunged, If it is not expunged, it truly is not deleted, but just marked for deletion. I am sure this is not done using fetchmail, as there is no mechanism for expungement. It is done by using a MUA that supports IMAP, e.g. Kmail, Mutt, Mulberry, etc..
Please see the IMAP RFC 2060, starting with section 2.3.1.2 and 4.x
You are welcome. If you just remember, when using an IMAP account, that to hit the delete button is not enough, as that just marks it for deletion, but you have to expunge it to literally remove it. This expunge feature is somewhere in the MUA you are using, as they are all different. Most good MUAs for IMAP will be able to filter mail from your INBOX to other folders that you can make and filter to them also on the IMAP server. . -- Gary
The Tuesday 2003-12-16 at 18:54 +0100, Nick Selby wrote:
So, Is the deal that fetchmail can "gather" the mail from my IMAP server but once it has gathered it and delivered it to procmail, it's deleted from the server?
Exactly.
man fetchmail. If you use fetchmail -keep messages are not deleted from the server, if that is what you want.
Thanks. However I am looking to also delete messages from the server when they are deleted locally; basically I am getting the sense that IMAP won't be fully functional if fetchmail sits between the IMAP server and my mail client/?
Then, fetchmail is not the tool you want. It fetches mail from the remote server, _moving_ it to your local server. Then you can store it, resend, make it available to your own pop/imap server, whatever. But it is no longer on your remote server. If you tell it to keep them, it will do so, but it is then your problem to remove them by some other means. If you want a synchronized local mail box with the remote server, then you have to use a mail client that supports imaps, and use it instead of fetchmail/procmail/etc. -- Cheers, Carlos Robinson
participants (8)
-
Carlos E. R.
-
Gary
-
Gary
-
Gary
-
John Pettigrew
-
Ken Schneider
-
Nick Selby
-
praisetazio