move to Trash, "error 70" in gmail context

265 views
Skip to first unread message

Mikael Kermorgant

unread,
Oct 24, 2016, 6:33:07 PM10/24/16
to mu-discuss
Hello,

I've been lately switching to emacs for various uses, and I'm thanks to mu4e (version 0.9.16) & mbsync in the process of setting up it for my mails.

It almost feels like I could begin using it but I just faced the error 70 after marking for deletion (d) a message from my gmail "All Mail" maildir.
Here is the log message :

         error in process filter: Error 70: error moving /home/kermorgant/mbsync/gmail/[Gmail].All Mail/new/1477232445.3194_12.myhost,U=60001:2, to /home/kermorgant/mbsync/gmail/gmail/[Gmail].Trash/cur/1477346408.fca0234a96f3c657.myhost:2,T

I guess the problem has to be related to the wrong path "/mbsync/gmail/gmail/[Gmail].Trash" being used (the gmail part should only appear once), that being related to how I've setup my 3 different accounts as 3 folders under ~/mbsync. Unfortunately, I can't find out  what's wrong with my setup. Perhaps should I start a new sync but that takes some time so I prefer to ask if there's something wrong with my config.

Here's the relevant header (for the deleted message) from mu4e's header pane : "Maildir: /[Gmail].All Mail"

Some details of my setup.

#### mbsyncrc ######
MaildirStore gmail-local
Path ~/mbsync/gmail
MapInbox ~/mbsync/gmail/INBOX

Channel gmail-inbox
Master :gmail-remote:
Slave :gmail-local:
Patterns "INBOX"
Create Both
Expunge Both
SyncState *

Channel gmail-trash
Master :gmail-remote:"[Gmail]/Trash"
Slave :gmail-local:"[Gmail].Trash"
Create Both
Expunge Both
SyncState *

Channel gmail-all
Master :gmail-remote:"[Gmail]/All Mail"
Slave :gmail-local:"[Gmail].All Mail"
Create Both
Expunge Both
SyncState *
#######################

Then, here is my maildir & gmail context definition :

