Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Message Inbox: Retain Deleted messages longer

by jdporter (Canon)
on Feb 05, 2014 at 02:38 UTC ( #1073503=monkdiscuss: print w/replies, xml ) Need Help??

My hallucinogenic memory tells me that I read, somewhere, a long time ago, that any messages in your 'Deleted' folder get purged every day, or something like that; and my experience certainly seems to bear that out.

Can we please change that to a week, or at least several days? Thanks you!

(And if anyone can tell me where the code that implements this is -- and if it's a code node -- I'd be happy to code the implementation myself.)

I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.
  • Comment on Message Inbox: Retain Deleted messages longer

Replies are listed 'Best First'.
Re: Message Inbox: Retain Deleted messages longer (done)
by tye (Sage) on Feb 05, 2014 at 05:46 UTC

    It is already several days. About 3, as I recall.

    - tye        

      Thanks for answering all my questions.

        ++jdporter for the sarcasm. And thanks for the prod that quite a while has passed but nothing else has happened on this thread.

        One of the nightly cron jobs runs a query like:

        update message set folder = folder-1 where -3 < folder and folder < 0;

        and then deletes rows where folder has reached -3 (roughly).

        So I think it is actually between 2 and 3 days before a "deleted" message is irretrievable, depending on the time of day when it is "deleted".

        You can find -3 hard-coded quite a few places in the other bits of code that deal with "message folders". So we could lengthen the grace period by updating all of those (as well as, I think, just the one instance of "-3" in one cron job).

        - tye        

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://1073503]
Approved by Eliya
help
Chatterbox?
[marto]: "no it's not that"...."weirdos "...
[marto]: List EXE_FILES installed by CPAN so a couple of people suggest that your code looks obfuscated. I'd have to ageree, from the perspective of those who can't follow all of that one liner, it doesn't read well
Veltro is a weirdo, obsessed with whitespace
[marto]: to use the word "obsession" when so few people have said so little about it is grasping at staws
marto wishes tye was around, he's so much better at this sort of thing
usemodperl likes tye!
usemodperl tye  too
[choroba]: Re^3: LiBXML: New markup while preserving earlier tags? would benefit from a couple of test cases
usemodperl meant tye&nbsp;
usemodperl pokes Veltro with line noise

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2018-06-24 16:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?