Adding all contacts to org-mode

43 views
Skip to first unread message

Ben Mezger

unread,
Aug 21, 2021, 11:25:02 AM8/21/21
to mu-di...@googlegroups.com

I wonder if there is anyway to get mu4e to update all contact to an org-mode file.

I have the following setup

(setq mu4e-org-contacts-file "~/workspace/org/contacts.org")

(add-to-list 'mu4e-headers-actions
             '("org-contact-add" . mu4e-action-add-org-contact) t)
(add-to-list 'mu4e-view-actions
             '("org-contact-add" . mu4e-action-add-org-contact) t)

This enables manually adding a contact, but I wonder if there is any bulk option (after mu’s index or whatever)

stardiviner

unread,
Nov 2, 2021, 9:53:24 PM11/2/21
to mu4e
This should be possible in theory. You need to write that mu4e-action-add-org-contact function.
Is there any update on this? Do you mind to share them here?
Thanks

[stardiviner]           <Hack this world!>      GPG key ID: 47C32433
IRC(freeenode): stardiviner                     Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/mu-discuss/m2zgta7rcn.fsf%40benmezger.nl.
--
Kind regards,
Met een vriendelijke groet,
Atenciosamente,

Ben Mezger

https://seds.nl
https://github.com/benmezger

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/mu-discuss/m2zgta7rcn.fsf%40benmezger.nl.

Dirk-Jan C. Binnema

unread,
Nov 3, 2021, 3:07:34 AM11/3/21
to mu-di...@googlegroups.com

On Wednesday Nov 03 2021, stardiviner wrote:

> This should be possible in theory. You need to write that
> mu4e-action-add-org-contact function.
> Is there any update on this? Do you mind to share them here?
> Thanks
>
> [stardiviner] <Hack this world!> GPG key ID: 47C32433
> IRC(freeenode): stardiviner Twitter: @numbchild
> Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433
> Blog: http://stardiviner.github.io/
>
>
> On Sat, Aug 21, 2021 at 11:25 PM Ben Mezger <m...@benmezger.nl> wrote:
>
>> I wonder if there is anyway to get mu4e to update all contact to an
>> org-mode file.
>>
>> I have the following setup
>>
>> (setq mu4e-org-contacts-file "~/workspace/org/contacts.org")
>> (add-to-list 'mu4e-headers-actions
>> '("org-contact-add" . mu4e-action-add-org-contact) t)(add-to-list 'mu4e-view-actions
>> '("org-contact-add" . mu4e-action-add-org-contact) t)
>>
>> This enables manually adding a contact, but I wonder if there is any bulk
>> option (after mu’s index or whatever)

There's
$ mu cfind --format=org-contact

but to be honest, mu contacts are mostly useful for autocompletion, not
so much for an 'address book'.

Kind regards,
Dirk.

--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl
gpg: 6987 9CED 1745 9375 0F14 DA98 11DD FEA9 DCC4 A036

Christopher M. Miles

unread,
Nov 4, 2021, 1:38:14 AM11/4/21
to mu-di...@googlegroups.com, Dirk-Jan C. Binnema

"Dirk-Jan C. Binnema" <dj...@djcbsoftware.nl> writes:

On Wednesday Nov 03 2021, stardiviner wrote:

This should be possible in theory. You need to write that mu4e-action-add-org-contact function. Is there any update on this? Do you mind to share them here? Thanks

[stardiviner] <Hack this world!> GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/

On Sat, Aug 21, 2021 at 11:25 PM Ben Mezger <m...@benmezger.nl> wrote:

I wonder if there is anyway to get mu4e to update all contact to an org-mode file.

I have the following setup

(setq mu4e-org-contacts-file "~/workspace/org/contacts.org") (add-to-list 'mu4e-headers-actions '("org-contact-add" . mu4e-action-add-org-contact) t)(add-to-list 'mu4e-view-actions '("org-contact-add" . mu4e-action-add-org-contact) t)

This enables manually adding a contact, but I wonder if there is any bulk option (after mu’s index or whatever)

There's $ mu cfind –format=org-contact


but to be honest, mu contacts are mostly useful for autocompletion, not so much for an 'address book'.

This is very helpful!! thanks Dirk.

Kind regards, Dirk.

– Dirk-Jan C. Binnema Helsinki, Finland e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl gpg: 6987 9CED 1745 9375 0F14 DA98 11DD FEA9 DCC4 A036

Reply all
Reply to author
Forward
0 new messages