Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. Imapsync - Installation and use

Imapsync - Installation and use

Scheduled Pinned Locked Moved Selfhosted
imapsync
7 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • abeorch@friendica.ginestes.esA This user is from outside of this forum
    abeorch@friendica.ginestes.esA This user is from outside of this forum
    [email protected]
    wrote on last edited by
    #1
    - I'm not amazingly skilled when it comes to Linux but I'm working through installing and testing #imapsync - imapsync.lamiral.info on Debian following these instructions imapsync.lamiral.info/INSTALL.… - I'm a bit confused as it talks about example config files in a configuration directory but being a bit of a dunce I'm not sure where these would have been installed and where I should be creating config files for imapsync. My objective is to eventually sync my Gmail across to another email account I have via IMAP.
    krik@lemmy.dbzer0.comK S 2 Replies Last reply
    1
    0
    • System shared this topic on
    • abeorch@friendica.ginestes.esA [email protected]
      - I'm not amazingly skilled when it comes to Linux but I'm working through installing and testing #imapsync - imapsync.lamiral.info on Debian following these instructions imapsync.lamiral.info/INSTALL.… - I'm a bit confused as it talks about example config files in a configuration directory but being a bit of a dunce I'm not sure where these would have been installed and where I should be creating config files for imapsync. My objective is to eventually sync my Gmail across to another email account I have via IMAP.
      krik@lemmy.dbzer0.comK This user is from outside of this forum
      krik@lemmy.dbzer0.comK This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      Usually config directories and file are found in /etc. I guess there's a /etc/imapsync/imapsync.conf
      If there isn't then the conf-file(s) should be somewhere in the /home directory.

      Try the man page if one exists. That one should explain everything: man imapsync

      abeorch@friendica.ginestes.esA 1 Reply Last reply
      0
      • krik@lemmy.dbzer0.comK [email protected]

        Usually config directories and file are found in /etc. I guess there's a /etc/imapsync/imapsync.conf
        If there isn't then the conf-file(s) should be somewhere in the /home directory.

        Try the man page if one exists. That one should explain everything: man imapsync

        abeorch@friendica.ginestes.esA This user is from outside of this forum
        abeorch@friendica.ginestes.esA This user is from outside of this forum
        [email protected]
        wrote on last edited by
        #3
        @Krik Yeah no man page and /etc/imapsync doesn't exist - I've also had a look at the documentation on the site (imapsync.lamiral.info/ but the documentation feels a bit free form - I mean Hey its free software I don't expect anything - I have managed to get it running using the example config I found on the site and just creating a folder in a subdirectory of my ~/ and seem to be making some progress with some dry runs. I'm actually hoping to move emails into my email account running on #yunohost.
        1 Reply Last reply
        0
        • abeorch@friendica.ginestes.esA [email protected]
          - I'm not amazingly skilled when it comes to Linux but I'm working through installing and testing #imapsync - imapsync.lamiral.info on Debian following these instructions imapsync.lamiral.info/INSTALL.… - I'm a bit confused as it talks about example config files in a configuration directory but being a bit of a dunce I'm not sure where these would have been installed and where I should be creating config files for imapsync. My objective is to eventually sync my Gmail across to another email account I have via IMAP.
          S This user is from outside of this forum
          S This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #4

          Imapsync is a (PERL?) script you download, and then run it passing parameters.

          If you need OAuth, and it seems so since you want to sync a Google account, you have to download some more files that help you obtain an access token for Gmail.

          But as far as I remember, there are no config files needed to run it.
          Infact I am cron running it every 5 minutes to one way sync an IMAP account to Office365 (needs an OAuth token too, and a second script to refresh the token every hour)

          Feel free to ask for more, but I cannot guarantee a timely response.

          abeorch@friendica.ginestes.esA 1 Reply Last reply
          0
          • S [email protected]

            Imapsync is a (PERL?) script you download, and then run it passing parameters.

            If you need OAuth, and it seems so since you want to sync a Google account, you have to download some more files that help you obtain an access token for Gmail.

            But as far as I remember, there are no config files needed to run it.
            Infact I am cron running it every 5 minutes to one way sync an IMAP account to Office365 (needs an OAuth token too, and a second script to refresh the token every hour)

            Feel free to ask for more, but I cannot guarantee a timely response.

            abeorch@friendica.ginestes.esA This user is from outside of this forum
            abeorch@friendica.ginestes.esA This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #5

            @Socket462 Thanks yeah. I think you are right. I have managed to have some success with extracting emails from #Gmail using #imapsync. I've done a couple of test runs but think that I have an issue with labels (basically I end up with emails in the All Mail folder but not in Sent or Inbox ) so I think I need to look at the options a bit.

            Where should I / would you keep scripts that I create to run either one off or on a regular basis ? Should I create a folder in /etc/imapsync ? I have never really understood the folder structure of Linux despite trying to read up on it a few times.

            S 1 Reply Last reply
            0
            • abeorch@friendica.ginestes.esA [email protected]

              @Socket462 Thanks yeah. I think you are right. I have managed to have some success with extracting emails from #Gmail using #imapsync. I've done a couple of test runs but think that I have an issue with labels (basically I end up with emails in the All Mail folder but not in Sent or Inbox ) so I think I need to look at the options a bit.

              Where should I / would you keep scripts that I create to run either one off or on a regular basis ? Should I create a folder in /etc/imapsync ? I have never really understood the folder structure of Linux despite trying to read up on it a few times.

              S This user is from outside of this forum
              S This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #6

              You can remap IMAP source folder to destination folder. It's very likely that sent folder needs to be remapped between different hosts.
              I suggest you to use the dry-run option and examine the log to see if the folders are correctly mapped.

              More in detail, I created an user just to run imapsync as a good practice in Linux.
              Then downloaded imapsync in a subfolder of the user home directory, created two very simple scripts, one with the imapsync command with all the parameters I needed and one for the token.
              Lastly, using crontab -e, I added two entry one for each script.

              You don't need to put imapsync into etc, it is not a binary and, as far as I know, there is no package that you can install with a package manager, it's just a script that you download and execute. Anyway, where you put that, its up to you.

              abeorch@friendica.ginestes.esA 1 Reply Last reply
              0
              • S [email protected]

                You can remap IMAP source folder to destination folder. It's very likely that sent folder needs to be remapped between different hosts.
                I suggest you to use the dry-run option and examine the log to see if the folders are correctly mapped.

                More in detail, I created an user just to run imapsync as a good practice in Linux.
                Then downloaded imapsync in a subfolder of the user home directory, created two very simple scripts, one with the imapsync command with all the parameters I needed and one for the token.
                Lastly, using crontab -e, I added two entry one for each script.

                You don't need to put imapsync into etc, it is not a binary and, as far as I know, there is no package that you can install with a package manager, it's just a script that you download and execute. Anyway, where you put that, its up to you.

                abeorch@friendica.ginestes.esA This user is from outside of this forum
                abeorch@friendica.ginestes.esA This user is from outside of this forum
                [email protected]
                wrote on last edited by
                #7

                @Socket462 Yeah I did some dry runs and the folders maoped but I think its something about the labels .. Ill dig further.

                That info about running via cron is really useful.

                1 Reply Last reply
                0
                • System shared this topic on
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups