Codebase list fdm / 08088a3
Merge branch 'upstream' into master Frank Terbeck 5 years ago
7 changed file(s) with 36 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
556556 optionally the user name and password. If the port is not specified, the
557557 default port ('pop3' in the services(5) database) is used. If the user name,
558558 password, or both is omitted, fdm attempts to look it up the .netrc file, see
559 the next section for details.
559 the next section for details. Optionally fdm can read the password from a
560 command line program, see below for details.
560561
561562 Examples of a POP3 account definition are:
562563
647648 password "moo"
648649
649650 fdm will abort if the .netrc file is world-writable or world-readable.
651
652 %%% Passwords from a command
653
654 fdm can read the password from a command by using command substitution
655 with $(). For example:
656
657 user "fdm@example.com" pass $(gpg --quiet --decrypt ~/.password.gpg)
650658
651659 %%% IMAP and IMAPS
652660
11
22 bin_PROGRAMS = fdm
33 CLEANFILES = parse.c parse.h
4 BUILT_SOURCES = parse.c parse.h
45
56 EXTRA_DIST = \
67 CHANGES README MANUAL \
588588 goto error;
589589 }
590590
591 if (SSL_set_tlsext_host_name(ssl, srv->host) != 1) {
592 *cause = sslerror("SSL_set_tlsext_host_name");
593 goto error;
594 }
595
591596 if (SSL_set_fd(ssl, fd) != 1) {
592597 *cause = sslerror("SSL_set_fd");
593598 goto error;
9595 .Xr fdm 1
9696 will attempt to process previously queued messages as the next is being
9797 fetched.
98 Once this limit is reached, no further messages wil be fetched until
98 Once this limit is reached, no further messages will be fetched until
9999 the number of messages held drops to the
100100 .Ic queue-low
101101 value.
203203 .Ar count
204204 mails have been retrieved.
205205 This is useful on unreliable connections to limit the potential number of mails
206 refetched if the connetion drops, but note that it can incur a considerable
206 refetched if the connection drops, but note that it can incur a considerable
207207 speed penalty.
208208 .It Ic no-received
209209 If this option is present,
7171
7272 extern char *__progname;
7373
74 /* Linux compatibility bullshit. */
74 /* Various compatibility stuff. */
7575 #ifndef UID_MAX
7676 #define UID_MAX UINT_MAX
7777 #endif
9393
9494 #ifndef ACCESSPERMS
9595 #define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
96 #endif
97
98 #ifndef MAXNAMLEN
99 #define MAXNAMLEN 255
96100 #endif
97101
98102 #ifndef __dead
172172 a->name, this->off, this->size);
173173 iov[0].iov_base = fmbox->base + this->off;
174174 iov[0].iov_len = this->size;
175 iov[1].iov_base = c;
175 iov[1].iov_base = (void *)c;
176176 iov[1].iov_len = 2;
177177 if ((n = writev(fd, iov, 2)) < 0)
178178 goto error;
212212 while (aux != NULL) {
213213 this = aux;
214214 aux = TAILQ_NEXT(aux, entry);
215
216 if (this->fmbox == fmbox)
217 fetch_mbox_free(this);
215 if (this->fmbox != fmbox)
216 continue;
217
218 TAILQ_REMOVE(&data->kept, this, entry);
219 fetch_mbox_free(this);
218220 }
219221
220222 if (fmbox->reference != 0)
533533 char *
534534 make_from(struct mail *m, char *user)
535535 {
536 time_t t;
537 char *s, *from = NULL;
538 size_t fromlen = 0;
539
540 from = find_tag(m->tags, "mbox_from");
541 if (from != NULL) {
542 xasprintf(&s, "%s", from);
536 time_t t;
537 char *s, *from = NULL;
538 const char *mfrom;
539 size_t fromlen = 0;
540
541 mfrom = find_tag(m->tags, "mbox_from");
542 if (mfrom != NULL) {
543 xasprintf(&s, "%s", mfrom);
543544 return (s);
544545 }
545546 from = find_header(m, "from", &fromlen, 1);