From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QDfdGR5YfmEM3QAAgWs5BA (envelope-from ) for ; Sun, 31 Oct 2021 09:47:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iElzFR5YfmE5PgAAbx9fmQ (envelope-from ) for ; Sun, 31 Oct 2021 08:47:26 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B24E8D713 for ; Sun, 31 Oct 2021 09:47:25 +0100 (CET) Received: from localhost ([::1]:43652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mh6Uu-0001PY-A6 for larch@yhetil.org; Sun, 31 Oct 2021 04:47:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mh6Tu-0001MY-6s for emacs-orgmode@gnu.org; Sun, 31 Oct 2021 04:46:22 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:38576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mh6To-0005UF-Cn for emacs-orgmode@gnu.org; Sun, 31 Oct 2021 04:46:21 -0400 Received: by mail-pj1-x102f.google.com with SMTP id l10-20020a17090a4d4a00b001a678eed8abso508787pjh.3 for ; Sun, 31 Oct 2021 01:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=hPafEpL/qu0Gd3+EW2o42jbopkcpyAdBEnDG1EpYK+g=; b=fwuOAD74ocCuih03iv9xHK7FoMOn6idiVlbpNlL0mG2Myb8P6iPsldJCH37ZxBtl1r CmGgiSrgxBjjgCZt1WsFqxQMHEsVVFKPva6Xeh0R8sG1ozRl1NW43vtL8nv6184R2tL1 9oQwhquXZ4fiWFKqURAUZZkmRi6EogOgk4bPe6O2sXI7CS6oqkD+u/FZE3lhCLZEHjpI 5VQYCs2Nsj8n7+lCir7JeJ6XvaJWOEhSiIplufX2VExKlA3BM2fm79KKmJ7h4+Xmozys QpfrpM4t9dTiEz1v7AofKmhO0Cxiaspw5NKy3EMcpYlnxtcpbjAOYnpSqwTXEBvL0HfJ 6/SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=hPafEpL/qu0Gd3+EW2o42jbopkcpyAdBEnDG1EpYK+g=; b=Sn+TjVSRnHVLrfp1oS17wdHapma8nRyA88J6pHxDqfWp02JQUGKU39badc9WXujg6W g9+cAHFaKAqPtlLWkCUfQ2T8u5KN3NsivGxT+i9uDDuNyu8yA6k0uM2HHk5Yeoo4k7EC J4TzWLtdf20CznIRh50MxSui23WD9oLjw0GgPD3U7RgMfgxtnoPLBvKfT+X2YpRrp0Vy xJ1Vclh2X5hhrWOLMLNueWNZu3edSNhxjPjIS3ptjyUD6CErBkA27AbdwGhC2+19rt+O hW8jLIwIwNJvaHgJxu2wmL8N6Z/A1A6ThWnwBw+1o/iw/adW5Ov+OJHfYlGmcoNYo0CE IFqg== X-Gm-Message-State: AOAM531vaTU61FBrjhOZ/L77DgVyHXb5J0g36d5o2ECYSgge9BFHLoZs pbbjSIQdCyKD8JYXDmuiySE= X-Google-Smtp-Source: ABdhPJxoR8VOJjDqXj8pTH8QYmLmGSMY7lEvNVHnifBU37paC3PWo+bgPmgR8Glvb59M1ZSFlwwFRA== X-Received: by 2002:a17:90b:1c8e:: with SMTP id oo14mr30774445pjb.224.1635669974663; Sun, 31 Oct 2021 01:46:14 -0700 (PDT) Received: from localhost ([103.125.234.111]) by smtp.gmail.com with ESMTPSA id b15sm6697323pfm.203.2021.10.31.01.46.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Oct 2021 01:46:14 -0700 (PDT) From: Ihor Radchenko To: Uwe Brauer Subject: Re: send agenda-weekly-view via email html formated In-Reply-To: <87v91dmw4t.fsf@localhost> References: <87ee81vcnw.fsf@mat.ucm.es> <87v91dmw4t.fsf@localhost> Date: Sun, 31 Oct 2021 16:47:43 +0800 Message-ID: <87lf29mvgw.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102f.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635670045; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=hPafEpL/qu0Gd3+EW2o42jbopkcpyAdBEnDG1EpYK+g=; b=Cgcpy+Mp/UhYh3gGoYW8D1JO5whEkGxzJ4XJm4yfGmXrGc1l7oyktxW+Hi/RPmQiBKpVCr MHQtAnHZPBLpBsT6fXWxiHdN+UWUpS9iI9ydqcEr4Cxabf9v6DO6HewRnneMKsV6JsEAYu /I5jxXDhIglPKcj9sItvfOUq3SSjSa0O/xVgZDtxfs5UrqF4hY1Nh5Fvxh/InFNRPxU/6D 8PCg1dVsnlEqvYcY9WQ/gAdwgafPYrBzNrHzkIxjvUWHgEM3qonKMZ4mJ8ubyCIWB6wl41 tWV6epGRxTPWhBW/NS4lZU/Q6dJ05fVtBI2liM/1WrBIl+iBTF2EpOtitXi8wA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635670045; a=rsa-sha256; cv=none; b=R+oP3cfqkzAW8oHAHziU//SJNACT5dzSJTZCDa1KlVnPSpg1OJbrkc1ky8d7lze3QtjxWu TjPTxond1EwWNTVLaR6fmw6OwLPiMpX2VzeN2Ar53JYcfmAQcgxkit0tcePXr+q9Be7xk4 TvDC95GVOPQYGdIhaKyuGoDTokRd+GrpqVCji0x+CFB91OYw0haG+WOjFB4NDn9kqrli3W ynOwnaetRTqBks3AVwhwY1fIN48bhXPyEDeCmqRQZeADDWY7i83EgqQaehWJcGA5qM87AT wuNItbUn1PbqxNFjvbQLXhhrmr4frrUx+RrrYDKVuatEqsAoQg5RS1+Lydn8KQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fwuOAD74; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fwuOAD74; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B24E8D713 X-Spam-Score: -2.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: C0l08Eb1CFxz Ihor Radchenko writes: > Uwe Brauer writes: > >> I know I can save my weekly agenda view as a HTML file and then send it as as attachment. Sorry, I misread your first message. Attaching and sending is easy: (defun org-agenda-email () "Email agenda in current buffer as attachment." (interactive) (let ((to (read-string "Send to: ")) (subject (read-string "Subject: "))) (unless (derived-mode-p 'org-agenda-mode) (user-error "Should start from agenda view.")) (org-agenda-write (file-name-concat (temporary-file-directory) "agenda.html") nil nil (current-buffer)) (compose-mail to subject) (save-excursion (goto-char (point-max)) (mml-attach-file (file-name-concat (temporary-file-directory) "agenda.html"))))) Best, Ihor