From: Jean Louis <bugs@gnu.support>
To: Gottfried <gottfried@posteo.de>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: package for Email
Date: Thu, 19 Jan 2023 06:53:50 +0300 [thread overview]
Message-ID: <Y8i+zv5dvkqSpGRU@protected.localdomain> (raw)
In-Reply-To: <f2f6c7ae-dfc1-6761-bede-42290f517cae@posteo.de>
Among all synchronization tools, I find program `movemail' which is
also supported by Emacs, more useful, as it supports all kinds of
mailboxes, it is part of GNU Mailutils.
GNU Mailutils:
https://mailutils.org/
Usage instructions:
$ movemail --help
Usage: movemail [OPTION...] inbox-url destfile [POP-password]
GNU movemail -- move messages across mailboxes.
--[no-]emacs output information used by Emacs rmail interface
--[no-]ignore-errors try to continue after errors
--max-messages=NUMBER process at most NUMBER messages
-m, --[no-]progress-meter enable progress meter
--[no-]notify enable biff notification
--onerror=KW[,KW...] what to do on errors
-P, --owner=MODELIST control mailbox ownership
-p, --[no-]preserve, --keep-messages
preserve the source mailbox
--program-id=FMT set program identifier for diagnostics (default:
program name)
-r, --[no-]reverse reverse the sorting order
-u, --[no-]uidl use UIDLs to avoid downloading the same message
twice
-v, --verbose increase verbosity level
I use it like this, but in a program that is invoked by crontab,
Common Lisp:
(defun movemail (mailbox)
(let ((pids (shell-1st-result "pgrep -f movemail")))
(if pids (error "Other movemail processs exists.")
(concatenate 'string
"timeout 10m /usr/local/bin/movemail -m "
;; "movemail "
(when debug "--debug-level='mailbox.prot,!trace6' ")
"-v 'imaps://" username ":" password "@" server ":" port "/"
(car (gethash (intern mailbox) mailboxes)) "' \""
(cadr (gethash (intern mailbox) mailboxes))
"\""))))
So it would be like:
$ timeout 10m /usr/local/bin/movemail -m 'imaps://USERNAME:PASSWORD@example.com:993/INBOX' ~/Maildir
or other server folders are transferred to local maildirs:
$ timeout 10m /usr/local/bin/movemail -m 'imaps://USERNAME:PASSWORD@example.com:993/INBOX.OtherFolder' ~/Maildir/otherfolder
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
next prev parent reply other threads:[~2023-01-19 3:53 UTC|newest]
Thread overview: 73+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-18 13:56 package for Email Gottfried
2023-01-18 14:44 ` Eric Brown
2023-01-18 15:15 ` Jean Louis
2023-01-19 7:31 ` Tomas Hlavaty
2023-01-19 7:55 ` Jean Louis
2023-01-18 15:51 ` Tassilo Horn
2023-01-18 17:17 ` Eli Zaretskii
2023-01-18 17:58 ` andrés ramírez
2023-01-19 3:55 ` Jean Louis
2023-01-18 16:28 ` Andreas Eder
2023-01-18 18:03 ` Milan Glacier
2023-01-19 4:02 ` Jean Louis
2023-01-19 5:06 ` Debunking Emacs merits over GUI - " Jean Louis
2023-01-19 5:41 ` Emanuel Berg
2023-01-19 13:00 ` Jean Louis
2023-01-19 15:34 ` Marcin Borkowski
2023-01-20 8:27 ` Jean Louis
2023-01-19 16:10 ` Milan Glacier
2023-01-19 16:52 ` Jude DaShiell
2023-01-20 9:32 ` Jean Louis
2023-01-19 21:10 ` Bob Newell
2023-01-20 9:47 ` Jean Louis
[not found] ` <877cxgrc3e.mmmtqrm@thhcbmmmd.mijofcrcc.org>
2023-01-21 7:05 ` Jean Louis
2023-01-21 7:20 ` Emanuel Berg
2023-01-21 7:21 ` Eli Zaretskii
2023-01-21 7:28 ` Emanuel Berg
2023-01-21 14:29 ` Jean Louis
2023-01-21 14:28 ` Jean Louis
2023-01-21 15:31 ` Eli Zaretskii
2023-01-21 17:30 ` Bob Newell
2023-01-22 15:40 ` Jean Louis
2023-01-20 9:07 ` Jean Louis
2023-01-20 15:52 ` Milan Glacier
2023-01-21 6:04 ` History " David Masterson
2023-01-21 7:10 ` Eli Zaretskii
2023-01-21 7:21 ` Emanuel Berg
2023-01-21 7:34 ` tomas
2023-01-21 17:38 ` Bob Newell
2023-01-22 3:16 ` David Masterson
2023-01-22 15:48 ` Jean Louis
2023-01-22 3:08 ` David Masterson
2023-01-22 6:23 ` Eli Zaretskii
2023-01-22 19:33 ` David Masterson
2023-01-22 19:57 ` Eli Zaretskii
2023-01-22 7:45 ` Po Lu
2023-01-22 19:35 ` David Masterson
2023-01-21 14:35 ` Jean Louis
2023-01-22 3:33 ` David Masterson
2023-03-10 17:16 ` Emanuel Berg
2023-03-13 8:32 ` Po Lu
2023-01-18 18:10 ` Filipp Gunbin
2023-01-19 2:15 ` Emanuel Berg
2023-01-19 12:40 ` Jean Louis
2023-01-19 14:10 ` Martin Steffen
2023-01-19 16:20 ` Eric S Fraga
2023-01-19 16:39 ` Jude DaShiell
2023-01-20 10:05 ` Jean Louis
2023-01-19 17:00 ` Leo Butler
2023-01-19 17:35 ` Eric S Fraga
2023-01-20 6:48 ` Milan Glacier
2023-01-19 3:53 ` Jean Louis [this message]
2023-01-19 6:08 ` John Haman
2023-01-19 11:52 ` Emanuel Berg
2023-01-21 13:57 ` Jean Louis
2023-01-21 15:08 ` Jude DaShiell
2023-01-21 17:47 ` Bob Newell
2023-01-22 3:46 ` David Masterson
2023-01-22 19:52 ` Bob Newell
2023-01-22 3:34 ` David Masterson
2023-01-31 5:46 ` Emanuel Berg
2023-01-20 4:09 ` Milan Glacier
2023-01-20 7:31 ` Emanuel Berg
2023-01-20 10:26 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y8i+zv5dvkqSpGRU@protected.localdomain \
--to=bugs@gnu.support \
--cc=gottfried@posteo.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.