Need a script for archive/copy IMAP Emails older than 25 days to local mailbox

Hi there,
I am really troubling with archiving my IMAP mails. So far I was using standard rules, which have a major drawback - they only work on incoming mails. But I want to copy only mails to my local mailbox that are older than 25 days. The reason is that by copying all incoming mails, mail also copies all spam and unimportant mails into the local mailbox. However I only want to copy the mails that I was able to read and consider to be important, which I am able to do within a couple of days. However, I am not able to to that on a daily basis and that is why I chose the 25 days window, because my hoster deletes them automatically after 30 days. I read in a lot of forums that rules wont help, since they only work for incoming mails, therefore I am guessing that I would need a script because I want this to be automated and only applied to mails that passed the 25 day timeframe. Is the anybody that could help me out? Thank you so much in advance.

Hi adayzdone,
thanks for your reply but I am not a Gmail user, I am using Strato. Therefore the handy Google Scripts won't help.
I need a script in Apple, that only copies or moves the mail from my inbox to a local mailbox once they are past the 25 days line. Within those 25 day I have deleted all unnessecary mails, marks or higlighted the important once and know only the remaining once are worth keeping. But I still want them to be available in Mail and none of those archiving solutions that create pdfs or import them into their one database will help.

Similar Messages

  • Help! All Inbox Emails older than 2-3 weeks have disappeared in Outlook 7, IMAP GoDaddy

    Hi,
    So we have two computers in the office that are set up with Outlook (email addresses are hosted on GoDaddy) in IMAP.  The computer with Outlook 7 was working fine, but a few weeks ago, we noticed that ALL emails older than a couple weeks had simply
    disappeared from the inbox!  And it keeps happening everyday.  As soon as more emails come into the Inbox, some of the oldest (again only a few weeks old) emails just vanish.
    All the archive settings are off and Auto Archive has been disabled since the beginning.  I have tried to locate a pst file that might have these emails in them but all the files I have been able to find
    are archived Sent Mail.  All Sent Mail is still available as well as any emails saved in any of the other email folders.  What is even more confusing is that all the emails have also disappeared from the Inbox on the GoDaddy server as well!  I've
    tried the repair tools, I've tried opening Outlook in safemode, and resetting the mailbox views, etc...  NOTHING has worked and the issue keeps happening, so we are losing emails daily.
    At first, we thought this might be an issue because the email had been linked to an iPhone and we were told that the Apple cloud server had a habit of erasing emails to make space on the server once it got
    full, but we disconnected the iPhone comepletely from the account and it is still happening.  What's the most confusing is why the emails aren't able to be found on our GoDaddy server, since we have unlimited space on our account.
    Anybody have this issue as well?  I really need to find these emails, being able to access ALL of our client correspondence is essential to our daily work!
    Thanks in advance!

    Hi,
    If we search the missing items in All Mail Items in Outlook, can you find them?
    We can also try to use the Inbox repair tool to scan and repair your Outlook data file to check if it helps. See:
    http://office.microsoft.com/en-in/outlook-help/repair-outlook-data-files-pst-and-ost-HA010075831.aspx
    Since your emails are disappeared from the server, please also contact your ISP to get assistance on the server side.
    Best Regards,
    Steve Fan
    TechNet Community Support

  • Excahange 2007 Need to permanently delete all emails older than x years

    Cant get to the 2007 forum so don't know if this is the right place.
    Trying to permanently delete all mail older than 4 years from our Exchange 2007 server. I have worked with Powershell in 2010 (Exchange) 
    but I cannot run due to some restrictions with 32/64 bit powershell limitations in exchange 2007.
    I have searched google and these forums -- there has to be an easy way to do this or someone that can point me in the right direction.
    Thanks in advance

    Hi,
    In Exchange 2007, you can use the following cmdlet to delete emails older than the mentioned date from a mailbox.
    Export-Mailbox -Identity xxx -StartDate "xx/xx/xxxx" -EndDate "xx/xx/xxxx" -DeleteContent
    If you need to perform this on a set of mailboxes, paste all display names to a TXT file, name is as "test.txt". Run the following cmdlet.
    Get-Content test.txt | Export-Mailbox -StartDate "xx/xx/xxxx" -EndDate "xx/xx/xxxx" –DeleteContent –Maxthreads 4
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Export -mailbox to move emails older than 400 days to pst file

    i have written the below script
    $date = get-date
    $MailboxList = get-content "E:\del_users.txt"
    ForEach ($Mailbox in $MailboxList) {
    Export-Mailbox -Identity $Mailbox -PSTFolderPath E:\pstfiles\$mailbox.pst -BadItemLimit 1000000 -StartDate $date.adddays(-450).ToString('MM/dd/yyyy') -DeleteContent
    my target is to move all emails older than 450 days to a pst file. i ran this on one user and noticed his emails from today to 450th day from today was moved out.
    In simple terms, i want to move all emails in all sub-folders that are older than 01-January-2014. Once this is done and when he logs to owa or outlook he must be only be able to see emails from 01-Jan-2014 to 17-Mar-2015.
    how can i achieve this with the above script?
    cheers

    We are facing this error with few mailboxes which are exclusively in one DB under one Storage Group & the mailbox is on EX001 with Exchange 2007 SP1
    We have 2 exchange servers:
    EX001 - Exchange 2007 SP1
    EX002 - Exchange 2007 SP3 (fully updated)
    I have setup a Windows 8.1 32bit machine with Outlook 2013 for running the export-mailbox cmdlet to export mails to a PST file
    We are facing this error with few mailboxes which are exclusively in one DB under one Storage Group & the mailbox is on EX001 with Exchange 2007 SP1
    We I run the below script, 
    $date = get-date
    $MailboxList = get-content "E:\del_users.txt"
    ForEach ($Mailbox in $MailboxList) {
    Export-Mailbox -Identity $Mailbox -PSTFolderPath E:\pstfiles\$mailbox.pst -BadItemLimit 1000000 -StartDate “01/01/2005" -EndDate “12/31/2013" -DeleteContent
    I get the below error, only from some users and not all users.
    Error was found for User ([email protected]) because: Error occurred in the step: Moving messages. Failed to copy messages to the destination mailbox store with error: 
    MAPI or an unspecified service provider.
    error code: -1056749164
    I went through the link: https://social.technet.microsoft.com/Forums/en-US/3c75a6db-74a4-484c-a7f4-5b411900d09b/exchange-2007-exportmailbox-error-message-on-only-certain-mailbox?forum=exchangesvrdeploylegacy 
    I understand this is a permission issue and i have tried all of the below
    1. The user doing the export is a member of local administrator group in both source and target machine.
    2. the user doing the export is granted the exchange administrator role on EMC in both the source and target machine.
    3. Given full access permission to the username moving the mailbox to PST
    4. given receive-as permission to the username moving the mailbox to pst
    5. Given genericall access to the DB
    6. Create a New User account (EX: ExportAdmin)
    Add this account to a Exchange Server Administrator Permission Both Source and Target Exchange Mailbox Server
    Add this account to Local Administrators Group Member Both Source and Target Exchange Mailbox Server
    Make sure this account DO NOT HAVE ANY Domain Admin/Exterprise Admin permission(Just keep Domain User group permission)
    Assign Mailbox Full Access to this account by follow Cmdlet
    Get-Mailbox -Server "EX-CCR" | Add-MailboxPermission -User ExportAdmin -AccessRights FullAccess
    Runas with ExportAdmin account (Open EMC)
    Get-Mailbox -Server "EX-CCR" | Export-Mailbox -PSTFolderPath
    Done
    7. On the DB, we set the retention to 0
    however none of the above has helped me resolve my issue.
    Please help me correct this

  • TS3899 I upgraded to iOS 7 and I lost emails that were in my inbox - I used to see all emails that I did not delete, now I only have emails from the past month - how can I get the old, undeleted emails back? Or, at least, show email older than one month o

    I upgraded to iOS 7 and I lost emails that were in my inbox - I used to see all emails that I did not delete, now I only have emails from the past month - how can I get the old, undeleted emails back? Or, at least, show email older than one month old?

    I upgraded to iOS 7 and I lost emails that were in my inbox - I used to see all emails that I did not delete, now I only have emails from the past month - how can I get the old, undeleted emails back? Or, at least, show email older than one month old?

  • Shell script for archive log transfer

    hi
    I dont want to reinvent the wheel.
    I am looking for shell script for log shipping to provide standby db.
    What I want to do is, get the last applied archived log number from alert.log
    Copy the files from archive destination according to this value.
    Cheers

    If you don't want to re-invent the wheel you use Dataguard, no scripts.
    And your script should use the dictionary, instead of some bs method to read the alert.
    v$archived_log has all information!
    Also as far as I know, the documentation describes manual standby.
    So apparently you not only don't want to reinvent the wheel, but you want the script on a silver plate on your doorstep!
    Typical attitude of most DBAs here. Use OTN for a permanent vacation.
    Sybrand Bakker
    Senior Oracle DBA

  • Need antispam script for my website guestbook entries... recommendations?

    My guestbook on my website got so slammed by spambots that i had to take it offline. I would like to get one of those scripts where the person has to fill in what they see in a box (letters, numbers, etc) in order to make an entry into my guestbook. My web designers says that i need to find a script for this. Any recommendations? I don't even know what these scripts are called, making them hard to look for!
    He does the website work in Dreamweaver in Tiger, if that makes any difference. This is a guestbook that forwards entries to me as emails (they are not diplayed on the site)

    Unless I'm misunderstanding what you're trying to do, you don't need a preloaded for embed movies.  The page will load without any delay.  It's not until the user chooses to play a movie will it begin downloading / streaming it from the server.  Even if the video is a large file, internet users are use to this type of scenario where they choose to play a movie, ala youtube and others, that if their connections are slow there may be delays in video playback.  With all that said, I have seen and used page loaders where visitors will be expecting to wait a while for a result to happen, I just don't think this scenario warrants it.

  • Need EEM script for write mem config details.

    Looking for an EEM script that will send an email of config details when a write mem is performed.  
    Any help would be appreciated as i'm new to EEM.

    Something like this could work:
    event manager applet email-write-mem
    event cli pattern "^(write memory|write|copy running-config startup-config)*$" sync no skip no
    action 0.5 info type routername
    action 1.0 mail from [email protected] to [email protected] server 10.1.1.1 subject "Write mem on $_info_routername" body "A write mem was done on $_info_routername"

  • HELP!! Need a script for DUMMIES for a simple login/register feature

    I know very little html and am more of a designer, but my programmer has let me me down so I have to take this on myself.
    I want to include a very common feature where visitors register to my site, so I can collect some information and contact details from them, then they can access hidden pages of the site and receive some exclusive download links by email, allowing them to download content (only once). They can then login each time they visit with a userID or email and a password.
    My host supports almost every scripting language.
    I've been told PHP is what I need, but I know absolutley nothing about it. My host said there is templates for such a simple script out there on the net for free but I'm being passed from pillar to post with scripts for much more complicated and rarer scripts than I need.
    Hope you can help.
    LB

    Do I need to create a database to store users info first?
    Yes. Without a database, it won't work.
    Is this a basic html page with a table with lots and lots or rows and columns for each of the details they have entered (e.g Name, DOB, Address.....etc)??
    No, I'm afraid not. Dreamweaver's PHP server behaviors work in conjunction with the MySQL database. If your hosting company supports PHP, you will almost certainly have access to a MySQL database and phpMyAdmin, a web-based program that helps create and maintain MySQL databases. As a minimum, your users table in the database will need three columns:
    user_id (a number that acts as the primary key for each record)
    username
    password
    You can also have other columns to store other details, such as first name, family name, and any other information that you want to store.
    If you have never done any PHP or database development before, this is going to be a major undertaking for you. The Adobe Developer Centre has some articles that show you how to set up a PHP/MySQL testing environment (http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html) and create your first database-driven pages (http://www.adobe.com/devnet/dreamweaver/articles/php_event_registration.html). The Dreamweaver help files also step you through the process of creating a login system (http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WScbb6b82af5544594822510a94ae8d65-7883a .html).
    Working with PHP/MySQL isn't difficult, but there's a lot to absorb. If you're going to start working with login systems and other database-driven features, you might find it useful to take a look at one of my books about Dreamweaver and PHP. I have different editions for Dreamweaver 8, CS3, and CS4. You can find more details at my website (http://foundationphp.com/).
    Good luck.

  • Help... Need a script for DVD@CCESS (DVDSP 4.0.3)

    Can anyone help me with a scripting question:
    I need a script that will allow me to search a windows pc for installed or missing DVD@CCESS, - promt for installation, and then install, - or pass on to play the DVD from first play. Obviously DVD@CCESS will be on the DVD in a directory ([email protected])
    Thank you....
    Verny

    Verny - welcome to the discussions.
    The person who I know has done this is Alex Alexzander. You can contact him over at http://www.editorsbin.com
    He is changing the site at the moment and may not have that particular tutorial online, but he definitely wrote it and created the scripts needed to get it working.

  • Need VB script for getting the IIS certification information

    Hi guys,
    I have totally 1000 IIS servers  2003 & 2008
    windows and some of the  servers configured
    IIS 3rd party Security certificates. I need a script to get the certification information like expiry date & certificate vendor name.
    Regards,
    SreeM

    Post here:http://forums.iis.net/
    Look in Gallery for IIS scripts:http://gallery.technet.microsoft.com/
    ¯\_(ツ)_/¯

  • Need Booklet script for CS3

    My computer bombed -- have CS3 installed on another, now I need the booklet script for CS3. A google didn't bring it up for me. . .
    Thanks
    Lamar

    Both scripts have always worked flawlessly for me. BuildBooklet merely shuffles the pages, so it doesn't change the page size at all (you need to check the spreads box when you export or print), but it does not handle objects that cross the spine. Neither one handles the second script does cross-spine objects, but does not do bleed.
    Perhaps you'll find what you want at Steve Sterling legacy ID imposition scripts

  • Need Edwardian Script for CS5- anyone know where I can get it?

    I have a client that wants Edwardian Script for her wedding video. I don't have it on any of my Adobe CS5 products. I do not want to join the cloud. Anyone know how I can get the font and use it with CS5?

    I saved the font to my C drive, and then re- launched PP.
    Saving the font will not show up in PP. You need to "install" the font into your "Fonts" directory. Did you install it or just save it? If you did not install it you should just be able to right click on the font and select to install it from the contextual menu. Once the font has been "installed" in your Fonts directory all of the apps will read it. I have Edwardian Script installed on my machines and the Adobe apps read them fine.

  • Need shell Script for Invalid object

    Hi All,
    Can anyone post me a script for checking the invalid objects in 10g/11g database.
    The should should check for invalid objects,recompile and sent the email .

    I could think fo something like below(And applicable to multiple SID's running on the server) and i tested it it works(bash shell script)
    Assumptions:
    You have environmental file to set ORACLE_HOME ORACLE_SID
    say in this example
    /oracle/env
    ls -ltr
    env_ORCL.sh
    env_TEST.sh
    env_HR.sh
    You also have uuencode rpm installed to use along with mailx command(or else get it installed not big deal). uuencode is required
    to send as mail attachment
    1)I have kept SID list in file (/oracle/INVALID directory for eg)
    cat SID.lst
    ORCL
    TEST
    HR
    If you have lot of SID's you can populate the file using ( ps -ef|grep -i pmon | grep -v grep | awk '{print$9}' | sed 's/ora_pmon_//g' > SID.lst)
    2) Here are the list of SQL's(/oracle/INVALID directory
    cat invalid_pre.sql (For listing invalid objects per instance)
    set echo off
    set heading off
    set time off
    set timing off
    spool invalid.log append
    break on instance_name
    select instance_name , a.*
    from (select owner,count(*) from dba_objects where status='INVALID' group by owner) a, v$instance;
    spool off
    exit;
    cat invalid_compile.sql--to recompile invalid objects
    set echo off
    set termout off
    set feedback off
    @?/rdbms/admin/utlrp.sql 4; (Note you change degree 4 or 8 accordingly)
    exit;
    cat invalid_post.sql--to list post recompilation
    set echo off
    set heading off
    set time off
    set timing off
    spool invalid_post.log append
    break on instance_name
    select instance_name , a.*
    from (select owner,count(*) from dba_objects where status='INVALID' group by owner) a, v$instance;
    spool off
    exit;
    3)here is the shell script
    cat invalid.sh
    for i in `cat SID11g.lst`
    do
    cd /oracle/env/
    source env_$i.sh
    cd /oracle/INVALID
    sqlplus "/as sysdba" @invalid_pre.sql
    sqlplus "/as sysdba" @invalid_compile.sql
    sqlplus "/as sysdba" @invalid_post.sql
    done
    uuencode invalid.log invalid.log | mailx -s "Invalid" <your mail id>
    uuencode invalid_post.log invalid_post.log | mailx -s "Invalid" <your mail id>
    4) Finally run the shell script, hopefully you should receive email :-)
    I have tested it on bash
    ./invalid.sh
    Once tested you can schedule it in cron
    Edited by: vreddy on Jul 19, 2012 9:57 AM

  • Need  Shell Script  for picking the files

    Hi,
        I want to write a shell script for piking the files in a sequence order (according to filename with time stamp)  from the sorce FTP server ..
                     Requirement is  in the source directory I'm getting files (Jain_1.xml  , Jjain_2.xml, Jain_3.xml .. ect..)  at  present my file adapter is picking all the files at a time  but  i want to pick  one by one... that to first i want to Jain_1.xml  after finish the processing of the file then only my file adapter should  pick the next file ( Jain_2.xml )  .
                  so..  all the forum mates suggest me to write a shell script..  but where  i have to write the s hell script. and where i have to deploy this script.... my Xi is running on UNIX ... so please sugest me  the procedure ...
    Regards
    Jain

    Hi,
    Why dont you use the option EOIO in which files will be picked up in order and will be proccessed in sequence....one after another....
    Regards,
    Sreeni.

Maybe you are looking for

  • Portal Activity Reports Combinations

    Dear Portalites, I am confiuring a Portal Activity Reporting iView.  And I have some fundamental issues The Environment A. Webdynpro Java Applications running on normal Enterprise Portal Environment B. Custom Built JAVA applications runing on URL iVi

  • Fixed substitution into PCA (ledger 8A)

    Hi, I want to achieve a fixed substitution into the fixed ledger PCA, *A. When posting from an FI journal I want the transaction type field to filled filled with a constant value liek 'XXX'. I tired using the fixed field movement (GCI4) but did not s

  • Create a web link on desktop

    I would like to have a web link that I use frequently on desktop. Can someone advise me how to accomplish it. Thanks!

  • Do different recorded slide resolutions cause an imported FLV Video to Play incorrectly?

    I’ve been working on a project involving many captivate files with flv videos inserted into slides I made the slides in Photoshop, I had the same type of project last year with the same client and had similar problems with the flv videos just not run

  • Update infotype 4003

    I am having a problem deleting records from infotype 4003 using 'HR_MAINTAIN_MASTERDATA' fm