[SOLVED] An offlineimap question

Greetings,
I am trying to set up offlineimap with a Gmail account. Due to a network issue during the initial sync, I was only able to download ~50% of the mail stored with Google (I had to SIGINT, since offlineimap didn't seem to recognize that the had connection restored). My question is: if I were to evoke "offlineimap -o" again, how would the sync occur? Would I be pushing the incomplete local repo to Gmail (and hence deleting half the mail in the account), or would the local repo continue to be grown by downloading the to-be-copied mail presently on the Google server?
Thanks! And, yes, I did try reading the f manual; I can't work out how to read the local cache files (~/.offlineimap/...) though.
Last edited by tomgg (2013-09-08 10:40:26)

I'm sure you wouldn't have given any wrong info (you appear to be a well privileged poster) but I will wait until I can confirm this myself (don't want to lose all my email!). Can you explain the local cache files for me? The files I can find look like
n-1:S
n:
n+1:S
for some integer n; so, the integer is obviously some number Google uses to index the mail, but what is the "S" or its possible variants?

Similar Messages

  • Challenging question! (Does anyone how to solve this Javabat question?)

    Does anyone how to solve this Javabat question?
    Here is the link:
    http://www.javabat.com/prob?id=Array3.linearIn

    I'm a little surprised by the implied rating of this problem... it's a plain to-way merge. You can use the same template as for the merging step in merge sort:
    public boolean linearIn(int[] outer, int[] inner) {
      int i = 0;
      int j = 0;
      while (i < outer.length || j < inner.length) {
          if (j < inner.length && (i == outer.length || inner[j] < outer)) {
    // inner[j] smallest
    return false;
    else if (i < outer.length && (j == inner.length || outer[i] < inner[j])) {
    // outer[i] smallest
    i++;
    else {
    // inner[j] == outer[i]
    i++; j++;
    return true;

  • (SOLVED) Two KDE Questions

    1. How do you enable spell check in Kopete? It does not seem to want to check my spelling after I click the spell button or right click and select auto spell check. I checked my system and I do have aspell installed.
    2. How do I get a volume applet on the panel? I have used Kubuntu in the past and there was always a little speaker in the system tray section. This is not present with the current full KDE package which I have installed. How do I add it?
    Thank you so much for your help!
    Question 2 has been solved. Just start Kmix
    Last edited by czechman86 (2008-05-30 02:36:59)

    funkyou wrote:Do you have the appropriate language package for aspell installed? (example: aspell-de for german)
    i checked and i did not have the en package. thank you for that tip! the spelling in kopete will still not work however.

  • [Solved] Metacity theme question

    Hi,
    I use a modified version of the "Human" theme but it's not perfect yet.
    The ugly 'point' on the left should be removed and at this area the application icon should be shown.
    What is needed to modify? Thanks for help.
    Screenshot:
    metacity-theme.xml:
    http://pastebin.com/ZVx5My1U
    Edit: solved by myself
    Last edited by Radioactiveman (2011-03-21 17:56:57)

    anonymous_user wrote:
    Haptic wrote:What's wrong with asking 2 things in 1 thread?
    Arch Wiki wrote:Choose one topic per thread. Long threads are typically discouraged in the technical issue subforums. Try not to post multiple questions in a single topic -- this makes it difficult to search for specific problems.
    https://wiki.archlinux.org/index.php/Fo … ow_to_Post
    Sorry, I moved the other question to another topic.
    Nothing shows up in ncmpcpp
    mpd.conf
    http://paste.pocoo.org/show/342598/
    Last edited by Haptic (2011-02-22 02:49:02)

  • [SOLVED]Noob source question

    I was curious because every single video I've seen(I use video's to learn) on installing Arch is only about installing ArchBang, and when going through the install process they only seem to have to go through setting the clock, partitioning the harddrive, configuring the system and installing bootloader. So I was wondering if choosing the source is necessary if I am installing from USB?
    Last edited by xworld (2012-07-22 02:18:34)

    Have you read The Arch Linux Beginner's Guide? It is not recommended to install Arch by following any other method. Furthermore, if you're really installing ArchBang, rather than Arch Linux, you should ask about it on their fine forums - I'm not saying that's what you're doing, I'm just pre-empting the possibility, since you haven't said what iso you're using.
    To answer your question about sources, is there any reason you can't first make a guess and then redo the install if things go wrong? You shouldn't use Arch Linux if you're not willing to experiment and hack.

  • [solved] Gnome lockscreen questions

    1. Is there a way to get rid of the necessity to pull up the gnome lockscreen or press enter or escape before I can type the password? I want to type directly the password without pressing any button before.
    2. Can I set up gnome to blank the screen when I press CTRL+ALT+L instead of showing bhe tackground and the time?
    Thx
    Edit: The bug is solved in Gnome 3.8. Thanks
    Last edited by tuxero (2013-04-11 13:18:59)

    I think this is not possible, but I can suggest you a workaround. I use the i3 window manager, and it comes with a utility to lock the screen which does exactly what you want. I think the lock utility can work even if you are not using i3wm. Try installing i3lock with pacman, and then in Gnome define a keyboard shortcut for
    i3lock -d -c 000000
    It does exactly what you want. It blanks the screen with dpms off(or standby) and locks it. to unlock just start typing your password(the screen will turn on with a black backgroud(you can change the color after -c if you like, it is in hex)) and press enter.
    Last edited by plam (2013-03-24 15:50:06)

  • [SOLVED] Start offlineimap as a daemon?

    I just installed offlineimap so I can use mutt to view IMAP email. How can I start it as a daemon so it automatically syncs email upon login? I found an rtorrent daemon script on the forum and just changed it to offlineimap, but it has a few problems.
    1. It does not work upon init. It works if I manually do /etc/rc.d/offlineimap start.
    2. It does not stop at all, regardless of how I do it - either manually or automatically.
    Anything I can do to get this working?
    Thanks.
    #!/bin/bash
    . /etc/rc.conf
    . /etc/rc.d/functions
    [ -z "$OFFLINEIMAP" ] && OFFLINEIMAP=/usr/bin/offlineimap
    [ -z "$OFFLINEIMAP_USER" ] && OFFLINEIMAP_USER=oliver
    [ -z "$OFFLINEIMAP_HOME" ] && OFFLINEIMAP_HOME=/home/oliver
    [ -z "$OFFLINEIMAP_SOCKET" ] && OFFLINEIMAP_SOCKET=$OFFLINEIMAP_HOME/.socket
    [ -z "$OFFLINEIMAP_LOCK" ] && OFFLINEIMAP_LOCK=$OFFLINEIMAP_HOME/.session/offlineimap.lock
    [ -z "$OFFLINEIMAP_DTACH" ] && OFFLINEIMAP_DTACH="/usr/bin/dtach -n $OFFLINEIMAP_SOCKET -z"
    case "$1" in
    start)
    stat_busy "Starting offlineimap"
    PID=`pidof -o %PPID $OFFLINEIMAP`
    if [ -z "$PID" ]; then
    [ -S $OFFLINEIMAP_SOCKET ] && rm $OFFLINEIMAP_SOCKET &> /dev/null
    [ -f $OFFLINEIMAP_LOCK ] && rm $OFFLINEIMAP_LOCK &> /dev/null
    fi
    /bin/su -c "$OFFLINEIMAP_DTACH $OFFLINEIMAP &> /dev/null" \
    $OFFLINEIMAP_USER
    if [ $? -gt 0 ]; then
    stat_fail
    else
    add_daemon offlineimap
    stat_done
    fi
    stop)
    stat_busy "Stopping offlineimap"
    PID=`pidof -o %PPID $OFFLINEIMAP`
    [ ! -z "$PID" ] && kill -s INT $PID &> /dev/null
    if [ $? -gt 0 ]; then
    stat_fail
    else
    rm_daemon offlineimap
    stat_done
    fi
    restart)
    $0 stop
    sleep 1
    $0 start
    echo "usage: $0 {start|stop|restart}"
    esac
    exit 0
    Last edited by MTsoul (2009-02-04 08:10:21)

    MTsoul wrote:1. It does not work upon init. It works if I manually do /etc/rc.d/offlineimap start.
    Have to ask, as you didn't mention it - did you add it to the rc.conf DAEMONS array?

  • [SOLVED]2 DWM questions

    exactly what the topic says
    1. How much RAM does dwm take up? maybe someone could take a screenshot with archey while idling with nothing else running?
    2. How much C experience does it take to configure dwm? Iv looked at some sample configs and it doesnt look incredibly complex
    Iv looked for the answer to those 2 questions but could not find them so are there any dwm users that could quickly answer them?
    Last edited by markbabc (2010-11-29 16:10:00)

    2. Patches will work correctly if you do like what wiki said . But multiple patches can cause problem like bharani said. And c prog is easy to read, no master needed to read and customize config.h file . And there's #archlinux channel + bbs forum for you to ask

  • [Solved] Quick ln Questions...

    How can I symlink my /tmp with /dev/shm? Would it just be:
    ln -s /dev/shm /tmp
    Last edited by haxit (2009-03-22 02:31:56)

    Please edit your first post to indicate the thread is [SOLVED] (if it is)
    Last edited by Ranguvar (2009-03-22 02:06:30)

  • [Solved]Enlightenment E17 questions.

    Installed it today -on actual HW- and have a couple of questions.
    1) The cursor in Firefox changes from the E17 cursor to X generic. Is there a way to fix this?
    2) The mixer module doesnt seem to work. Right click on the speaker icon >>Mixer >> settings >> Any action kills the desktop. It also doesn't change the volume from the sliders (click on it) but if i launch the mixer the master channel volume works flawlessly.
    3) Is there a way to make the startup applications start on a specific workspace?
    Thanks in advance.
    Last edited by 89c51 (2013-01-01 13:30:29)

    1. I am not sure about your mouse problem
    2. The new update for some reason switches the channel. You will have to click on the speaker icon at the bottom and go into settings and change it to the front speaker, also make sure the lock sliders is checked.
    3. I have not found a way to do this, but you can have different launchers start on each desktop here are two resources for more tweaks
    http://pclosmag.com/html/Issues/201012/page10.html
    http://www.bodhilinux.com/e17guide/e17g … ktops.html
    I have been using e17 for almost 6 months now. it takes some tweaking to make it feel like a solid desktop, but I believe that e17 is a solid desktop. It is fast and easy to use.

  • [SOLVED] Daemons Array Question

    Two questions, actually:
    1) When I installed wicd, the Arch Wiki told me to disable the network daemon with "!network". What is the difference between using the exclamation mark and just removing the word "network" from the array?
    2) From what I can tell, netfs is used to access files on a network, like a LAN, correct? If I don't use that functionality on my laptop, is there any reason to keep this daemon at all? (i.e. does it have any effect on my internet access?)
    Last edited by dfetter88 (2010-06-15 03:32:50)

    1) When I installed wicd, the Arch Wiki told me to disable the network daemon with "!network". What is the difference between using the exclamation mark and just removing the word "network" from the array?
    Nothing really.
    2) From what I can tell, netfs is used to access files on a network, like a LAN, correct? If I don't use that functionality on my laptop, is there any reason to keep this daemon at all? (i.e. does it have any effect on my internet access?)
    That's right. It will mount the network locations from your /etc/fstab

  • Solving a java question

    I had been ask by a question to produce the following output:
    however I only know indents such as "/n" and "/t"
    I am not able to produce this unless i use the manual methods...is there codes such tat i am able to produce spaces?
    Thanks

    sorry...there is some problem...the output should
    look like a christmas tree
    ***The forum automatically deletes leading spaces unless you put the text in between code markers.
    Basically, you need to write a method that takes as its arguments two ints ... one as the number of asterisks, and one as the total width. Total width can also be an implicit argument, if you know it is always going to be the same.
    Then, create a string with the number of asterisks centered in the total width. Subtract the number of asterisks from the total width, and then divide by two. This is the number of leading space characters (' ') you need. You can probably forget the trailing spaces.
    Call your method from inside a loop. YOu will probably want to start with one asterisk, and then increment the loop by 2, so you always have an odd number of asterisks.
    After the tree portion, call the method a few times with the trunk width.
    Done.
    The implementation in Java is left to the interested student or OP.

  • [SOLVED] A few questions about partitions

    Hi,
    I'm using Windows XP as my primary OS atm. Last year I installed Linux Mint and got it working nicely along with XP, but now I want to try Arch. I have two hard disks - a 320GB SATA2 one and a secondary 80GB IDE one. I've separated about 50GB of the largest for Mint, and I'd like to use these for Arch. Thing is, I'm not sure how I partitioned my HD (I think Mint automated most of it) and I'm scared that I'll screw up. I ran fdisk -l with the Arch CD as suggested by the Beginner's Guide, and here's more or less what I got:
    Boot Start End Blocks Id System
    /dev/sdb1 * 1 32059 257513886 7 HPFS/NTFS
    /dev/sdb2 32060 38913 55054755 5 Extended
    /dev/sdb5 32060 38627 52757428+ 83 Linux
    /dev/sdb6 38628 38913 2297263+ 82 Linux swap/solaris
    A few questions:
    -> I assume sdb1 is where Windows is, and sdb2, 5 and 6 are Mint's. Is that correct? Why are there no sdb3 and 4?
    -> If I understand it correctly, hdX means a partition in an IDE disk, and sdX means one in a SATA disk. Is that right? If so, why don't I have an hda (which would be the 80GB HD) partition, and why do I have sdbs instead of sdas?
    -> When installing Arch, should I delete Mint's partitions and make new ones, or use the ones it already created?
    -> If I decide to start using Arch as my primary OS in the future, will it be possible to resize its home partition?
    Thank you very much and sorry for my cluelessness.
    Last edited by Caio (2009-07-05 20:26:29)

    Caio wrote:
    Hi,
    I'm using Windows XP as my primary OS atm. Last year I installed Linux Mint and got it working nicely along with XP, but now I want to try Arch. I have two hard disks - a 320GB SATA2 one and a secondary 80GB IDE one. I've separated about 50GB of the largest for Mint, and I'd like to use these for Arch. Thing is, I'm not sure how I partitioned my HD (I think Mint automated most of it) and I'm scared that I'll screw up. I ran fdisk -l with the Arch CD as suggested by the Beginner's Guide, and here's more or less what I got:
    Boot Start End Blocks Id System
    /dev/sdb1 * 1 32059 257513886 7 HPFS/NTFS
    /dev/sdb2 32060 38913 55054755 5 Extended
    /dev/sdb5 32060 38627 52757428+ 83 Linux
    /dev/sdb6 38628 38913 2297263+ 82 Linux swap/solaris
    A few questions:
    Caio wrote:-> I assume sdb1 is where Windows is, and sdb2, 5 and 6 are Mint's. Is that correct? Why are there no sdb3 and 4?
    My guess is because you made the second partion extended. normally 1,2,3,4 will be primary or one will be marked extended. It probably skipped 3 and 4 since you didn't create anymore primary partitions.
    Caio wrote:-> If I understand it correctly, hdX means a partition in an IDE disk, and sdX means one in a SATA disk. Is that right? If so, why don't I have an hda (which would be the 80GB HD) partition, and why do I have sdbs instead of sdas?
    With the new libata driver they all show up as sd?, so no this rule isn't correct.
    Caio wrote:-> When installing Arch, should I delete Mint's partitions and make new ones, or use the ones it already created?
    I would reformat the partitions, but if they are how you want them then you should just leave the partition table untouched. By reformat them I mean recreate the filesystem.
    Caio wrote:
    -> If I decide to start using Arch as my primary OS in the future, will it be possible to resize its home partition?
    Thank you very much and sorry for my cluelessness.
    It looks like you do not have a separate home partition. My guess is you have your windows partition, the extended, and then that is broken into one large partition for / and then swap at the end.
    Edit: Oh I should have pointed out, normally arch creates a separate /home partition, if you want this you will have to restructure your extended partitions. This isn't necessary though, it's a preferance thing, there pros/cons to going either route.
    Last edited by Zepp (2009-07-05 14:53:58)

  • [Solved]Laptop lid question

    Hello,
    I am really happy with arch on my laptop. Suspend2Disk works (although the light on my wlan-button stays off after wake up, but since the network itself works I am fine with that), suspend2ram works to.. and those two are crucial.
    Even the Sleep-Button works and that is awesome!
    But I would like the Laptop to go to suspend2disk when I close the lid, and honestly I am confused about how to do that.
    I use acpid for the sleep button, which calls its own suspend2ram (works better then PM-utils for me btw). I call pm-hibernate by myself when I need it.
    I read probably every article in the wiki but I can not put the puzzle pieces together.
    acpid reacts on closing the lid, it does something with the ati-driver, probably to shut the screen of, or some.
    But how can I change that to execute pm-hibernate?
    BTW: it's Samsung P35, should that help.
    Last edited by thom_raindog (2008-05-17 20:17:20)

    Run acpi_listen and close the lid to get the relevant event. If you get the same event for closing and opening the lid (I do) you can use something like
    grep open /proc/acpi/button/lid/LID/state || hibernate -F /etc/hibernate/ususpend-ram.conf
    Of courseyou might need to change the path of the state file and the hibernate command as this is pasted from my handler.sh.

  • [SOLVED] Quick bash question (~/.bashrc stuff)

    Hi!
    First I have to say that I have installed Arch few days ago and it's pretty sweet stuff -- but I guess you already have heard that oh-so-many-times!
    So there is it, I would like to change my prompt's color everytime <enter> is pressed in the terminal (well, everytime a new prompt is shown).
    But so far I was only able to change my prompt's color everytime a new terminal is opened, with this code in .bashrc :
    # color changing for the prompt
    colors=("\[\e[0;30m\]" "\[\e[0;34m\]" "\[\e[0;32m\]" "\[\e[0;36m\]" "\[\e[0;31m\]" "\[\e[0;35m\]" "\[\e[0;33m\]" "\[\e[0;37m\]" "\[\e[1;30m\]" "\[\e[1;34m\]" "\[\e[1;32m\]" "\[\e[1;36m\]" "\[\e[1;31m\]" "\[\e[1;35m\]" "\[\e[1;32m\]" "\[\e[1;37m\]")
    let R=$RANDOM%16+0
    color=${colors[$R]}
    prompt="${color}\u@\h:\w\$\[\e[0m\] "
    # the prompt
    PS1=$prompt
    Thanks.
    Last edited by orph (2009-03-01 16:10:57)

    You could use the PROMPT_COMMAND:
    colors=("\[\e[0;30m\]" "\[\e[0;34m\]" "\[\e[0;32m\]" "\[\e[0;36m\]" "\[\e[0;31m\]" "\[\e[0;35m\]" "\[\e[0;33m\]" "\[\e[0;37m\]" "\[\e[1;30m\]" "\[\e[1;34m\]" "\[\e[1;32m\]" "\[\e[1;36m\]" "\[\e[1;31m\]" "\[\e[1;35m\]" "\[\e[1;32m\]" "\[\e[1;37m\]")
    PROMPT_COMMAND='let R=$RANDOM%16+0;color=${colors[$R]};PS1="${color}\u@\h:\w\$\[\e[0m\] "'

