GithubHelp home page GithubHelp logo

deleting messages from server about fdm HOT 19 CLOSED

nicm avatar nicm commented on August 30, 2024
deleting messages from server

from fdm.

Comments (19)

nicm avatar nicm commented on August 30, 2024

from fdm.

daphniz avatar daphniz commented on August 30, 2024

does cache work with imap?

from fdm.

nicm avatar nicm commented on August 30, 2024

from fdm.

daphniz avatar daphniz commented on August 30, 2024

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.

daphniz avatar daphniz commented on August 30, 2024

ok, i got the impression from the man page that caching only worked with pop

from fdm.

nicm avatar nicm commented on August 30, 2024

from fdm.

nicm avatar nicm commented on August 30, 2024

from fdm.

daphniz avatar daphniz commented on August 30, 2024

i see. but how do i get the message id?

from fdm.

nicm avatar nicm commented on August 30, 2024

from fdm.

daphniz avatar daphniz commented on August 30, 2024

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.

daphniz avatar daphniz commented on August 30, 2024

something like getmail's delete_after option would be ideal.

from fdm.

nicm avatar nicm commented on August 30, 2024

from fdm.

daphniz avatar daphniz commented on August 30, 2024

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.

nicm avatar nicm commented on August 30, 2024

from fdm.

daphniz avatar daphniz commented on August 30, 2024

it's a ticket receipt from a metro company.

from fdm.

nicm avatar nicm commented on August 30, 2024

from fdm.

daphniz avatar daphniz commented on August 30, 2024

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.

daphniz avatar daphniz commented on August 30, 2024

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.

nicm avatar nicm commented on August 30, 2024

from fdm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.