unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* mu4e: can't accept (M$ outlook) invitation
@ 2023-10-13 12:50 Edgar Lux
  0 siblings, 0 replies; only message in thread
From: Edgar Lux @ 2023-10-13 12:50 UTC (permalink / raw)
  To: Help Gnu Emacs; +Cc: djcb, mu-discuss

Hi. Sorry for the spam. "G00gle groups" (mailing list for mu4e) requires an account with their mail service to post, and I prefer not to have an account with Micro$oft (GitHub). I am having issues with my calendar (in general). I moved to mu4e (mbsync + msmtp) to see if this can improve my life (I'm new). Thank you in advance.

* Description of the situation
When I open a message with an invitation and hit on Accept (with the point or mouse):

    >>>   Attachments: [2. text/plain] [3. text/calendar]...
    >>>   [ Uninvited Accept ]    [ Uninvited Tentative ]    [ Uninvited Decline ]    

I am getting the following message:

    >>>   message-position-on-field: Search failed: "^--text follows this line--$"

This seems triggered by =gnus-icalendar-reply=.


* Expected behaviour

I would like the event to show up in Org Agenda (org-diary) or be added to a specific file.

* System

(mu4e-server-version)
"1.10.7" 

(emacs-version)
GNU Emacs 29

I don't have any extensions to mu4e, that I know.


* Extra config

The following was tested with emacs -q

(when
    (file-directory-p "/usr/share/emacs/site-lisp/mu4e/")
  (add-to-list
   'load-path "/usr/share/emacs/site-lisp/mu4e/")
  (autoload 'mu4e "mu4e" "Launch mu4e and show the main window" t))
(with-eval-after-load "mu4e"
    ;; https://thanosapollo.com/posts/guide-mu4e/
    (require 'mu4e nil 'noerror)

  ;; https://jherrlin.github.io/posts/emacs-mu4e/
  (require 'mu4e-org)
  (require 'mu4e-contrib)
  (setq
   mu4e-compose-complete-addresses t
   mu4e-compose-dont-reply-to-self t
   mu4e-compose-keep-self-cc nil
  ;; works better with mbsync
   mu4e-change-filenames-when-moving t
  ;;  mu4e-completing-read-function 'completing-read
   mu4e-headers-include-related t
   mu4e-view-show-addresses t
   ;; Use when needed
   auth-source-debug t
   mu4e-view-show-images t)

  ;; https://augfab.dev/blog/email-in-emacs.html#orgab89204
  (setq
   ;; mail-user-agent 'mu4e-user-agent
   mu4e-headers-date-format "%Y-%m-%d %H:%M"

   mu4e-headers-fields '((:human-date    . 20)
                         (:flags   . 6)
                         (:from    . 30)
                         (:subject . nil))

   ;; Don't keep buffers lying around
   message-kill-buffer-on-exit t
   ;; use the From: header of the message.
   message-sendmail-envelope-from 'header
   ;; ;; ?
   ;; send-mail-function 'smtpmail-send-it
   ;; ;; obsolete, but...
   ;; message-send-mail-function 'smtpmail-send-it
   )

  (setq
   mail-default-directory "~/mydoc/mail/WK/Inbox"
   ;; From ~/mydoc/mail
   mu4e-contexts
   `( ,(make-mu4e-context
          :name "Work"
          :leave-func (lambda ()
                        (mu4e-clear-caches)
                        ;; https://jherrlin.github.io/posts/emacs-mu4e/
                        (when
                            (string-match-p
                             (buffer-name (current-buffer))
                             "mu4e-main")
                          (revert-buffer)))

          :vars '((mu4e-maildir . "/WK/Inbox")
                  (user-mail-address  . "edgar@work.boo")
                  (user-full-name . "Edgar")
                  (mu4e-attachment-dir . "/WK/Attachments")
                  (mu4e-sent-folder . "/WK/Sent Items")
                  (mu4e-drafts-folder . "/WK/Drafts")
                  (mu4e-trash-folder . "/WK/Trash")
                  ;; https://systemcrafters.net/emacs-mail/compose-and-send-email/
                  (mu4e-compose-signature . (concat
                                             "Office\n"
                                             "Place @\n"
                                             "Work"))
                  (mu4e-maildir-shortcuts . ((:maildir "/WK/Inbox" :key ?i)))
                  ;; Use torsocks with msmtp
                  (sendmail-program . "msmtp")
                  ;; (message-sendmail-extra-arguments . ("--proxy-host=127.0.0.1" "--proxy-port=9050"))
                  ;; Use torsocks with mbsync
                  (mu4e-get-mail-command . "torsocks mbsync -a")))))

  ;; My modifications
  (setq
   ;; My modifications
   ;; Use torsocks with msmtp
   sendmail-program "/usr/bin/torsocks -i msmtp"
   ;; Set the function to use to send mail
   ;; https://macowners.club/posts/email-emacs-mu4e-macos/
   send-mail-function 'message-send-mail-with-sendmail
   message-send-mail-function 'message-send-mail-with-sendmail
   ;; Use torsocks with mbsync
   mu4e-get-mail-command "torsocks mbsync -a -V -Dn"
   mu4e-context-policy 'pick-first
   ;; Don't wrap text
   mu4e-compose-format-flowed nil
   ;; https://miikanissi.com/blog/email-setup-with-mbsync-mu4e/
   mu4e-confirm-quit nil
   ;; Remove system's user-name from the header
   ;; https://tushartyagi.com/blog/configure-mu4e-and-msmtp/
   message-sendmail-f-is-evil t
   ;; https://tushartyagi.com/blog/configure-mu4e-and-msmtp/
   message-send-mail-function 'message-send-mail-with-sendmail
   ;; This causes msmtp to read the sending address from the
   ;; header of the message and use that to get the
   ;; configuration for sending the email. This also means
   ;; that the individual contexts in mu4e are pretty slim
   ;; as well as the configuration for ports, endpoints,
   ;; etc. can be moved out.
   message-sendmail-extra-arguments '("--read-envelope-from")
   ;; https://thanosapollo.com/posts/guide-mu4e/
   ;; Number of seconds between mail retrieval/indexing
   mu4e-update-interval (* 5 60)
   ;; enable notifications
   mu4e-notification-support t
   ;; Threads, no threads?
   ;; https://www.djcbsoftware.nl/code/mu/mu4e/Sorting-and-threading.html
   ;; see also https://www.reddit.com/r/emacs/comments/9px6xu/working_thread_workflow_for_mu4e_in_emacs/ https://github.com/djcb/mu/issues/1657
   mu4e-search-threads nil)

  ;; ;; Don't reply to myself
  ;; (add-to-list
  ;;  'mu4e-compose-reply-ignore-address "edgar@work.boo")

  ;; Add Bcc, based on:
  ;; https://www.djcbsoftware.nl/code/mu/mu4e/Compose-hooks.html
  (add-hook 'mu4e-compose-mode-hook
            (defun my-add-bcc () "Add a Bcc: header."
                   (save-excursion
                     (message-add-header
                      "Bcc: edgarlux@cryptolab.net\n"))))
  ;; Add full name to headers of e-mail, based on:
  ;; https://www.djcbsoftware.nl/code/mu/mu4e/Compose-hooks.html
  (add-hook 'mu4e-compose-mode-hook
            (defun official-full-name () "Add my full name"
                   (setq user-full-name "Edgar")))
  )

# --- .msmtprc
account         work-staff-smtp
logfile         ~/.cache/msmtp/work-staff-smtp.log
from            edgar@work.boo
# from_full_name  Edgar
host            smtps.work.boo
port            44
proxy_host      127.0.0.1
proxy_port      950
user            user@work.boo
passwordeval    gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.password-store/work.boo.gpg
auth            on
tls             on
tls_starttls    off
tls_trust_file  /etc/ssl/certs/ca-certificates.crt

account default : work-staff-smtp
# --- end .msmtprc

# --- .mbsyncrc
# Global options
CopyArrivalDate yes

# Sections (?)

# Work staff
IMAPAccount work-staff
# Address to connect to
Host imaps.work.boo
User user@work.boo
# To store the password in an encrypted file use PassCmd instead of Pass
# (the file at the end is related to =pass insert work.boo=)
PassCmd "gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.password-store/work.boo.gpg"
#
# Use TLS
SSLType IMAPS
# The following line should work. If you get certificate errors, uncomment the two following lines and read the "Troubleshooting" section.
CertificateFile /etc/ssl/certs/ca-certificates.crt

IMAPStore work-staff-remote
Account work-staff
# # Consider
# SubscribedOnly yes

MaildirStore work-staff-local
# The trailing "/" is important
Path ~/Documentos/Correos/KU/staff/
Inbox ~/Documentos/Correos/KU/staff/Inbox
SubFolders Verbatim

Channel work-staff
Far :work-staff-remote:
Near :work-staff-local:
# Only synchronise this
Patterns "INBOX" "Sent Items" "Trash" "Notifications"
Create Near
# Sync the movement of messages between folders and deletions, add after making sure the sync works
Expunge None
# Save the synchronization state files in the relevant directory
SyncState *
Sync All
# --- end .mbsyncrc

-- 
Sent with https://mailfence.com  
Secure and private email



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-13 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-13 12:50 mu4e: can't accept (M$ outlook) invitation Edgar Lux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).