Maybe you are looking for

  • ITunes Says "Other" takes up 1.31 GB of memory on my ipod

    this makes it impossible for me to add anything to my ipod. it says that the "other" category (orange) takes up about 1/3 of my ipod. i have no album artwork on it. any ideas what could be causing this problem?

  • I cannot install Itunes 10.1.1 on Windows 7 x64...

    Hi all!! I bought my ipod touch two days ago. But I cannot install iTunes on my pc. I downloaded Itunes for x64 pc and I ran it as admin. So it starts and it stops ends the installation process and saying me -in italian language- "Si sono verificati

  • WRT54GS - No longer able to connect to internet

    Hello I've been using the WRT54GS for at least three years without any major problems. My set up has two main PCs, one in the basement we'll call F-PC and the other on the second floor we'll call M-PC. F-PC connects via wire to the WRT54GS, which in

  • [SOLVED] Linux kernel 3.6.2-1 issues on Macbook Pro 4,1

    After my recent system upgrade to linux-3.6.2-1, I ran into a couple noticeable issues on my laptop.  The first was the inability to use "mount -i /home/user", which is in my .bash_profile, to mount my encrypted home directory at login.  An error mes

  • HT2534 Do you need a credit card to download from the iTunes Store or App Store?

    you need a cretid car ? because i have my id apple but there say its not use in store i press ok and go to options and theres no none to options for pay what i have to do because i dont have any credit car or when i want to change the country there i