/***===================== mu4e's setup =
(setq mu4e-maildir (expand-file-name "~/mbsync"))


    (setq  gmail-mu4e-context
        (make-mu4e-context
      :name "gmail"
      :enter-func (lambda () (mu4e-message "Switch to the Private context"))
      ;; leave-func not defined
      :match-func (lambda (msg)
            (when msg
              (mu4e-message-contact-field-matches msg
                :to "mikael.k...@gmail.com")))
      :vars '( (user-mail-address       . "mikael.k...@gmail.com"  )
           (user-full-name       . "Mikael Kermorgant" )
           (mu4e-compose-signature . (concat "--\n" "Mikael Kermorgant"))
                   (mu4e-drafts-folder .     "/gmail/[Gmail].Drafts")
                   (mu4e-sent-folder   .     "/gmail/[Gmail].Sent Mail")
                   (mu4e-trash-folder  .     "/gmail/[Gmail].Trash")
                   (mu4e-headers-skip-duplicates . t)
                   (mu4e-get-mail-command  . "mbsync gmail")
                   (mu4e-maildir-shortcuts .
                     (("/gmail/INBOX"               . ?i)
                      ("/gmail/[Gmail]/Starred"     . ?S)
                      ("/gmail/[Gmail].Sent Mail"   . ?s)
                      ("/gmail/[Gmail].Trash"       . ?t)
                      ("/gmail/[Gmail].All Mail"    . ?a)))
                   (mu4e-sent-messages-behavior 'delete)
       )))
=================

I'd welcome any help !
Thanks in advance
Mikael

Dirk-Jan C. Binnema

unread,
Oct 25, 2016, 1:02:34 PM10/25/16
to mu-di...@googlegroups.com
Hi Mikael,

On Monday Oct 24 2016, Mikael Kermorgant wrote:

> Hello,
>
> I've been lately switching to emacs for various uses, and I'm thanks to
> mu4e (version 0.9.16) & mbsync in the process of setting up it for my mails.
>
> It almost feels like I could begin using it but I just faced the error 70
> after marking for deletion (d) a message from my gmail "All Mail" maildir.
> Here is the log message :
>
> error in process filter: Error 70: error moving
> /home/kermorgant/mbsync/gmail/[Gmail].All
> Mail/new/1477232445.3194_12.myhost,U=60001:2, to
> /home/kermorgant/mbsync/gmail/gmail/[Gmail].Trash/cur/1477346408.fca0234a96f3c657.myhost:2,T
>
> I guess the problem has to be related to the wrong path
> "/mbsync/gmail/gmail/[Gmail].Trash" being used (the gmail part should only
> appear once), that being related to how I've setup my 3 different accounts
> as 3 folders under ~/mbsync. Unfortunately, I can't find out what's wrong
> with my setup. Perhaps should I start a new sync but that takes some time
> so I prefer to ask if there's something wrong with my config.


Hmmm... the synchronization shouldn't really matter when the folder
names are set correctly. Can't see anything obvious in your setup.

Perhaps there's another place where `mu4e-maildir' is set to something
ending with "gmail"? What does
C-h v mu4e-maildir RET
give you? And maybe try M-x apropos-value to find variables that contain
"gmail"?

Kind regards,
Dirk.


--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C

Mikael Kermorgant

unread,
Oct 25, 2016, 2:58:34 PM10/25/16
to mu-di...@googlegroups.com
Hello Dirk,

Thanks for having a look at my problem. I ran the commands as you said, perhaps will you spot something interesting in it (see output below).

I've also tried to move it to the trash of another account, and it has the same error for the same reason. From the little I see, I can only imagine the "gmail" part coming from the parent directory of the maildir.

So, C-h v mu4e-maildir says : Its value is "/home/kermorgant/mbsync"
M-x apropos-value outputs a lot of things I can't paste here, but the relevant parts would be :

----------------
mu4e-drafts-folder
   "/gmail/[Gmail].Drafts"

----------------
mu4e-get-mail-command
   "mbsync gmail"

----------------
mu4e-maildir-shortcuts
   (("/gmail/INBOX" . 105) ("/gmail/[Gmail]/Starred" . 83)
   ("/gmail/[Gmail].Sent Mail" . 115) ("/gmail/[Gmail].Trash" . 116)
   ("/gmail/[Gmail].All Mail" . 97))

----------------
mu4e-sent-folder
   "/gmail/[Gmail].Sent Mail"

----------------
mu4e-trash-folder
   "/gmail/[Gmail].Trash"

----------------
pattern
   ("gmail")

Regards,
Mikael



--
You received this message because you are subscribed to a topic in the Google Groups "mu-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mu-discuss/rTMr0FCEPIg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mu-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Mikael Kermorgant

Dirk-Jan C. Binnema

unread,
Nov 5, 2016, 5:54:58 AM11/5/16
to mu-di...@googlegroups.com

on [2016-10-25] at 21:58 Mikael Kermorgant wrote:

> Hello Dirk,
>
> Thanks for having a look at my problem. I ran the commands as you said,
> perhaps will you spot something interesting in it (see output below).
>
> I've also tried to move it to the trash of another account, and it has the
> same error for the same reason. From the little I see, I can only imagine
> the "gmail" part coming from the parent directory of the maildir.
>
> So, C-h v mu4e-maildir says : Its value is "/home/kermorgant/mbsync"
> M-x apropos-value outputs a lot of things I can't paste here, but the
> relevant parts would be :

Hmmm, nothing obvious. If you are using contexts, perhaps there it adds
a superflous "gmail"?

Otherwise, I suppose the way to track this down is to start with
emacs -Q and the most minimal setup (only mu4e-maildir and
mu4e-(inbox|sent|drafts|trash)-folder, and see if that helps.

Mikael Kermorgant

unread,
Dec 30, 2016, 7:57:34 PM12/30/16
to mu-di...@googlegroups.com

Dirk-Jan C. Binnema writes:

> on [2016-10-25] at 21:58 Mikael Kermorgant wrote:
>
>> Hello Dirk,
>>
>> Thanks for having a look at my problem. I ran the commands as you said,
>> perhaps will you spot something interesting in it (see output below).
>>
>> I've also tried to move it to the trash of another account, and it has the
>> same error for the same reason. From the little I see, I can only imagine
>> the "gmail" part coming from the parent directory of the maildir.
>>
>> So, C-h v mu4e-maildir says : Its value is "/home/kermorgant/mbsync"
>> M-x apropos-value outputs a lot of things I can't paste here, but the
>> relevant parts would be :
>
> Hmmm, nothing obvious. If you are using contexts, perhaps there it adds
> a superflous "gmail"?
>
> Otherwise, I suppose the way to track this down is to start with
> emacs -Q and the most minimal setup (only mu4e-maildir and
> mu4e-(inbox|sent|drafts|trash)-folder, and see if that helps.
>
> Kind regards,
> Dirk.
>
Hello Dirk,

Sorry for late reply, and thanks again for your help !

I've taken a break in my use of mu4e but have just got back into it, and
the issue has disapeared, without any u4e related change in my
configuration.

Regards,
--
Mikael

Florian Lindner

unread,
Jan 1, 2017, 10:07:50 AM1/1/17
to mu-di...@googlegroups.com
Please ignore, it's a test if I can post replies to that group. Posting new topics somehow does not work.

Or did somebody got this message?

Jan 01 16:00:49 venus postfix/smtp[22477]: D889472059A: to=<mu-di...@googlegroups.com>, relay=gmr-smtp-in.l.google.com[74.125.133.14]:25,
delay=0.44, delays=0.08/0.01/0.16/0.18, dsn=2.0.0, status=sent (250 2.0.0 OK 1483282849 d199si4257468wmd.1 - gsmtp)
> --
> You received this message because you are subscribed to the Google Groups "mu-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mu-discuss+...@googlegroups.com
> <mailto:mu-discuss+...@googlegroups.com>.

Eduardo Mercovich

unread,
Jan 1, 2017, 11:15:59 AM1/1/17
to Mu Discuss

I got Mikael"s message and your test too.
Best.

--
e


El ene 1, 2017 12:07 p.m., "Florian Lindner" <mailin...@xgm.de> escribió:
Please ignore, it's a test if I can post replies to that group. Posting new topics somehow does not work.

Or did somebody got this message?

Jan 01 16:00:49 venus postfix/smtp[22477]: D889472059A: to=<mu-discuss@googlegroups.com>, relay=gmr-smtp-in.l.google.com[74.125.133.14]:25,
> To unsubscribe from this group and stop receiving emails from it, send an email to mu-discuss+unsubscribe@googlegroups.com
> <mailto:mu-discuss+unsub...@googlegroups.com>.

> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "mu-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mu-discuss+unsubscribe@googlegroups.com.

Florian Lindner

unread,
Jan 1, 2017, 12:28:42 PM1/1/17
to mu-di...@googlegroups.com
Am 01.01.2017 um 17:15 schrieb Eduardo Mercovich:
> I got Mikael"s message and your test too.

Test means the message you just replied to?

Did you also get this one:

From: Florian Lindner <mailin...@xgm.de>
Subject: Don't report successful update in echo area
To: mu-discuss <mu-di...@googlegroups.com>
Message-ID: <1c7cc095-291d-6431...@xgm.de>
Date: Sun, 1 Jan 2017 16:00:48 +0100

This in the one the MTA log belows belongs to. And I find this message neither in my inbox nor in google groups web interface which really puzzles
me. Messages like that one are also delivered to me, so I assume it's not some "don't send my own messages to me" setting.

Best,
Florian


> Best.
>
> --
> e
>
>
> El ene 1, 2017 12:07 p.m., "Florian Lindner" <mailin...@xgm.de <mailto:mailin...@xgm.de>> escribió:
>
> Please ignore, it's a test if I can post replies to that group. Posting new topics somehow does not work.
>
> Or did somebody got this message?
>
> Jan 01 16:00:49 venus postfix/smtp[22477]: D889472059A: to=<mu-di...@googlegroups.com <mailto:mu-di...@googlegroups.com>>,
> relay=gmr-smtp-in.l.google.com <http://gmr-smtp-in.l.google.com>[74.125.133.14]:25,
> > :to "mikael.k...@gmail.com <mailto:mikael.k...@gmail.com>")))
> > :vars '( (user-mail-address . "mikael.k...@gmail.com <mailto:mikael.k...@gmail.com>" )
> > (user-full-name . "Mikael Kermorgant" )
> > (mu4e-compose-signature . (concat "--\n" "Mikael Kermorgant"))
> > (mu4e-drafts-folder . "/gmail/[Gmail].Drafts")
> > (mu4e-sent-folder . "/gmail/[Gmail].Sent Mail")
> > (mu4e-trash-folder . "/gmail/[Gmail].Trash")
> > (mu4e-headers-skip-duplicates . t)
> > (mu4e-get-mail-command . "mbsync gmail")
> > (mu4e-maildir-shortcuts .
> > (("/gmail/INBOX" . ?i)
> > ("/gmail/[Gmail]/Starred" . ?S)
> > ("/gmail/[Gmail].Sent Mail" . ?s)
> > ("/gmail/[Gmail].Trash" . ?t)
> > ("/gmail/[Gmail].All Mail" . ?a)))
> > (mu4e-sent-messages-behavior 'delete)
> > )))
> > =================
> >
> > I'd welcome any help !
> > Thanks in advance
> > Mikael
> >
> > --
> > You received this message because you are subscribed to the Google Groups "mu-discuss" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to mu-discuss+...@googlegroups.com
> <mailto:mu-discuss%2Bunsu...@googlegroups.com>
> > <mailto:mu-discuss+...@googlegroups.com <mailto:mu-discuss%2Bunsu...@googlegroups.com>>.
> > For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google Groups "mu-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mu-discuss+...@googlegroups.com
> <mailto:mu-discuss%2Bunsu...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google Groups "mu-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mu-discuss+...@googlegroups.com
> <mailto:mu-discuss+...@googlegroups.com>.

Dirk-Jan C. Binnema

unread,
Jan 2, 2017, 2:29:39 AM1/2/17
to mu-di...@googlegroups.com

On Sunday Jan 01 2017, Florian Lindner wrote:

> Am 01.01.2017 um 17:15 schrieb Eduardo Mercovich:
>> I got Mikael"s message and your test too.
>
> Test means the message you just replied to?
>
> Did you also get this one:

Please do not use the mailing list for your experiments.

Thanks,
Reply all
Reply to author
Forward
0 new messages