From: Michael Albinus <michael.albinus@gmx.de>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] [debbugs] Add mu4e support.
Date: Fri, 28 Apr 2017 15:22:01 +0200 [thread overview]
Message-ID: <87r30cwtty.fsf@detlef> (raw)
In-Reply-To: <87y3ursale.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 23 Apr 2017 12:05:17 +0200")
Ricardo Wurmus <rekado@elephly.net> writes:
> Hi,
Hi Ricardo,
> this patch is for the debbugs.el EPLA package. It adds the mail client
> “mu4e” as a debbugs-gnu mail backend.
>
> When “debbugs-gnu-mail-backend” is set to “'mu4e”, visiting a bug will
> download the bug’s mbox file, turn it into a separate Maildir tree under
> “mu4e-maildir” called “emacs-debbugs.1234” where “1234” is the bug id,
> runs “mu index” (synchronously) to update the mail database, and then
> shows the emails as usual with mu4e.
>
> I’ve been using this patch for a while with satisfactory results.
I've played with this. First of all, I had to install mu 0.9.9.5 from
the source tarball; I didn't find it as package. I've compiled it, there
were errors in compiling mu and warnings in compiling mu4e. Well, I
don't care too much; I don't want to use it myself.
After applying your patch to debbugs-gnu.el, there are further warnings:
--8<---------------cut here---------------start------------->8---
In toplevel form:
packages/debbugs/debbugs-gnu.el:1346:1:Warning: Unused lexical argument
‘merged’
In debbugs-read-emacs-bug-with-mu4e:
packages/debbugs/debbugs-gnu.el:1354:27:Warning: reference to free variable
‘mu4e-maildir’
packages/debbugs/debbugs-gnu.el:1366:13:Warning: assignment to free variable
‘start’
packages/debbugs/debbugs-gnu.el:1369:15:Warning: assignment to free variable
‘end’
packages/debbugs/debbugs-gnu.el:1374:57:Warning: reference to free variable
‘start’
packages/debbugs/debbugs-gnu.el:1371:21:Warning: reference to free variable
‘end’
--8<---------------cut here---------------end--------------->8---
And indeed, after setting debbugs-gnu-mail-backend to 'mu4e, I've got
the error
debbugs-gnu-select-report: Symbol’s value as variable is void: mu4e-maildir
So I've loaded mu4e.el. Now I get the error
debbugs-read-emacs-bug-with-mu4e: Wrong number of arguments: #[(&optional expr prompt edit ignore-history) "Ä\b
The rest of the backtrace cannot be added to this email due to non-ASCII
characters.
Some comments to your code:
> +(defun debbugs-read-emacs-bug-with-mu4e (id status merged)
> + "Read email exchange for debbugs bug ID.
> +STATUS is the bug's status list.
> +MERGED is the list of bugs merged with this one."
> + (let* ((bug-str (number-to-string id))
> + (tmpdir "/tmp")
Pls use temporary-file-directory.
> + (mbox (concat tmpdir "/bug-" bug-str ".mbox"))
> + (subdir (concat "/emacs-debbugs." bug-str))
> + (maildir (concat mu4e-maildir subdir)))
> + ;; Create temporary maildir structure
> + (dolist (dir '("cur" "new" "tmp"))
> + (make-directory (concat maildir "/" dir) t))
Please use expand-file-name where appropriate.
Could you, pls, try to fix these problems? And don't forget the
contribution to debbugs-ug.texi.
> Ricardo
Best regards, Michael.
next prev parent reply other threads:[~2017-04-28 13:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-23 10:05 [PATCH] [debbugs] Add mu4e support Ricardo Wurmus
2017-04-23 17:53 ` Marcin Borkowski
2017-04-23 18:26 ` Michael Albinus
2017-04-28 13:22 ` Michael Albinus [this message]
2017-04-28 14:44 ` Stefan Monnier
2017-05-07 11:45 ` Ricardo Wurmus
2017-05-09 13:19 ` Michael Albinus
-- strict thread matches above, loose matches on Subject: below --
2022-12-24 14:46 Felix
2022-12-24 15:04 ` Eli Zaretskii
2022-12-24 15:28 ` Felix
2022-12-24 15:47 ` Eli Zaretskii
2022-12-24 15:45 ` Felix
2022-12-24 16:26 ` Eli Zaretskii
2022-12-25 9:33 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r30cwtty.fsf@detlef \
--to=michael.albinus@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.