summaryrefslogtreecommitdiffstats
path: root/attach.h
AgeCommit message (Collapse)Author
2019-04-27Add $forward_attachments quadoption for inline-forward mode.Kevin McCarthy
When set or answered yes, non text-decodable parts will be attached to the new message. The default value is "ask-yes", because I believe this is something people will want to use, and should be made aware of the new possible behavior. The option presents a nice middle ground between previous inline-forwarding behavior (where all the non-text parts were dropped), and $mime_forward where the entire email was included as an attachment. This was previously difficult to achieve, but after the recv-attachment refactoring: (a19e5266^..faabd621) it became possible to use the ATTACH_CONTEXT and the recvattach.c helper mutt_generate_recvattach_list() to properly deal with nesting and multiple file-handles.
2018-12-31Remove trailing whitespace.Kevin McCarthy
The result of find . -name "*.[ch]" -exec emacs -batch {} \ --eval="(progn (delete-trailing-whitespace) (and (buffer-modified-p) (save-buffer)))" \;
2018-08-22Add compose-to-sender functionality.Kevin McCarthy
This patch is loosely based on the NeoMutt feature, but adds in support for the attach menu, reuses functionality in send.c, and has proper mode checks. Thanks to Enno for the opening the ticket requesting the port.
2017-08-10Fix shared attachment functions. (see #3728)Kevin McCarthy
With nested decryption, the correct FP is associated with the ATTACHPTR entry. Also, the BODY entries are not continguous, so the functions need to iterate over the actx index, not the BODY structure.
2017-08-10Add virtual index to actx. (see #3728)Kevin McCarthy
The virtual index is modeled after the CONTEXT. Add a CURATTACH helper to reduce code verbosity. Store the actx as menu->data. Simplify and consolidate the recvattach and compose menu update code inside a function. Because compose and recvattach share so much code, change compose to use the virtual index even though it has no collapse/expand functionality.
2017-08-10Change recvattach to allow nested encryption. (see #3728)Kevin McCarthy
* Add a FP and BODY array to the actx. These are used to allow proper cleanup. * Add HEADER and root_fp entries, to allow for index regeneration. * Separate out the compose and recvattach index generation functions. * Change the recvattach index generator to decrypt as encrypted parts are found.
2017-08-10Add helpers to add and remove actx entries. (see #3728)Kevin McCarthy
Use the helper in compose update_idx(), to consolidate the resize logic and simplify the code. Separate out the actx "free" routine from a routine to empty out the idx. The index regeneration routines should flush and rebuild the index without having to renerate the actx structure.
2017-08-10Change helpers functions to pass actx. (see #3728)Kevin McCarthy
Change the pager, compose, recvattach and recvcmd to pass the actx instead of the individual idx and idxlen parameters. Separate out the compose menu exit logic to first free the BODY data and then call the shared actx free function at the bottom.
2017-08-10Create ATTACH_CONTEXT to hold attachment index. (see #3728)Kevin McCarthy
Move the idx and idxlen into ATTACH_CONTEXT. In subsequence patches, this structure will hold more useful items, such as the virtual index. The swap out is straightforward, except for: * update_idx() in compose.c, which post-increments the idxlen in the call and again in the function. * mutt_gen_attach_list() which doesn't need to returns the new values.
2005-09-17Gah, forgot the zip code when updating the FSF address...Brendan Cully
2005-09-17Update FSF address (via sed, I hope nothing got mangled). Closes: #2071.Brendan Cully
2005-08-05Move some attachment-related prototypes and structures into attach.hBrendan Cully
from the global headers. A small step towards sane dependency tracking and code cleanliness.
2003-10-04This patch fixes various aspects of the attachment-savingThomas Roessler
user interface. Changes include: * When tagging and saving multiple attachments, you can now use the same target directory for multiple attachments. * When you can't save an attachment, you get an opportunity to enter a new file name. * The menu cursor will highlight the attachment that you are currently discussing with mutt. * Various bug fixes. This does, in particular, address #1619 (Debian#208430).
2002-12-11Fix Mike's and my e-mail addresses in copyright lines.Thomas Roessler
2001-09-11The addressbook used to crash when someone issued the alias andThomas Roessler
unalias commands while on that menu. This patch has a basic fix for this behaviour, and adds delete and undelete functions to this menu. While I'm on it, I've also made sure that "apply-tag" untags everything on all menus. The original crash was noted by Oliver Kauss <kauss@gmx.de>.
2001-01-27Add collapsing to the receive-attach menu, and improve digestThomas Roessler
handling that way.
2000-11-27Make sure edit-type works without a segmentation fault from theThomas Roessler
receive-attach menu.
2000-03-03The FSF apparently has moved.Thomas Roessler
2000-01-06Update copyright notices for unstable.Thomas Roessler
1999-11-07Rewriting lots of the recvattach code.Thomas Roessler
1999-01-07Get rid of RCS ids in source files. They are getting in our wayThomas Roessler
when merging changes.
1998-10-13Add RCS $Id$ strings to (hopefully) all source files.Thomas Roessler
1998-08-25CVS branch clean-up.Thomas Roessler
1998-06-08Initial revisionThomas Roessler