Commit Graph

82 Commits (db4c40182880582761937a0b8e0dfdc915628b21)

Author SHA1 Message Date
Manos Pitsidianakis 68c40a2920
melib: return Result with error when an IO operation fails
Don't unwrap anything because this might be temporary, for example a
short IMAP disconnection.
5 years ago
Manos Pitsidianakis c44056a9ff
melib: fix bug in parser::parts
At a certain point when expecting a line terminator parts() checks for
'\n' but not '\r\n'. This resulted in all multipart attachments coming
from b"\r\n" sources like IMAP having only one part when parsed.
5 years ago
Manos Pitsidianakis 91ae539de1
Small fixes 5 years ago
Manos Pitsidianakis f27b815aa7
Add verification of GPG signed messages 5 years ago
Manos Pitsidianakis 9305e543cf
melib: add a `body` field to Attachment
Attachment needs to know the range of bytes where the body part of the
attachment is located. The Attachment.raw field contains the entire
attachment, headers and body. The new Attachment.body fields contains a
`StrBuilder` which contains the offset and length of the body part inside
`raw`.
5 years ago
Manos Pitsidianakis 6e75160b70
melib: turn unicode algos and backends into features 5 years ago
Manos Pitsidianakis f066f35410
melib: add get_tags to support subaddressing 5 years ago
Manos Pitsidianakis bee1502499
melib: make References public 5 years ago
Manos Pitsidianakis 32fe8a8b9b
melib: move email.rs back 5 years ago
Manos Pitsidianakis 7accae1774
melib: split address.rs from email.rs 5 years ago
Manos Pitsidianakis b08001ca5d
melib: create address.rs from email.rs 5 years ago
Manos Pitsidianakis ecb3fd7f3d
Add dyn keyword to Trait objects
And fix some unused var warnings as well
5 years ago
Manos Pitsidianakis 0812242f60
Add IMAP backend
TODOs: new message events (untagged responses)
5 years ago
Matthias Beyer 79becdcc42
Fix: This comment is not a proper rustdoc comment and probably should not be one anyways
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
5 years ago
Matthias Beyer fb36dc58c8
Remove unused variable
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
5 years ago
Manos Pitsidianakis 2492bc91b2
melib: add attachment_from_file() 5 years ago
Manos Pitsidianakis c87ed5012d
melib: add attachment support in email/compose.rs 5 years ago
Manos Pitsidianakis 391e5b5d13
melib: tighten bounds check in email/parser.rs 5 years ago
Manos Pitsidianakis d73069bc80
melib: add Other and OctetStream content types 5 years ago
Manos Pitsidianakis c17bb24f0d
melib: refactor attachments and attachment_types interfaces 5 years ago
Manos Pitsidianakis 572944e917
melib: add version from Cargo manifest to User-Agent field 5 years ago
Manos Pitsidianakis d84ceca88e
create text_processing crate 5 years ago
Manos Pitsidianakis 8ab79d5829
fix missing grapheme in mime encoded string 5 years ago
Manos Pitsidianakis 6906142278
melib: don't exclude whitespaces in mime encoded words 5 years ago
Manos Pitsidianakis f33594fba8
melib: reply to In-Reply-To address if available 5 years ago
Manos Pitsidianakis ba1d0c42e0
melib: add struct and parser for mailto: links 5 years ago
Manos Pitsidianakis 24831b3c13
Fix warnings, lints, and 2018 errors 5 years ago
Manos Pitsidianakis 5a9ee50bbc
don't add newlines in encoded words 5 years ago
Manos Pitsidianakis f0bd999f8c
parser: fix empty header value when header is last or when prefixed with
'\n'

when an empty header is last, the rest of the body keeps getting parsed
as headers. when header starts with '\n' because the value is long, the
value gets parsed as a name and the header parser fails.

closes #100

closes #101

closes #122
5 years ago
Manos Pitsidianakis 8a07087393
add testing crate with emailparse bin 5 years ago
Manos Pitsidianakis d0039740b0
melib: add has_attachments property to Envelope
Check subattachments in has_attachments check.

Instead of getting a flattened attachment view of multipart/mixed (eg
[multipart/mixed, text/plain, text/plain]) get only the subattachments
(eg [text/plain, text/plain]). Don't count text-only multipart/mixed as attachments
5 years ago
Manos Pitsidianakis c6674a294d
melib: unwrap mailbox module 5 years ago