<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I've been tasked with migrating a smallish (@90 mailboxes) company
    from a linux/dovecot mail server to Office 365, and after
    experiencing a ton of issues with Microsoft's native Imap syncing
    tool, I decided to use Imapsync, and it is working perfectly.<br>
    <br>
    It has the ability to add a simple regex translation for mapping
    folders of different names - mainly used for the special use folders
    that can have different names depending on the server/client
    involved.<br>
    <br>
    Ie, dovecot/Thunderbird use 'Sent', 'Trash' and 'Junk', while
    Office65/Outlook use 'Sent Items', 'Deleted Items' and 'Junk
    Emails'.<br>
    <br>
    So, a few simple regex lines in the ImapSync commandline options and
    problem solved:<br>
    <br>
    --regextrans2 's/Sent$/Sent Items/' \<br>
    --regextrans2 's/Trash$/Deleted Items/' \<br>
    --regextrans2 's/Junk$/Junk Email/' \<br>
    <br>
    <div class="moz-signature">I do use a few more to catch a few other
      cases, but you get the idea.<br>
      <br>
      I'd be surprised if rsync can't do something similar?<br>
      <br>
      Charles<br>
      <br>
      <br>
    </div>
    <div class="moz-cite-prefix">On 6/7/2015 12:38 PM, Gionata Boccalini
      <a class="moz-txt-link-rfc2396E" href="mailto:gionata.boccalini@gmail.com"><gionata.boccalini@gmail.com></a> wrote:<br>
    </div>
    <blockquote
cite="mid:CAEp4-geQ3+-GxoGY3SSQGZqcSByTMXG9dNGuNyFxY91RfVQmzg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hello everyone,<br>
                <br>
              </div>
              I'm new to this mailing list but I have been using rsync
              for some years up to now.<br>
            </div>
            I'm trying to synchronize two directory trees, but I want a
            special behavior that I didn't find on the net nor in the
            manual (or maybe there is a combination of options to get
            what I want but I couldn't find it).<br>
            <br>
          </div>
          Tree A is like:<br>
          <br>
        </div>
        A<br>
          *<br>
          *<br>
        <div>
          <div>   FolderA<br>
              *<br>
              *<br>
            <br>
            And tree B (on a remote filesystem) is like:<br>
            <br>
          </div>
          <div>B<br>
          </div>
          <div>  *<br>
              *<br>
              *<br>
            <div>   FolderB<br>
                *<br>
                *<br>
              <br clear="all">
            </div>
            <span style="color:rgb(102,102,102)"></span><br>
          </div>
          <div>I have to synchronize everything in one rsync run, like <br>
          </div>
          <div>rysnc  -arv  A/  B/<br>
            <br>
          </div>
          <div>but I want FolderA to be synchronized with FolderB. <br>
            They must contain the same files but have a different name!
            I want something like a "directory name translation" in the
            rsync run...<br>
          </div>
          <div>Is it possible? Do you see any another way of doing this?
            (A part of using two rsync runs....)<br>
          </div>
          <div>Please let me know if I didn't explain the problem
            correctly or you need further information.<br>
          </div>
          <div>Thank you for your attention and time.<br>
          </div>
          <div>Best regards.</div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div class="gmail_signature">
                      <div dir="ltr">
                        <div><span style="color:rgb(102,102,102)"><i>_______________<br>
                              <br>
                              Gionata Boccalini</i></span><br>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>