Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

notmuch-hooks(5) [debian man page]

NOTMUCH-HOOKS(5)						File Formats Manual						  NOTMUCH-HOOKS(5)

NAME
notmuch-hooks - hooks for notmuch SYNOPSIS
$DATABASEDIR/.notmuch/hooks/* DESCRIPTION
Hooks are scripts (or arbitrary executables or symlinks to such) that notmuch invokes before and after certain actions. These scripts reside in the .notmuch/hooks directory within the database directory and must have executable permissions. The currently available hooks are described below. pre-new This hook is invoked by the new command before scanning or importing new messages into the database. If this hook exits with a non- zero status, notmuch will abort further processing of the new command. Typically this hook is used for fetching or delivering new mail to be imported into the database. post-new This hook is invoked by the new command after new messages have been imported into the database and initial tags have been applied. The hook will not be run if there have been any errors during the scan or import. Typically this hook is used to perform additional query-based tagging on the imported messages. SEE ALSO
notmuch(1), notmuch-config(1), notmuch-count(1), notmuch-dump(1), notmuch-new(1), notmuch-reply(1), notmuch-restore(1), notmuch-search(1), notmuch-search-terms(7), notmuch-show(1), notmuch-tag(1) Notmuch 0.13.2 2012-06-01 NOTMUCH-HOOKS(5)

Check Out this Related Man Page

NOTMUCH-RESTORE(1)					      General Commands Manual						NOTMUCH-RESTORE(1)

NAME
notmuch-restore - Restores the tags from the given file (see notmuch dump). SYNOPSIS
notmuch restore [--accumulate] [ <filename> ] DESCRIPTION
Restores the tags from the given file (see notmuch dump). The input is read from the given filename, if any, or from stdin. Note: The dump file format is specifically chosen to be compatible with the format of files produced by sup-dump. So if you've previously been using sup for mail, then the notmuch restore command provides you a way to import all of your tags (or labels as sup calls them). The --accumulate switch causes the union of the existing and new tags to be applied, instead of replacing each message's tags as they are read in from the dump file. See notmuch-search-terms(7) for details of the supported syntax for <search-terms>. notmuch restore updates the maildir flags according to tag changes if the maildir.synchronize_flags configuration option is enabled. See notmuch-config(1) for details. SEE ALSO
notmuch(1), notmuch-config(1), notmuch-count(1), notmuch-dump(1), notmuch-hooks(5), notmuch-new(1), notmuch-reply(1), notmuch-search(1), notmuch-search-terms(7), notmuch-show(1), notmuch-tag(1) Notmuch 0.13.2 2012-06-01 NOTMUCH-RESTORE(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

vi scripts on UNIX

Hi there I'm hoping one of the expert unix guys or gals can assist me in understanding the language within scripts e.g clear while true do tput cup 0 0 LIST=`grep cisco /etc/hosts|grep -v _int | awk '{print $2}'` for SITE in $LIST do IP=`grep "$SITE"... (4 Replies)
Discussion started by: nemex
4 Replies

2. Shell Programming and Scripting

txt file to oracle database

hiya, i have a query: i want to read a file which contains: 2005/02/21 16:56:54.301: 111 PS (200, 10) sent <log instrument="FXA.ROSS"... (9 Replies)
Discussion started by: jorhul
9 Replies

3. Shell Programming and Scripting

Change directory command (cd)

What's wrong with this script????? Please help!!! !#/bin/sh echo "please enter dir" read input cd $input I'm trying to make a simple script to change dir. But does not work. it stays at the same dir where i run the script. What did i do wrong?? (21 Replies)
Discussion started by: c00kie88
21 Replies

4. Shell Programming and Scripting

sed: removing any and all trailing digits?

We have a large number of oracle database related scripts that utilize the environment variables $ORACLE_SID and $DBNAME. In a single instance database the $ORACLE_SID is the same as the database name $DBNAME. So we have simply set DBNAME = $ORACLE_SID. However, now that we are clustering with RAC,... (5 Replies)
Discussion started by: Squeakygoose
5 Replies

5. Shell Programming and Scripting

How to search then remove based on condition

Folks; I'm trying to write a script to scan through a directory tree then for each file it finds, it run a command line tool, then if the results include the word "DONE", it removes the file. In more details; i have a Linux directory tree such as "/opt/grid/1022/store" I'm trying to write a... (6 Replies)
Discussion started by: Katkota
6 Replies

6. Shell Programming and Scripting

Error while appending records to a file

Hi, I have a sample file which contains records. Input File : 1 user1 username1\password@database-name 2 user2 username2\password@database-name 3 user3 username1\password@database-name I should search for a 'username1\' in those records. If 'username1\' is found in those records, that record... (7 Replies)
Discussion started by: siri_886
7 Replies

7. Shell Programming and Scripting

using du command

Hi, is there a way to use "du" command without going in all the subtree ? i have a dir called "rep" for exemple with many subdir as rep1;rep2;rep3 and so on. I would calculate the "rep" size without having to calculate all the subdir. Is it possible to do that without doing: du -k... (13 Replies)
Discussion started by: Nicol
13 Replies

8. Shell Programming and Scripting

Pattern search and count

Hi all, I need to search the database log find out the most frequently used tables for a certain period of time. The search pattern is : the database.table so, i need to look for ABCD.* in the entire log and then need the top ten tables. I thought of using awk, search for the pattern ... (7 Replies)
Discussion started by: ysvsr1
7 Replies

9. Shell Programming and Scripting

abstract.sh

A highly abstract function invocation, just enjoy it ,guys! #!/bin/bash loop() { for((${1}=0; ${1}<${2}; ++${1})); do eval \$\{{3..12}\} done } numb() { echo -n "${!1}${!2}${!3} " (( ${3} == 2 )) && echo } eval loop" "{i..k}" 3" numb {i..k} (10 Replies)
Discussion started by: complex.invoke
10 Replies

10. UNIX for Dummies Questions & Answers

How to search directory for specific file?

I am new to Unix scripting and would like some help. Here is my scenario: 1) I have a text files that contains two fields: file name and retention period in months: File1 36 file2 24 File3 12 2) The directory I am searching contains sequential files. 3) I need to be able to take the file name... (10 Replies)
Discussion started by: Mustafa19804
10 Replies

11. Shell Programming and Scripting

shell scripts do not exit once completed

Hi Gurus, I have to perform some oracle database task so i have written a test scripts which open the database connection and perform a select . once it is done i want it to come out from data base to unix prompt which is not happening. the below command will be a part of shell scripts and once... (11 Replies)
Discussion started by: guddu_12
11 Replies

12. Shell Programming and Scripting

Unexpected Echo Behavior

Hello all, I have a basic issue that I can't seem to search for since I'm not sure how to describe the behavior. Could anyone kindly assist the novice? (Sample) File Data: bundle-ppp-1/1.78 bundle-ppp-1/2.80 bundle-ppp-1/1.79 bundle-ppp-1/2.81 bundle-ppp-1/1.80 bundle-ppp-1/2.82... (6 Replies)
Discussion started by: sjrupp
6 Replies

13. Shell Programming and Scripting

Complex string search query.

Hi, I wish to find the latest occurance of the below string in my log file. Once found, I need to search the below string after the above string and display this Request 331489 has passed or Request 331489 has failed I would like my query to be platform... (11 Replies)
Discussion started by: mohtashims
11 Replies

14. Shell Programming and Scripting

Executes scripts parallelly based on their success

Hi Team , I have one Master.sh file which call X,Y,Z scripts , but here X may call again some sub scripts X_sub1.sh , X_sub2.sh Y calls Y_sub1.sh,Y_sub2.sh and similarly Z script also . Now requirement is Both X and Y should execute parallel bcz X and Y are independent... (9 Replies)
Discussion started by: chandini
9 Replies

15. Shell Programming and Scripting

Maximum size of attachment in mail

Hi Friends, My requirment is to Query the oracle database , generate the file change the extension to .csv and send to clients automatically everyday. However i am able to perform the task. But sometimes when the file size is getting increased more than 1 MB then the mail is... (5 Replies)
Discussion started by: Showdown
5 Replies