Delete and trash: differences and sycn

0 views
Skip to first unread message

Alex Popescu

unread,
Jul 20, 2024, 10:05:13 AM (7 days ago) Jul 20
to mu-discuss
Hi,

I have to start by saying that 1) I'm a mu newbie; 2) I haven't been very successful in setting it all up.

I have tried to set things up on an Intel MacBookPro with an Office365 backend (not my choice).

1. I have davmail running
2. I have configured mbsync
3. I have setup mu in Emacs.

I am currently trying to understand the difference between the actions Delete and Trash.
What I noticed and needed your help to confirm is the expected behavior and not the result of misconfiguration:

1. delete permanently deletes a message; there is no undo
2. trash moves the email to the designated trash and marks the email as trashed
3. both these operations are reflected on the server side
   3.1 but neither the trashed, nor deleted emails are moved into the outlook "Deleted Items" (basically in both cases the messages are permanently deleted from server)

I have added below some of the configurations.

I'd appreciate any help and ideas on how to get this working and understand the behavior.

with gratitude,
Alex

.mbsyncrc

```
IMAPAccount work
Host 127.0.0.1
Port 5001
User USERNAME
PassCmd "security find-generic-password -a umail -s mbsync -w"
SSLType None
AuthMechs LOGIN

IMAPStore work-remote
Account work

MaildirStore work-local
Path ~/.local/share/mail/work/
Inbox ~/.local/share/mail/work/Inbox
Subfolders Verbatim

Channel work
Far :work-remote:
Near :work-local:
SyncState *
Patterns "INBOX"
Patterns "Archive"
Patterns "01.FollowUp"
Patterns "02.Hold"
Patterns "03.AwaitingReply"
Patterns !"Archive/*"
Patterns !"00_xF8FF_ApproveNow" !"20-people"
Create Both
Sync All
Expunge Both
MaxMessages 1000
```

Emacs init.el

```
(use-package mu4e
  :if (string-equal "alexandp-mac" (system-name))
  :load-path "/usr/local/share/emacs/site-lisp/mu/mu4e"
  :init
  (setq message-send-mail-function 'smtpmail-send-it
        smtpmail-smtp-server "localhost"
        smtpmail-smtp-port 5003
        smtpmail-smtp-user "USERNAME"
        smtpmail-stream-type 'plain)
  (setq mu4e-change-filenames-when-moving t
        mu4e-maildir "~/.local/share/mail/work"
        ;; note that these folders below must start with /
        ;; the paths are relative to maildir root
        mu4e-sent-folder   "/Sent"
        mu4e-drafts-folder "/Drafts"
        mu4e-trash-folder  "/Trash"
        mu4e-refile-folder "/Archive"
        mu4e-attachments-dir "~/Downloads"
        )
  (setq mu4e-headers-fields
        '((:human-date . 16)
          (:flags . 6)
          (:from-or-to . 22)
          (:thread-subject . nil)))
  ;; this setting allows to re-sync and re-index mail
  ;; by pressing U
  (setq mu4e-get-mail-command  "mbsync -a"
        mu4e-update-interval (* 60 60)
        mu4e-index-cleanup nil
        mu4e-index-lazy-check t)
  (setq mu4e-html2text-command 'mu4e-shr2text
        mu4e-use-fancy-chars nil
        mu4e-view-show-images t
        mu4e-search-skip-duplicates nil
        mu4e-headers-skip-duplicates nil
        mu4e-date-format "%y-%m-%dT%H:%M"
        mu4e-headers-date-format "%Y-%m-%dT%H:%M"
        mu4e-headers-time-format "%Y-%m-%dT%H:%M"))
```
Reply all
Reply to author
Forward
0 new messages