Cron vs other methods to automate email sync

Hello,
I would like to automate the process of email sync using
mbsync. Manually i run
mbsync gmail-inbox
I heard cron can do this, but cron makes me nervous. To me
its a base component of arch. The arch wiki says its
"commonly used for system maintenance and administration"
task. That sounds like its for more 'essential' tasks then
just syncing email.
Also, checking email can be a noisy process, that makes me nervous
as well.
So what is the preferred method for what i want to do. Cron,
some sore of loop [thats all i got]...?
Thank you!

Cron has a crontab for the root user as well as normal users.  If you do "crontab -e" it will be your crontab.  If you do "sudo crontab -e" it will be the root user's
I use it to sync offlineimap for myself, as using offlineimap as a service seems to have way too much overhead.  Though I have been thinking about looking into setting it to sync only my inbox and spam frequently and do a mass sync of all of it once a day... maybe that will help it out when it has three accounts to sync... that's my issue though.  Back to yours.
So yes, this is fine.  But you may want to put a few lines of script into place to make sure that there doesn't exist any hung or dead processes of syncing and kill those before it runs the sync. 
BTW, what is mbsync? Nevermind, found it.
Last edited by WonderWoofy (2013-03-20 01:33:42)

Similar Messages

  • TS2529 just updated my iphone 4; now I cannot sync with my music on my mac nor download music from itunes. all other items: photos, calendar, email syncs; not music. how do i get music on my iPhone?

    I just updated my iPhone 4. I now cannot synch with music on my iMac nor can I download from iTunes. All other syncing activity works: calendars, email, ibooks and contacts are all automatically updated across all devices. Not music.
    How do I get music to download and sync?

    Plug your phone into itunes.
    Click the iphone there, and go to the music tab.
    Is the Sync Music tab checked off? And is the entire music library selected?

  • How to Handle Automatic Skip Property of Item in Oracle Forms through Custom.pll or from other methods

    Hi All,
    How to Handle Automatic Skip Property of Item in Oracle Forms through Custom.pll or from other methods.
    This is a enhancement requirement.
    When ever user enter value in field 1 then automatically cursor should go to next field.

    Hello Bobb,
    You can create a trigger(when-list-changed) for each list item where you could:
    1.recreate the record groups and then use POPULATE_LIST so you can hide the selected values. In forms builder online help there are some good examples about create record groups dynamically.
    or
    2.you can perform a validation instead of hiding the selected values. If the values is already selected the display a message 'Value already selected....'
    Second option is much faster(only an 'if clause')
    Hope this helps.
    Regards,
    Alex

  • Automatically call specific method at other method invocation~ish?

    I have a class which basically acts as a wrapper around a List. It contains a List object and some methods that do something with that list.
    Now, in order to prevent exceptions, I've made a basic method that just checks if the List field is null and, if so, it will create a new ArrayList and chuck it in that field.
    Right now, I just have a call to that particular method in each other method that performs an operation on the list, like so:
    public class SomeClass<T> {
       private List<T> list;
       private void checkList() {
         if ( list == null) {
           list = new ArrayList<T>();
      public int method() {
        checkList();
        return list.doSomething();
      }Is there a way, prefferably a native Java way, to automatically have the checkList() method called before each and any method invocation? As in, whenever a method is called in the SomeClass, Java / the JVM automatically calls the checkList method?
    }

    Yop wrote:
    I have a class which basically acts as a wrapper around a List. It contains a List object and some methods that do something with that list.
    Now, in order to prevent exceptions, I've made a basic method that just checks if the List field is null and, if so, it will create a new ArrayList and chuck it in that field.
    Right now, I just have a call to that particular method in each other method that performs an operation on the list, like so:
    public class SomeClass<T> {
    private List<T> list;
    private void checkList() {
    if ( list == null) {
    list = new ArrayList<T>();
    public int method() {
    checkList();
    return list.doSomething();
    }Is there a way, prefferably a native Java way, to automatically have the checkList() method called before each and any method invocation? As in, whenever a method is called in the SomeClass, Java / the JVM automatically calls the checkList method?
    }Why not return the List<T> in the check() method? Like this:
    List<T> check() {
       if (list == null) list= new ArrayList<T>();
       return list;
    void otherMethod(T t) {
       check().add(t);
    }Instead of using variable 'list' directly, use the 'check()' method.
    kind regards,
    Jos

  • How do I stop the EMAIL sync between my desktop  and my laptop?

    How do I stop the email sync between my desktop computer and my laptop? Right now, the laptop is set to automatically load my email when I click on mail. I use my desktop daily; laptop only when traveling. The laptop is somehow set to receive ALL messages, so I get messages that are several weeks/months old. I want to be able to manually sync and NOT have all of the hundreds of old, already viewed messages sent to my laptop. However, I DO want my desktop to receive all of my old messages so that I can have them when I return from traveling. Thanks.

    Actually, your mail isn't 'synchronizing' in the conventional sense at all. And, you are effectively trying to make it do so manually at the present time. As you have discovered, this simply does not work.
    The only way that you can effectively address your requirements is to use IMAP—rather than POP3—technology. Using IMAP will allow you to readily control what is stored on the server, and will provide a view into that data store when you use your portable computer.
    While is is possible to use POP3 and set one computer to delete mail from the server and the other not to, this is potentially fraught with problems, and will not fully address your concerns.
    An IMAP option is available from such providers as Apple with .Mac, AOL with AOL Mail and AIM Mail, and Google with GMail. You can convert an existing POP3 account with such a provider to IMAP with little difficulty, or initiate a new IMAP account with such a provider and forward mail to it from providers who do not offer such an option.

  • F110 - Automatic email to vendor when payment run is carried out

    Hi,
    I am trying to configure automatic emails to be sent to vendor when automatic payment run is carried out.
    Please note that i have already carried out the following settings:
    Step 1- Define Std communication method as SMTP (Internet mail) in vendor master               
    Step 2 – Maintain email address via FK02.               
    Step 3 - T-Code BERP – Code to find Find event 00002040 – This is a Function called SAMPLE_PROCESS_00002040, copy with another name i.e. ZSAMPLE_PROCESS_00002040               
    Step 4 – T-Code FIBF -> Option -> Product ->a Customer, Write product name at your choice (for example ZMAIL) and make it active.               
    Step 5 – T-Code FIBIF -> Option ->Process Function (or Module) ->. A Customer.               
    Process = 00002040               
    Module Function = ZSAMPLE_PROCESS_00002040               
    Product = ZMAIL (name of product define by you in step 4)
    it will automatically send mail to vendor provided SCOT is configured.
    However, when i carry out the payment run, email is not generated..
    Can someone please help me out with the above?
    Thanks in advance

    Andi,
    this might help....
    Emailing SAP Remittance advice:
    1.
    For the following process to work SAP Connect needs to be configured for outgoing mail. This is carried out by the Basis team. The t-code is SCOT.
    2.
    <b>Vendor Master Data</b>
    Define ‘Std communication method’ as SMTP (Internet mail) and maintain an email address in the vendor master data.
    3.
    <b>T-Code BERP</b> – Code to find the relevant BTE. Use the Selection Attribute to browse for your business area. In my case, it is AP-Payment Transactions hence FI-AP-AP-PT.
    00002040 is the relevant process. This is a Function called SAMPLE_PROCESS_00002040. In this case, the FM only checks for an email address in the Vendor Master. If more logic is required a Z-version would need to be created.
    4.
    Use t-code FIBF to create the enhancement.
    a)
    Create a product.
    A product groups together customer enhancements to BTE’s developed in the customer's namespace. All customer enhancements assigned to a certain customer product can be released with the Activate Customer Product indicator. The OPEN_FI function module for a certain customer enhancement cannot find the corresponding customer function modules, until this has been done.
    Create the product name (for example ZMAIL) and make it active.
    FIBF->Settings->Products->…of a Customer
    b)
    Assign the BTE to the FM:
    Settings->Process Modules->…of a customer
    Assign the 00002040 process to the FM and Product.
    5.
    At the end of this process when the payment advice program is run, the event will be called and it will automatically send an email to the vendor.
    6.
    Assign an email address to the sap user who will be the outgoing accounting clerk. Define the Accounting Clerk for the outgoing email address:
    SPRO->FI->AR/AP->Vendor Accounts->Master Data->Preparations for Creating Vendor Master Data->Define Accounting Clerks
    hope it helps.

  • Automatic email to vendor in Pdf based on Po approval

    Dear Experts,
    we have a requirement to trigger automatic email of PO in PDF fromat to vendor based on final code PO approval. Please let me know how best it can be done. Can we use email ID in communication area of address view in vendor to do this ?
    Please tell us what other steps are required.
    Edited by: Raghavendrams on Mar 16, 2011 5:05 PM

    Setting for SOST, should be maintained by BASIS consultant for external sent
    Maintain separate Out put type.
    now as per ur requirement u have to set immediate out put in NACE >EF >output types NEU
    here in default tab just Dispatch time make it as immediate
    Discuss with ABAPER for PDF form also.
    -You need to maintain your email id in tcode SU01 and also the vendor's email id. 
    -Now while creating a new purchase order , change the medium to External Send . 
    -Then go to Communication Method and select CS01. ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& . 
    - Go to tcode ME9F . 
    - Execute. 
    - Select the checkbox and click on Output Message. 
    - You will get a message MAII 00000000000001 generated . 
    - Use note no 191470

  • Classes and methods to send email to SAP inbox

    Hi,
    I want an appropriate class and method to send emails to SAP Inbox.
    My objective is that i convert spool to PDF and send it to SAP inbox as an attachment.
    I've used  'CONVERT_ABAPSPOOLJOB_2_PDF' and 'SX_TABLE_LINE_WIDTH_CHANGE' to generate PDF attachment.
    I tried Function modules 'SO_DOCUMENT_SEND_API1'/'SO_NEW_DOCUMENT_ATT_SEND_API1' to send email.
    It was working fine till now (for last 4 months). Now the Basis team has run some patches due to which the PDFs are getting damaged.
    Now the FMs 'SO_DOCUMENT_SEND_API1'/'SO_NEW_DOCUMENT_ATT_SEND_API1' seems to be useless.
    So i tried some methods in classes cl_document_bcs and cl_bcs. These are working fine for Internet mails but not SAP mails.
    Please suggest me some Classes and methods to send the PDF atachments to SAP inbox.

    to have all SAP inbox messages into lotus notes inbox you have to sync the same with the use of connectors rather than resending them
    check out this link
    http://www-128.ibm.com/developerworks/lotus/library/lei-sap/
    for outlook its done using MAPI
    http://www.sapgenie.com/faq/exchange.htm
    Regards
    Raja

  • Email Syncing

    Hi All
    Apologies if this has already been covered somewhere.....But...
    Firstly, I love the iPhone, it's another reinvention of the wheel by Apple, so well done. Secondly, I am a qualified technician, so really should know more - but networking and email syncing is not my strong point. I will try and best explain my issue in the hope it's a simple fault and can be rectified:
    My iPhone is synced to all my email accounts (I have four seperate ones, including MobileMe all POP3) yet only my .me account let's me know I have receieved an email. With the other accounts I have to go in to their inboxes on the iPhone before any email come through.... Any ideas on this? I have checked in iTunes and all mail is set to sync...
    My thanks in advance!

    The setting under the Info tab for your iPhone sync preferences with iTunes for syncing email accounts is for transferring email account settings only from your computer to your iPhone, which is a one way transfer process only - from your computer to your iPhone so you don't have to manually create the accounts with the iPhone's Mail client. This has nothing to do with syncing email account mailboxes and messages or an email account being checked for new messages.
    On your iPhone, what is your Fetch setting for automatically checking for new messages?
    Go to Settings > Mail, Contacts, Calendars > Fetch New Data.
    Under the Fetch section, the following settings are available:
    Every 15 minutes
    Every 30 minutes
    Hourly
    Manually

  • Automatically email Discoverer Reports

    Can someone please tell me how I can automatically email some schedule reports in Discoverer.
    We are using discoverer version 10.1.2 with Oracle Apps 12i.
    Every month we run some schedule reports we want to automatically email these reports to some users.

    It's not possible if referring to the Plus or Viewer version.
    In fact, Viewer is the version for mailing reports only.
    The only alternative is to use the command line interface in Disco Desktop (the client / server version) and a scheduler (either purchased or using Windows freebie) and have the reports run via THAT scheduler and then email the results from that scheduler.
    Not the slickest method ...
    Russ

  • Automatic Email: Timed from Past Date

    Hello everyone,
    I've been thinking about trying to do something, but can use some advice and resources on how to accomplish it.
    I currently have a test website that accesses a db. I use php and mySQL. I host my data online too.
    Users can create accounts on the site and login to their account page from home.
    From the last appointment (which is inputted into the db table called appt), I would like to have an automatic email sent to everyone every three months from the last time they had an appointment as a reminder to make another one.  The email address is stored in the members info table.  Their last appointment date is stored in the appointments table.
    This is a broad question right now, I know, but I have to start somewhere.
    To elaborate a bit, I would like the email to be sent a week before their recommended next appointment day so they can schedule it.
    So if the last time you visited was 12/16/08, an email should be sent to you this week to remind to you make your appointment for next week.
    How can I figure this out?
    Thanks.

    MySQL 5.1 introduces a new feature called Events that perform specific tasks at preset times or intervals. Don't ask me how to use them, because I don't have MySQL 5.1 on my server yet. I doubt if many hosting companies have either. But, if you're interested, you can find the details in the MySQL documentation for 5.1: http://dev.mysql.com/doc/refman/5.1/en/events.html.
    The way I run scheduled events at the moment is by creating scripts with Command Line Interface PHP. This is simply an ordinary PHP script that begins with a command to tell the scheduler where to find PHP. It looks something like this:
    #!/usr/local/bin/php
    <?php
    require_once('/home/mydomain/phpclasses/dosomethingspecial.class.php');
    // rest of the script that I want to run on a regular basis
    ?>
    I then schedule the jobs using Cron. If you have cPanel in your hosting setup, you should see Cron jobs, which is where you set the schedule for the script to run.
    How do you find when to send the email? As part of your script, use a SQL query to find appointments that are between 83 and 90 days old.
    SELECT client_id, client_name
    FROM clients
    WHERE appointment >= SUBDATE(NOW(), 83) AND appointment <= SUBDATE(NOW(), 90)

  • Help needed from manojpj regarding sending automatic emails

    HI manojpj,
    I saw your post in this forum regarding sending automatic emails.
    In my project also i want to send automatic emails and also want to retrieve emails automatically.
    i did retrieving and sending emails with user interaction.But i want to do automatically.In your post you told that your having code for sending automatic emails.
    can u please send me that code?
    Thanx a lot

    Dont hold your breath, there is a thread with hundreds of people asking for such code and no-one ever posted it.
    The easiest way is to use a cron job
    If you want to use Java instead of cron have a look at
    http://www.opensymphony.com/quartz/wikidocs/FAQ.html
    Its a java based job scheduler, you can use this to shedule your mails, or, as its open source, you can just take the code you need and add it to your esisting mailing code.

  • Notes on ipad automatically emailing, how do I stop it

    My new iPad 2 is automatically emailing my notes to me.  I am not tapping the email button at the bottom of the note.  It just happens everytime I leave notes to go somewhere else.  When I connect to iTunes on my computer, the "sync notes" box is not checked.  Any ideas on how I can stop this from happening?  Thanks.
    mary

    I would like an answer on this as well.  It seems my ipad2 is arbitrarily emailing notes for no particular reason.  One note was mail to me about 20 times with no changes that I was aware of.  Any suggestions"

  • Email sync problem between iPad Air and iPhone 6+

    Hello,
    I have a user that travels quite a bit. We use Office 365 Enterprise
    for our emails. He is reporting email sync issues between iPhone and iPad. Meaning
    sometimes he will receive emails on the iPhone but not on the iPad or vice versa.
    Both devices use the same AT&T network. Does anyone out there have any
    suggestions as to what may be causing the sync problem between devices? I am
    not sure if the devices ever have the same emails on the inbox. Does this make
    sense? I will be happy to provide any other information if needed.
    Thank you!

    Hey daniel hkn,
    Thanks for the question. It sounds like the email account may be configured and setup as a POP account. If so, check out this resource:
    Using a POP account with more than one device - Apple Support
    http://support.apple.com/en-us/HT201855
    When using the same POP email account on more than one device, email messages may appear only on the first device that receives them. This occurs when an email client is configured to automatically remove email from the server after an email client has received it. You can configure your iPhone, iPad, iPod touch, or Mac either to keep a copy of the email on the server, remove it after a certain number of days have passed, or keep it until you move it from your inbox.
    Thanks,
    Matt M.

  • Sending automatic emails

    Is there a way to schedule automatic emails from Mail, without using iCal?
      Mac OS X (10.4.3)  

    Well, there's Andreas Amann's scripts, which include a mail scheduler, but it uses iCal, and you don't want that. It would be relatively simple to do it yourself - write an Applescript to build and send the mail, then have cron run it at the appropriate time.
    Maybe you could modify AA's script and run it with cron rather than iCal?
    AK

Maybe you are looking for

  • Tables for G/L account

    Hi All, can u pls specify me the tables for 1)G/L openings 2)S/L account 3)S/L openings Thanks&Regards, Anji

  • Camera on my iPhone5

    My camera is locked...how do I unlock? When I open photos, there are none showing, and I have several on my phone. The only way my camera will work is if I open from the locked screen. My phone has never done this. Any suggestions?

  • How to store and retrieve chinese characters

    Hi, I am facing some problem in storing and retrieving of chinese characters from oracle,9i . This is the character i am trying to store into the database 自动提款机网络 while trying to retrieve it, it shows 自?提款机网? ^ ^ you can see t

  • Package and the transport number for Parameter id

    Hi , Based on a posting earlier to create a Parameter id , wanted to know what is is the best practice to fill in the PACKAGE NAME while creating a Parameter id in SM30 table TPARA?

  • Batch determination for process order URGENT!!!!!!!!!!

    All, I have a strange situation.The condition in the selection criteria is Exp.date >10Days.But when the process order is released the batch is picked which has a past expiration date .what might have gone wrong?Please guide .Thanks -Naik