summaryrefslogtreecommitdiff
path: root/alot/db
Commit message (Collapse)AuthorAge
* Use Unicode strings when dealing with GPGSimon Chopin2013-07-24
| | | | | This delays the encoding of special chars, if any, to the actual display which is supposed to know into what it should be encoded.
* pep8&pyflakes fixesPatrick Totzke2013-07-07
| | | | mostly automatically fixed
* adjust error messagePatrick Totzke2013-07-07
|
* move check to add_message directlyPatrick Totzke2013-07-07
|
* raise exception when adding msg no non-indexable pathPatrick Totzke2013-07-07
| | | | i.e., one not below that of notmuch's root path
* add helper to check if path is below anotherPatrick Totzke2013-07-07
| | | | this is used in the Database manager
* Fix the default failobj of get_paramsJustus Winter2013-06-20
| | | | | | | | | Formerly None was used as failobj, but None is not iterable and that is all that get_params does. Use list() instead which is iterable. Closes #626. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
* Tune the parsing of RFC 3156 style mailsJustus Winter2013-06-16
| | | | | | | | | Formerly any SMIME signed mail triggered a malformed OpenPGP message warning. Be more selective wrt what to interpret as OpenPGP data by looking at the protocol parameter first. Includes minor stylistic changes. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
* Fix detection of OpenPGP encrypted dataJustus Winter2013-06-16
| | | | | | | Fix detection of OpenPGP encrypted data and also check the 'protocol' parameter. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
* Move the parameter extraction to its own functionJustus Winter2013-06-16
| | | | | | | Move the parameter extraction to its own function and generalize it so it can be reused. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
* Normalize Content-Type parametersJustus Winter2013-06-16
| | | | | | | RFC 2045 specifies that parameter names are case-insensitive, so normalize them by converting them to their lower case version. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
* Handle missing parameters gracefullyJustus Winter2013-06-16
| | | | | | | | | OpenPGP states that the Content-Type header is annotated with parameters, namely 'protocol' and 'micalg'. Use .get() to retrieve this values with a default value to handle the case of malformed (according to RFC 3156) messages gracefully. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
* Parse and decrypt OpenPGP encrypted dataJustus Winter2013-06-16
| | | | | | | | | Parse and decrypt OpenPGP encrypted data as specified by RFC 3156. If such a message is detected and found to be well-formed, it is decrypted and any MIME messages found within the plain text are attached to the original message. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
* Verify OpenPGP signatures and display the resultJustus Winter2013-06-16
| | | | | | | Verify OpenPGP signatures as specified in RFC 3156. Display the result in the header list above the message. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
* doc: fix Envelope.attachments docstringPatrick Totzke2013-06-02
|
* fix incorrect instanciations of GPGProblemPatrick Totzke2013-04-06
| | | | | with missing 'code' parameter. cf issue #590
* fix 'attach' pseudo headerPatrick Totzke2013-04-02
| | | | | | | this feature was not yet changed after an Envelope rewrite and was still based on Envelope._headers[foo] being a str and not a list of str. fixes #587
* respect mailcap commands that expect stdinPatrick Totzke2013-03-20
| | | | | | | | This ensures that we respect if a command as specified per mailcap expects its input via stdin and not per tempfile. This was already done for opening of attachments but not for interpreting non-text/plain message parts. fix #584
* pep8/pyflakes fixesPatrick Totzke2013-03-16
|
* fix #575Patrick Totzke2013-02-27
|
* fix Envelope __[sg]etitem__Patrick Totzke2013-02-22
| | | | | | to actually work on self.headers as *list* of strings for each key. this hasn't been a problem since these convenience methods are not really uset at all atm..
* docs: for EnvelopePatrick Totzke2013-02-22
|
* pep8 fixesPatrick Totzke2013-02-19
|
* rmencrypt now accepts keyids/hints instead of indicesJohannes Kulick2013-02-19
| | | | | We use an own has function for that, since pygpgme doesn't implement __cmp__() or similar
* support multiple recipients in encryptionJohannes Kulick2013-02-19
| | | | | | | | Multiple recipient-keys can be specified. They are shown in the envelope buffer. A new command is introduced: 'rmencrypt' do remove a key from the encryption lsit. Unfortunately pygpgme doesn't implement __cmp__() so we have to either write something similar on our own or use this solution (index of the key in encryption list)
* move key dissolving to commandJohannes Kulick2013-02-19
| | | | | It is more useful if we check wether the key is available directly when the user ask for encryption, rather than doing it before sending it
* give useful error message if key can't be foundJohannes Kulick2013-02-19
|
* pep8 correctionsJohannes Kulick2013-02-19
|
* add key parameter to encrypt commandJohannes Kulick2013-02-19
| | | | | We now can define the key, we want to encrypt with as parameter of the encrypt command
* create PGP/MIME mail, if encrypt flag is setJohannes Kulick2013-02-19
| | | | | | | | | | | | | If the envelope has the encrypt flag set we encrypt the (signed if available) mail and create a PGP/MIME compliant mail TODOs: a) create a 'This is a PGP/MIME encrypted mail...' warning on top of all multipart parts b) find the correct key for encryption c) find a way to handle multiple recipients
* Add some comments to the db manager async codeJustus Winter2013-01-24
| | | | Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
* Replace workers std{out,err} by pipes and log anything written to themJustus Winter2013-01-24
| | | | | | | | This will help us identify problems in libnotmuch and reduces visual artifacts (unfortunately libnotmuch writes messages to stderr that used to clobber the curses interface). Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
* Join worker processes and keep track of them in the logJustus Winter2013-01-22
| | | | | | | | | This also prevents a zombie from hanging around until the next worker is spawned by multiprocessing. Fixes 411. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
* fix 544Patrick Totzke2013-01-15
| | | | | only sort messages with not-None date header, append the rest
* Ignore EINTR in workers when terminating due to SIGTERMJustus Winter2013-01-08
| | | | | | | | | | If the child process is killed using SIGTERM by the parent, send(2) can fail with EINTR. Install a signal handler for SIGTERM and ignore EINTR in this particular case. Fixes #325. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
* Merge remote-tracking branch 'origin/0.3.3-feature-tagsearch-517'Patrick Totzke2012-11-07
|\ | | | | | | | | Conflicts: alot/commands/thread.py
| * add callback parameter for FlushCommandPatrick Totzke2012-09-23
| |
* | rename config option body_mimetype to prefer_plaintextPatrick Totzke2012-10-28
| | | | | | | | | | ... and make it a type boolean. This also defines the option properly in the config spec and derives its doc froma that.
* | Add body_mimetype to tweak extract_body's defaultsAntoine Amarilli2012-10-23
|/ | | | | | | | Add a body_mimetype global configuration option to choose the default message part to return as body in extract_body when types is None. Parts of the preferred type will be returned if present, all text/* parts will be returned if none parts of the preferred type exist. The default is "text/html", which should result in the same behavior as before.
* add envelope.tagsPatrick Totzke2012-09-22
| | | | that contains tagstrings to add to message after successful sendout
* interpret 'Attach' pseudo headerPatrick Totzke2012-09-16
| | | | cf issue #519
* cleanup: pep8/pyflakes fixesPatrick Totzke2012-09-01
|
* Merge branch '0.3.2-feature-avoid-dbl-send-497'Patrick Totzke2012-08-15
|\
| * prevent accidental double sendoutPatrick Totzke2012-08-10
| | | | | | | | closes issue #497
* | remove annoying debug statementPatrick Totzke2012-08-10
|/
* cleanup: make Thread and Message available in alot.dbPatrick Totzke2012-08-10
|
* cleanup: move DBManager to its own filePatrick Totzke2012-08-10
|
* Remove envelope tempfile on buffer cleanupKazuo Teramoto2012-08-02
| | | | | | | | This prevents losing the body text and headers in the case of a fault. Leaving the removal of temporary files to be done after the buffer is explicit closed or email is sent. cf issue #453
* fix maxlength issuePatrick Totzke2012-07-22
| | | | | | this uses a email.header.Header obj for attachments-parts Content-Disposition header to ensure their filename-parameters obey RFC2184
* dont log complete plaintext at info levelPatrick Totzke2012-07-22
| | | | but use debug level instead (use alot -d debug to see this)