Re: [O] rmail: difficulty

2014-01-04 Thread François Pinard
Bastien  writes:
> François Pinard  writes:

>> - rmail:~/ubity/Mail/admin

> This is now fixed, thanks for reporting this!

Thanks, it now works! :-)

François



Re: [O] rmail: difficulty

2014-01-04 Thread Bastien
Hi François,

François Pinard  writes:

> Hi, Org people.
>
> In one of my Org files, I have:
>
> - rmail:~/ubity/Mail/admin
>
> Of course, ~/ubity/Mail/admin is an mbox format email folder.  Whenever
> I mouse-click on it (or use C-c C-o), I get this error:

This is now fixed, thanks for reporting this!

-- 
 Bastien



[O] rmail: difficulty

2013-11-28 Thread François Pinard
Hi, Org people.

In one of my Org files, I have:

- rmail:~/ubity/Mail/admin

Of course, ~/ubity/Mail/admin is an mbox format email folder.  Whenever
I mouse-click on it (or use C-c C-o), I get this error:


Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  org-add-angle-brackets(nil)
  org-rmail-follow-link(#("~/ubity/Mail/admin" 0 17 (wrap-prefix #("" 0 4 
(face org-indent)) line-prefix #("  " 0 2 (face org-indent)) keymap (keymap 
(down-mouse-3 . org-mouse-move-tree-start) (drag-mouse-3 . org-mouse-move-tree) 
(C-down-mouse-1 . org-mouse-move-tree-start) (C-drag-mouse-1 . 
org-mouse-move-tree) (follow-link . mouse-face) (mouse-3) (mouse-2 . 
org-open-at-mouse)) htmlize-link (:uri "rmail:~/ubity/Mail/admin") face 
org-link mouse-face highlight org-category "Ubity" fontified t) 17 18 
(wrap-prefix #("" 0 4 (face org-indent)) line-prefix #("  " 0 2 (face 
org-indent)) rear-nonsticky (mouse-face highlight keymap invisible intangible 
help-echo org-linked-text htmlize-link) keymap (keymap (down-mouse-3 . 
org-mouse-move-tree-start) (drag-mouse-3 . org-mouse-move-tree) (C-down-mouse-1 
. org-mouse-move-tree-start) (C-drag-mouse-1 . org-mouse-move-tree) 
(follow-link . mouse-face) (mouse-3) (mouse-2 . org-open-at-mouse)) 
htmlize-link (:uri "rmail:~/ubity/Mail/admin") face org-link mouse-face 
highlight org-category "Ubity" fontified t)) nil)
  org-rmail-open(#("~/ubity/Mail/admin" 0 17 (fontified t org-category "Ubity" 
mouse-face highlight face org-link htmlize-link (:uri 
"rmail:~/ubity/Mail/admin") keymap (keymap (down-mouse-3 . 
org-mouse-move-tree-start) (drag-mouse-3 . org-mouse-move-tree) (C-down-mouse-1 
. org-mouse-move-tree-start) (C-drag-mouse-1 . org-mouse-move-tree) 
(follow-link . mouse-face) (mouse-3) (mouse-2 . org-open-at-mouse)) line-prefix 
#("  " 0 2 (face org-indent)) wrap-prefix #("" 0 4 (face org-indent))) 17 
18 (fontified t org-category "Ubity" mouse-face highlight face org-link 
htmlize-link (:uri "rmail:~/ubity/Mail/admin") keymap (keymap (down-mouse-3 . 
org-mouse-move-tree-start) (drag-mouse-3 . org-mouse-move-tree) (C-down-mouse-1 
. org-mouse-move-tree-start) (C-drag-mouse-1 . org-mouse-move-tree) 
(follow-link . mouse-face) (mouse-3) (mouse-2 . org-open-at-mouse)) 
rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo 
org-linked-text htmlize-link) line-prefix #("  " 0 2 (face org-indent)) 
wrap-prefix #("" 0 4 (face org-indent)
  ad-Orig-org-open-at-point(nil nil)
  org-open-at-point()
  org-open-at-mouse((mouse-2 (# 33203 (93 . 575) 
15998773 nil 33203 (11 . 34) nil (5 . 14) (8 . 17
  call-interactively(org-open-at-mouse nil nil)


The problem seems to be related to the fact a #message-id is not given
in the link, which is (happily!) allowed as per the Org manual.


I also have two little suggestions in the same area.

If message-id (in the #message-id suffix) has the form of a decimal
number, maybe it could be taken as the message number to display?  This
is surely ill-designed and flaky, yet #1 would mean the first message.

If a #message-id suffix is not given, there is no reason to prominently
display a particular message, so org-rmail might use rmail-summary to
show a summary of all messages.  This seems the useful thing to do.

François