From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Edgar Lux Newsgroups: gmane.emacs.help,gmane.mail.mu.general Subject: mu4e: can't accept (M$ outlook) invitation Date: Fri, 13 Oct 2023 14:50:38 +0200 (CEST) Message-ID: <1985180046.70388.1697201437973@ichabod.co-bxl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13906"; mail-complaints-to="usenet@ciao.gmane.io" Cc: djcb@djcbsoftware.nl, mu-discuss@googlegroups.com To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 13 15:00:29 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qrHmH-0003Rw-3A for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 13 Oct 2023 15:00:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrHle-0000hL-FU; Fri, 13 Oct 2023 08:59:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrHd9-0004Pc-VK for help-gnu-emacs@gnu.org; Fri, 13 Oct 2023 08:51:05 -0400 Original-Received: from wilbur.contactoffice.com ([212.3.242.68]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrHd1-0001J2-D3 for help-gnu-emacs@gnu.org; Fri, 13 Oct 2023 08:50:59 -0400 Original-Received: from ichabod.co-bxl (ichabod.co-bxl [10.2.0.36]) by wilbur.contactoffice.com (Postfix) with ESMTP id 508CCA0E; Fri, 13 Oct 2023 14:50:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1697201441; s=20210208-e7xh; d=mailfence.com; i=edgarlux@mailfence.com; h=Date:Message-ID:MIME-Version:Content-Type:Subject:From:To:Cc:Content-Transfer-Encoding; l=7500; bh=E2kW3FeHMInp8wguGa45E6cPd7L4dqQy1ccfEn4QDew=; b=340ouFBlEpO+MYE9O+aV7YukfEfJeb/1KQP+5xw/dJNtnNd1wRP0b0oB/b8BdWeO yq+8LsGjHDcrefunGRKmeW1N8wbSuleftlMVMELdhXnIfEFPRyof0rM5VIRSweK/2q7 BQx1WAtM3Xw/LYAcRVV1XYT7GpCEApc2Nd3E5q+pbpRcsSMQhqc0Z/yqwpEXaWLC7a4 vooIYew/Puyz8N7C3rTFNJfySHPjO8Ww0dPb34XYIWCbZARvVnSLRFuS4GwR1pQlrAS rAdVTke/nKfCtyCTjsS3+HTSTDYbF1nFJwQbpV/NvAQZ2gdVB2XLVNiBsF+dOdN+5kV c0VYidVbcg== X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:195124330 Received-SPF: pass client-ip=212.3.242.68; envelope-from=edgarlux@mailfence.com; helo=wilbur.contactoffice.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 13 Oct 2023 08:59:47 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145280 gmane.mail.mu.general:7587 Archived-At: 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