Comments (19)
from fdm.
does cache work with imap?
from fdm.
from fdm.
i did a dirty thing, i made a separate account identical with
the normal, except with only-old
instead of only-new
and
disabled it. and then i used
age > %keepdays days action drop
so now i can explicitly purge old msgg from the server every now
and then; but this isn't exacly ideal.
from fdm.
ok, i got the impression from the man page that caching only worked with pop
from fdm.
from fdm.
from fdm.
i see. but how do i get the message id?
from fdm.
from fdm.
this doesn't seem to be a very good solution, since some messages have no id. also, doesn't fdm have to download the messages first to check their id?
the solution i mentioned about works, but i wish i didn't have to define the same account twice.
from fdm.
something like getmail's delete_after option would be ideal.
from fdm.
from fdm.
but some have a msg id = ""
, right? i tried "keeping" all msgg with non-empty ids whose id were already in the cache, but there was one message with no id in the header, which reappeared in my spool every time i ran fdm.
i don't know how only-new works, or getmail's delete_after, but it would seem that something there could be exploited.
from fdm.
from fdm.
it's a ticket receipt from a metro company.
from fdm.
from fdm.
all right. this is what i do now. it doesn't have the
disadvantage of having to fetch everything every time, but my
ocd doesn't like the duplication of account information.
set unmatched-mail keep
$base = "%h/mail"
$eo = "${base}/pr"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
action "sus" { maildir "${eo}/sus" keep }
account "#####"
imaps server "#####.###"
user "#####@#####.###"
pass $(pass #####.###/#####)
new-only
match account "#####" {
match "^To:.*#####@#####.###" in headers
action { maildir "${eo}/dap" keep }
match attachment any-type "text/html" and not
attachment any-type "text/plain"
action "sus"
match all action { maildir "${eo}/spool" keep }
}
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
%keepdays = 14
account "#####-purge" disabled
imaps server "#####.###"
user "#####@#####.###"
pass $(pass #####.###/#####)
old-only
match account "#####-purge" and
age > %keepdays days action drop
are you in princple against something like getmail's delete_after?
from fdm.
i have assumed that only-new
doesn't actually download old
messages. is that right?
if not --if you have to download to check--, would it be
possible to have old condition for use in rules? you could then
process the new and delete the old, if sufficiently old.
from fdm.
from fdm.
Related Issues (20)
- Can you add a description and topics in this repository? HOT 1
- How to "hook" existing actions? HOT 5
- Verbose debugging, what message was received and where was it filed? HOT 4
- No license? HOT 2
- new release with oauth2 HOT 5
- OAuth2 renewal, initial authorization
- Has anyone tested fdm with outlook? HOT 3
- Switch to pcre2
- Locking of local system mailbox HOT 3
- yacc dependency missing
- Maildir support is broken on systems that don't allow hard links HOT 1
- Internet speed unstable
- MANUAL: Debian does not enable PCRE by default HOT 1
- Consider new release for PCRE2 support HOT 2
- Crash in imap_commit() HOT 27
- exchange online vs. POP3 HOT 2
- Message-ID is not recognized HOT 6
- Base64 encoded headers evade analysis for matching
- [Bug] A UAF bug in connect.c HOT 1
- Crash on mail_destroy HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fdm.