PDA

View Full Version : How to setup getmail to download just some emails of an account...


voltron81
2nd December 2009, 10:43
Hi to everybody.
In a local mailserver I've configured getmail to fetch emails from the main mailserver.
The problem is that the local mailserver has a very slow connection, so I want to be able to check in the main mailserver the emails received from michele@michele.com(I think I'll check with a POP3 connection) and after I want to deceide which email I want to donwload and which one not.
With a POP3 connection to the main mailserver I should be able to read the ID of emails.
So there is a way in getmail to download just an email with that ID?

Thanks
Michele

falko
3rd December 2009, 17:08
To be honest, I don't know. Did you take a look at the getmail man page?
man getmail

voltron81
8th December 2009, 11:40
Hi Falko,
I had a look at the manual of getmail, but I didn't find anything that is matching to what I need.
Googleling a bit, I've found that there is getmail_fetch that can be used in a script to fetch the emails, but at the moment I've not find a command that can say to getmail to get just the email with the ID ABCD1234.

Any idea?

Thanks
Michele

voltron81
8th December 2009, 12:25
It's look like fetchmail have an option --uidl, but I can not find the same option in getmail also...
I really don't want to come back to fetchmail...

:eek: