Re: downloading by date range
[email protected] Sat, 27 Jan 2024 14:01:25 +0000
| Newsgroups | gmane.mail.fetchmail.user |
|---|---|
| Message-ID | <[email protected]> |
OK, part way there.... On 22/01/2024 12:41, Mihai Lazarescu wrote: > On Monday, January 22, 2024 at 10:54:07 +0000, graeme vetterlein: > >> I'd like to setup something for the whole household (Family) as I >> know for a >> fact they never organise their historic email :-) and I don't want >> their junk >> using my whole allocation > > I'm a mutt user :-) and I'm pretty sure that it allows creating a > script that automatically selects, deletes and purges messages older > than 1 year (~d >1y) for each account in sequence, which you can then > run periodically (interactively or cron). > So I think I plan to knock up a small python script that runs monthly and just deletes any mail older than 12 months. Working it though it however leaves another little "kink" ... 1: I download inbox say once a day (with --keep) 2: I run the delete python script once a month (leaves a year online) So now I have 12 months online and everything up to today on "local" (e.g. /var/mail/myuser) If I want to send *while I'm at home*, I use a *local SMTP* server and a copy of the outgoing mail gets saved in local-IMAPed-directory/Sent While I'm "on the road" I can view recent (year) mails via imap to "online provider". However if I send an email, while I'm out I'll need to use online_provider.SMTP a copy will need to be saved in online_provider-IMAPed-directory/Sent So my *outgoing mail is saved in 2 different places* depending on where I was when I sent it. The obvious solution would be to run fetchmail+imap on online_provider-IMAPed-directory/Sent ... However, this seems odd, for example, what would I do with it? If I pass it to local sendmail its going to send it to the original "TO:" header again ... when really it just needs to go into ~/mail/Sent (or similar) . If it's not going though sendmail, then I really should be doing some locking? (now I know "Sent" is a function of the MUA (Thunderbird) not the MTA ..but while I'm out of the house ~/mail/Sent is inaccessible . (while online_provider-IMAPed-directory/Sent is available) -- Graeme _______________________________________________ Fetchmail-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fetchmail-users